Checked several Lispref files.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0b6f228c
CY
12009-02-21 Chong Yidong <cyd@stupidchicken.com>
2
3 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4 Qfont_object.
5 (Ftype_of): Recognize font objects.
6
7 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
8
9 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
10 moved to data.c.
11
52f8870b
AR
122009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13
14 * nsterm.m (x_make_frame_invisible): Unset async_visible,
15 async_iconified. Based on a patch by Christian Lynbech
16 <christian.lynbech@tieto.com>.
17 (EmacsView-windowDidMiniaturize:): Unset async_visible.
18
7087d5e9
GM
192009-02-20 Glenn Morris <rgm@gnu.org>
20
21 * syntax.c (Fskip_chars_forward): Fix doc typo.
22
41d2ceef
CY
232009-02-20 Chong Yidong <cyd@stupidchicken.com>
24
25 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
26
1a3b7ca6
CY
272009-02-19 Chong Yidong <cyd@stupidchicken.com>
28
29 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
30
73cce38d
KH
312009-02-19 Kenichi Handa <handa@m17n.org>
32
33 * coding.c (detect_coding): Preserve coding->mode.
f289d375 34 Don't overflow coding->carryover.
73cce38d 35
a51092ee
DN
362009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
37
38 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
39
c423ecca
KH
402009-02-18 Kenichi Handa <handa@m17n.org>
41
42 * font.c (font_check_otf_features): Fix handling of `nil' element.
43 (Ffont_spec): Describe :lang and :otf in the docstring.
44
4c1958f4
AS
452009-02-16 Andreas Schwab <schwab@suse.de>
46
47 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
48 string.
49
5704f39a
KH
502009-02-16 Kenichi Handa <handa@m17n.org>
51
52 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 53 (Bug#1723)
5704f39a 54
8f0085aa
CY
552009-02-14 Chong Yidong <cyd@stupidchicken.com>
56
a057d86a 57 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
58
59 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
60 (handle_line_prefix): Suppress wrapping of wrap prefixes.
61
aff01dd9
EZ
622009-02-14 Eli Zaretskii <eliz@gnu.org>
63
64 * msdos.c (MAX_SCREEN_BUF): New macro.
65 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
66 Encode the entire run of glyphs sharing the same face, instead of
67 doing that one glyph at a time (fixes a bug with displaying
68 double-size characters).
69
ba301db3
AR
702009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
71
72 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
73
74 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
75 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 76 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
77
78 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 79 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 80
51d861de
SM
812009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
82
83 * keyboard.c (adjust_point_for_property): Allow stopping betwen two
84 invisible areas.
85
7fed8996
JR
862009-02-12 Jason Rumney <jasonr@gnu.org>
87
631ea4fb
JR
88 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
89 (add_font_entity_to_list): Call check_face_name even when family
90 is unspecified.
91
cb4a3e42
JR
92 * w32term.c (x_display_pixel_height, x_display_pixel_width):
93 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 94 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 95
7fed8996 96 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 97 raster fonts. (Bug#2219)
7fed8996 98
895416e3
KH
992009-02-12 Kenichi Handa <handa@m17n.org>
100
101 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
102 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
103 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 104 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
105 (find_automatic_composition): While looking forward and backward,
106 check static composition. Fix where to stop looking forward.
107 (composition_adjust_point): Fix checking of static composition.
108 (Fcomposition_get_gstring): Pay attention to
1dacf998 109 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
110
111 * lisp.h (fast_looking_at): Extern it.
112
113 * search.c (fast_looking_at): New function.
114
51d861de 115 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
116 <struct glyph>.u.cmp.to.
117 (append_composite_glyph): Likewise.
118
51d861de 119 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
120 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
121 composition.
51d861de 122 (append_composite_glyph): Adjust for the change of
895416e3
KH
123 <strcut glyph>.u.cmp.to.
124
8510724d
JB
1252009-02-11 Juanma Barranquero <lekktu@gmail.com>
126
127 * casetab.c (init_casetab_once):
128 * coding.c (ALLOC_CONVERSION_WORK_AREA):
129 * font.c (font_update_lface):
130 * fontset.c (Fnew_fontset):
131 * ftfont.c (ftfont_drive_otf):
132 * xfont.c (xfont_open):
133 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
134
294fa707
SM
1352009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
136
137 * fileio.c (Fwrite_region): !NILP -> CONSP.
138
b5bfebec
AS
1392009-02-10 Andreas Schwab <schwab@suse.de>
140
141 * process.c (send_process): Properly relocate pointer into data
adab88bd 142 when using encoded data. (Bug#2272)
b5bfebec 143
cb84a2be
KH
1442009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
145
146 * coding.c (detect_coding_charset): Fix previous change.
147
89e09428
JR
1482009-02-08 Jason Rumney <jasonr@gnu.org>
149
150 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 151 disappeared while hourglass was displayed. (Bug #2193)
89e09428 152
4470a277
AS
1532009-02-07 Andreas Schwab <schwab@suse.de>
154
155 * unexelf.c (unexec): Fix error message.
156
3175b12a
AR
1572009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
158
159 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 160 when modal window is active. (Bug #2152)
3175b12a
AR
161 (applicationShouldTerminate:): Remove now-unneeded while loop
162 around NSRunAlertPanel.
163
164 * nsmenu.m (popupSession): New file-global variable.
165 (pop_down_menu): End the popupSession before closing dialog.
166 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
167 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
168 don't query NSApp for events (just sleep instead).
169
8434d0b8
EZ
1702009-02-07 Eli Zaretskii <eliz@gnu.org>
171
51d861de
SM
172 * coding.c (syms_of_coding) <translation-table-for-input>:
173 Modify doc string to discourage use for character code unification.
8434d0b8 174
aa82edfd
CY
1752009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
176
177 * atimer.c (run_timers): Update pending_atimers.
178
2d283c7c
CY
1792009-02-06 Chong Yidong <cyd@stupidchicken.com>
180
eb306cab
CY
181 * image.c (svg_load_image): Fix last change.
182
2d283c7c
CY
183 * xfns.c (Fx_create_frame): Signal an error if no font is
184 found (Bug#2147).
185
4d8e170e
JB
1862009-02-05 Juanma Barranquero <lekktu@gmail.com>
187
188 * character.c (syms_of_character) <script-representative-chars>:
189 Fix typo in docstring.
190
c96169a0
AR
1912009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
192
193 * nsmenu.m (pop_down_menu): New function.
194 (ns_popup_dialog): Call it on unwind.
195 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
196 call timer_check() (Bug#2154).
197 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
198 handling_signal is set.
199 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
200
201 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G
202
203 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
204
205 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
206
51d861de
SM
207 * keyboard.c (poll_for_input_1, handle_async_input):
208 Set handling_signal under HAVE_NS.
c96169a0 209
aacd8ba1
GM
2102009-02-04 Glenn Morris <rgm@gnu.org>
211
212 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
213
4cb75c4b
KH
2142009-02-04 Kenichi Handa <handa@m17n.org>
215
216 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
217
218 * charset.c (Fchar_charset): New optional arg restriction.
219
220 * coding.h (coding_system_charset_list): Extern it.
221
222 * coding.c (coding_system_charset_list): New function.
223
224 * composite.c: Include coding.h and termhooks.h.
225 (composition_gstring_p): Fix for the terminal case.
226 (composition_gstring_width): Likewise.
227 (fill_gstring_body): Likewise.
228 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
229 the frame.
230 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
231 is within a composition.
867d4bb3 232 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
233
234 * term.c (encode_terminal_code): Fix handling of composition.
235 (produce_composite_glyph): For static composition, get pixel_width
236 from struct composition.
237
826ba17e
AS
2382009-02-02 Andreas Schwab <schwab@suse.de>
239
240 * unexelf.c (unexec): Handle unaligned bss offset.
241
8ad093db
AR
2422009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
243
244 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
245 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 246
8ad093db
AR
247 * keyboard.c (handle_interrupt): Don't call
248 quit_throw_to_read_char() under NS.
d0a76a6e 249
8ad093db
AR
250 * blockinput.h: Remove NS-specific code.
251
4d18a7a2
DN
2522009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
253
db878925
DN
254 * dispnew.c (window_change_signal): Don't try to get the size of a
255 suspended tty frame.
256 * term.c (Fresume_tty): Resize if the size has changed while the
257 tty was suspended.
258
4d18a7a2
DN
259 * alloc.c (mark_stack): Properly conditionalize previous change.
260
8984df7c
JB
2612009-01-30 Juanma Barranquero <lekktu@gmail.com>
262
263 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
264 * w32term.c (w32_read_socket) [SYNC_INPUT]:
265 Remove; this code is not used on Windows.
266
75f4f1ac
EZ
2672009-01-30 Eli Zaretskii <eliz@gnu.org>
268
269 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
270 EOLs that also has stray ^M characters.
271
07a1e794
JB
2722009-01-30 Juanma Barranquero <lekktu@gmail.com>
273
274 * atimer.c (run_timers, alarm_signal_handler):
275 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
276 * w32inevt.c (w32_console_read_socket):
277 * w32term.c (w32_read_socket):
278 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
279
a8b11cc9
CY
2802009-01-30 Chong Yidong <cyd@stupidchicken.com>
281
282 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
283 Initialize it as a relative filename pattern.
284 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
285 (Fcall_process_region): Simplify temp file creation using
286 temporary-file-directory.
287
c279587b
EZ
2882009-01-29 Eli Zaretskii <eliz@gnu.org>
289
290 * msdos.c: Rename pending_signals to msdos_pending_signals.
291 (sig_suspender, sigprocmask): Adjust.
292
a8fe3242
CY
2932009-01-29 Chong Yidong <cyd@stupidchicken.com>
294
295 * keyboard.c (pending_signals): New var.
296 (poll_for_input, input_available_signal, init_keyboard): Set it.
297 (process_pending_signals): New function.
298
299 * lisp.h (QUIT): Check pending_signals instead of
300 interrupt_input_pending. Use process_pending_signals.
301
51d861de 302 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 303
51d861de 304 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
305
306 * sysdep.c (emacs_write): Use process_pending_signals.
307
308 * xterm.c (XTread_socket): Update pending_signals.
309
310 * w32term.c (w32_read_socket): Update pending_signals.
311
312 * w32inevt.c (w32_console_read_socket): Update pending_signals.
313
6570a1c4
KH
3142009-01-29 Kenichi Handa <handa@m17n.org>
315
316 * xftfont.c (xftfont_has_char): New function.
317 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
318
d72a4afa
AR
3192009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
320
321 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
322 under GNUstep.
323 (ns_query_color): New declaration.
324
325 * nsterm.m (ns_confirm_quit): New variable.
326 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
327 (EmacsApp-applicationShouldTerminate:): Use it.
328 (EmacsPrefsController): Let user set it.
329 (ns_query_color): New function.
330 (ns_defined_color): Use it.
331 (ns_initialize): Drop.
332 (ns_term_init): Add two lines from ns_initialize(), and set
333 input_interrupt_mode to nil.
334
335 * image.c (svg_load_image): Don't right-shift background RGB when
336 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
337
9fe78804
KH
3382009-01-28 Kenichi Handa <handa@m17n.org>
339
340 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
341 (fontset_get_font_group): Remember that no font-group is specified
342 for C.
9fe78804 343
fa57de36
CY
3442009-01-27 Chong Yidong <cyd@stupidchicken.com>
345
930600e9
CY
346 * fns.c (concat): Check for string overflow (bug#1787).
347
fa57de36
CY
348 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
349 Quadruple undo limits (bug#1501).
350
7179ce7b
KH
3512009-01-27 Kenichi Handa <handa@m17n.org>
352
353 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
354 directly use GT_Get_Char_index.
355
356 * xftfont.c (struct xftfont_info): New member `index'.
357
358 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 359 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 360
5be8fcc0
CY
3612009-01-26 Kenichi Handa <handa@m17n.org>
362
363 * fontset.c (fontset_find_font): Fix handling of non-cons return
364 value of fontset_get_font_group.
365 (fontset_font): Revert last change.
366
19ae3e61
JR
3672009-01-26 Jason Rumney <jasonr@gnu.org>
368
369 * w32font.c (w32font_list_internal): Return quickly if registry is
370 unknown. Simplify final return.
371 (add_font_entity_to_list): Break complex logic down into more
372 manageable chunks. Move unknown registry check to
373 w32font_list_internal.
374
8612b71a
AR
3752009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
376
377 Changes to remove Feval calls from GUI under NS.
378
d8038940
JB
379 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
380 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
381 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
382
383 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
384 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
385 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
386 instead of NON_ASCII_KEYSTROKE_EVENT.
387 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
388 (EmacsApp-applicationShouldTerminate:): Query user.
389 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
390 instead of Feval.
391
392 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
393
394 * keyboard.c (kbd_buffer_get_event): Check for it.
395 (keys_of_keyboard): Define lispy keys for
396 ns-put/unput-working-text.
397
398 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
399 versions.
400 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
401
6288ae55
CY
4022009-01-25 Chong Yidong <cyd@stupidchicken.com>
403
404 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 405 setting current_buffer directly. (Bug#2044)
6288ae55 406
289e7f8f
CY
4072009-01-24 Chong Yidong <cyd@stupidchicken.com>
408
5ce87308 409 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 410 any work. (Bug#1952, bug#1990).
5ce87308 411
64cc3cf6 412 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 413
b3243e6f
AR
4142009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
415
416 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
417 (ns_no_defaults): New declaration.
418 (main): Use it.
e0d2e69a 419
d900b2af 420 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 421
d900b2af 422 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 423
d900b2af
AR
424 * nsterm.m (ns_no_defaults): New variable.
425 (ns_initialize): Don't read defaults when ns_no_defaults.
426 (EmacsView-readSelectionFromPasteboard:)
427 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 428 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
429 (ns_dumpglyphs_stretch): New function.
430 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 431 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 432
e0d2e69a
AR
433 * nsimage.m (setPixmapData:): Set to ignore image DPI.
434
3ac71f5d
CY
4352009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
436
437 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
438 call for Sparc64.
439
3fe53a83
AR
4402009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
441
442 * nsfns.m:
443 * nsgui.h:
444 * nsmenu.m:
445 * nsselect.m:
446 * nsterm.h:
447 * nsterm.m: Remove '23' comments that indicated code added during
448 update from emacs-20 -> emacs-23.
449
10f87c6f 4502009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
451
452 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 453 ns_alternate_modifier. (Bug#1217)
a3b53a85 454
c7cef62d
AR
455 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
456 Display all shortcuts, including those w/o super modifier.
457
575fb8bd
AR
458 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
459
918b848b
CY
4602009-01-22 Chong Yidong <cyd@stupidchicken.com>
461
462 * fileio.c (Vwrite_region_post_annotation_function)
463 (Vwrite_region_annotation_buffers): New vars.
464 (build_annotations_unwind): Just reset
465 Vwrite_region_annotation_buffers.
466 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
467 Call write-region-post-annotation-function.
468 (build_annotations): Add to Vwrite_region_annotation_buffers if
469 buffer changes.
470
a39e2539
AR
4712009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
472
473 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
474 Tiger.
51d861de
SM
475 * nsfns.m (ns_do_applescript):
476 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 477
35ed44db
AR
4782009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
479
480 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
481
cbe0b5bf
AR
4822009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
483
484 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 485
6049d3a0
AR
486 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
487
488 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
489 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
490 handle Ctrl-tab. (Bug#1841)
491 (ns_get_color): Use unsigned long long for scanned hex string value.
492 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 493 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
6049d3a0 494 (EmacsPrefsController-setPanelFromDefaultValues) New function.
3a88a825 495 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 496 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 497 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 498 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 499
d3810c21 500 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 501 DPI. (Bug#1316)
d3810c21
AR
502 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
503 values in onTiger section.
4c7077c3 504
e301e634
CY
5052009-01-19 Chong Yidong <cyd@stupidchicken.com>
506
7f82490b
CY
507 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
508 Check return value of font_spec_from_name.
64cc3cf6 509 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
510
511 * font.c (font_spec_from_name): Return Qnil if font name could not
512 be parsed.
513 (font_parse_name): Treat a `?' character as part of an XLFD.
514
e301e634
CY
515 * fns.c (Fsubstring): Doc fix.
516
1c0db158
KH
5172009-01-19 Kenichi Handa <handa@m17n.org>
518
51d861de 519 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
520 (ftfont_list): Likewise.
521
acf20901
JB
5222009-01-18 Juanma Barranquero <lekktu@gmail.com>
523
fff4e459
JB
524 * dbusbind.c (Fdbus_register_signal):
525 * process.c (conv_sockaddr_to_lisp):
526 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
527
acf20901
JB
528 * callproc.c (Fgetenv_internal): Doc fix.
529
e7abcdfb
CY
5302009-01-16 Chong Yidong <cyd@stupidchicken.com>
531
532 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
533 it is not even used.
534
b60861e6
GM
5352009-01-16 Glenn Morris <rgm@gnu.org>
536
537 * font.c (Ffont_variation_glyphs): Silence compiler.
538
8db52afe
JB
5392009-01-15 Juanma Barranquero <lekktu@gmail.com>
540
541 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
542 Reported by David Robinow <drobinow@gmail.com>.
543
4cddb209
KH
5442009-01-15 Kenichi Handa <handa@m17n.org>
545
51d861de 546 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 547
f247f67b
JR
5482009-01-14 Jason Rumney <jasonr@gnu.org>
549
550 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 551 never a fontset. (Bug#1562)
f247f67b 552
f56a4450
KH
5532009-01-14 Kenichi Handa <handa@m17n.org>
554
555 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 556 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 557
4e99855e
CY
5582009-01-13 Chong Yidong <cyd@stupidchicken.com>
559
560 * font.c (font_clear_prop): If clearing the family, clear the font
561 width index too.
562
fff4e459 563 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 564
24f01470
JB
5652009-01-12 Juanma Barranquero <lekktu@gmail.com>
566
567 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
568 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
569 functions, use sizeof.
570
a41240a3
MR
5712009-01-12 Martin Rudalics <rudalics@gmx.at>
572
573 * keyboard.c (read_char): Fix case where last_nonmenu_event
574 returned a bad value with submenus. (Bug#447)
575
944636b8
CY
5762009-01-12 Chong Yidong <cyd@stupidchicken.com>
577
578 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
579 family, clear the font width index too.
580
0dad7c6f
JR
5812009-01-11 Jason Rumney <jasonr@gnu.org>
582
583 * keyboard.c (cmd_error_internal): Exit when errors occur before
584 frame creation and not in daemon mode. (Bug#1836)
585
7c2363af
CY
5862009-01-10 Chong Yidong <cyd@stupidchicken.com>
587
588 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
589 of a display vector, backtrack.
590 (try_window_reusing_current_matrix): Check glyph type before
591 referencing charpos member.
592
97b1b294
EZ
5932009-01-10 Eli Zaretskii <eliz@gnu.org>
594
595 Fix Bug #876:
596
597 * coding.c (inhibit_null_byte_detection): New variable.
598 (detect_coding, detect_coding_system): Don't pay attention to null
599 bytes if inhibit_null_byte_detection is non-zero.
51d861de 600 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
601 <inhibit-iso-escape-detection>: Doc fix.
602
4624b6e3
JR
6032009-01-09 Jason Rumney <jasonr@gnu.org>
604
605 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 606 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
607 Only report Unicode Plane 2 fonts as unicode-sip.
608
323b840c
CY
6092009-01-09 Chong Yidong <cyd@stupidchicken.com>
610
51d861de
SM
611 * xfaces.c (Fx_font_family_list): Delete function.
612 Move compatibility version to faces.el.
323b840c 613
51d861de 614 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 615
eba7400d
MR
6162009-01-09 Martin Rudalics <rudalics@gmx.at>
617
618 * frame.c (x_set_frame_parameters): Remember requested value for
619 fullscreen before it's reset by the parameter handler.
620
4b09796d
GM
6212009-01-09 Glenn Morris <rgm@gnu.org>
622
623 * keyboard.c (last_command_char): For clarity, rename to...
624 (last_command-event): ... and update all users.
625 (last_input_char): For clarity, rename to...
626 (last_input_event): ... and update all users.
627 (last-command-char, last-input-char): Move to subr.el as aliases.
628 * cmds.c, commands.h: Update for last_command_char rename.
629
14ccea62
CY
6302009-01-08 Chong Yidong <cyd@stupidchicken.com>
631
51d861de 632 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 633
5f004711
JR
6342009-01-08 Jason Rumney <jasonr@gnu.org>
635
636 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
637 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
638 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
639 Don't declare.
fff4e459 640 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
641 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
642
b71f6f73
KH
6432009-01-07 Kenichi Handa <handa@m17n.org>
644
50b06221 645 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 646 remember the coding system used for decoding in
50b06221
KH
647 coding_system (Bug#1039).
648
b71f6f73 649 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 650 breaking the loop. (Bug#870)
b71f6f73
KH
651 (decode_coding_utf_16, decode_coding_emacs_mule)
652 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
653 (decode_coding_charset): Likewise.
654
56f668f7
MR
6552009-01-05 Martin Rudalics <rudalics@gmx.at>
656
657 * frame.c (x_set_frame_parameters): Make sure height (width) get
658 applied when fullwidth (fullheight) is set. (Bug#1522)
659
5da9424d
JB
6602009-01-04 Juanma Barranquero <lekktu@gmail.com>
661
662 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
663 (utc_base): Declare as ULONGLONG, not long double.
664 (convert_time_raw): Delete.
665 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
666 (initialize_utc_base): New function.
667 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
668 (convert_from_time_t): Use initialize_utc_base; compute result with
669 64-bit arithmetic.
670 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
671
c4605e09
EZ
6722009-01-03 Eli Zaretskii <eliz@gnu.org>
673
9acef61c 674 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
675 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
676 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
677 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
678 [!subprocesses]: Define.
679 (syms_of_process) [!subprocesses]: Intern and staticpro them.
680 (Flist_system_processes, Fsystem_process_attributes)
681 [!subprocesses]: Call list_system_processes and
682 system_process_attributes instead of returning Qnil.
683
9acef61c
JB
684 * dosfns.c (system_process_attributes, list_system_processes):
685 New functions.
c4605e09
EZ
686
687 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
688
689 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
690 Don't use the default (no-op) implementation.
691
8b7d0a16
JR
6922009-01-03 Jason Rumney <jasonr@gnu.org>
693
a6d46bc1
JR
694 * keyboard.c (parse_modifiers_uncached): Wheel events are
695 clicks (bug#687).
696
8b7d0a16
JR
697 * w32term.c (x_query_colors, x_query_color): New functions.
698
699 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
700 (svg_load_image): Cast returned pointers from dynamically loaded
701 functions. Eliminate W32 specific code.
702
bfe11752
DN
7032009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
704
89e2438a
DN
705 * nsfns.m (x_set_foreground_color, x_set_background_color)
706 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
707 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
708 x_ prefix instead of ns_. Update references.
709 (syms_of_nsfns): Add a FIXME comment.
710
711 * nsterm.m (x_set_cursor_type): New prototype.
712 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
713
bfe11752
DN
714 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
715 for Solaris instead of incorrectly providing Qutime and Qcutime.
716
031da700
EZ
7172009-01-02 Eli Zaretskii <eliz@gnu.org>
718
719 * w32.c (process_times): Compute sum of utime and stime.
720 (system_process_attributes): Add Qtime to the alist.
721
722 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
723 and add them to the alist.
724
725 * process.c (top level) <Qtime, Qctime>: New variables.
726 (syms_of_process): staticpro them.
727 (Fsystem_process_attributes): Add their documentation to the doc
728 string.
729
730 * process.h: Declare Qtime and Qctime.
731
df23bf08
JR
7322009-01-02 Jason Rumney <jasonr@gnu.org>
733
9acef61c 734 * image.c (Qgobject): New symbol.
df23bf08
JR
735 (syms_of_image): Initialize it.
736 (init_svg_functions): Load some functions from gobject library.
737
5bbdf7aa
DN
7382009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
739
740 * frame.c (make_terminal_frame): Remove redundant code and useless
741 block.
742
63136da6
AS
7432009-01-01 Andreas Schwab <schwab@suse.de>
744
745 * process.c (conv_sockaddr_to_lisp): Add workaround for
746 getsockname bug on BSD.
747
9ef69046
CY
7482009-01-01 Chong Yidong <cyd@stupidchicken.com>
749
d6fafbe0
CY
750 * xfns.c (x_create_tip_frame): Set border width of the X window.
751
51d861de 752 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 753
f9c34147
JR
7542009-01-01 Jason Rumney <jasonr@gnu.org>
755
9acef61c 756 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
757 Don't block input, as per earlier xterm.c changes.
758
f5497e45
AR
7592008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
760
761 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
762 (ns_appkit_version_int): New function.
763 (x-server-version): Use ns_appkit_version_int and follow 21+
764 convention of returning 3 integers.
765
c19cab20
KH
7662008-12-30 Kenichi Handa <handa@m17n.org>
767
768 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
769 (CHAR_SURROGATE_PAIR_P): New macro.
770
771 * font.h (struct font_driver): New member get_variation_glyphs.
772
9acef61c 773 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
774 (Ffont_variation_glyphs): New function.
775 (syms_of_font): Defsubr it.
776
777 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
778 ftfont_variation_glyphs.
779 (setup_otf_gstring): New function.
780 (ftfont_drive_otf): Use it.
781 (ftfont_shape_by_flt): Handle variation selector.
782 (ftfont_variation_glyphs): New function.
783
28cd591f
MR
7842008-12-30 Martin Rudalics <rudalics@gmx.at>
785
786 * frame.c (Vemacs_iconified): Remove.
787
7f714baf
JR
7882008-12-30 Jason Rumney <jasonr@gnu.org>
789
790 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 791 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 792
9d2d22ab
CY
7932008-12-30 Chong Yidong <cyd@stupidchicken.com>
794
795 * indent.c (Fvertical_motion): Don't advance iterator if we have
796 reseated to the desired position.
797
798 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
799 checking for pos match.
800
545312c2
KH
8012008-12-30 Kenichi Handa <handa@m17n.org>
802
1ede3eb6
KH
803 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
804 just get the low 8-bit of the code.
805
545312c2
KH
806 * font.c (font_intern_prop): Validate str as multibyte.
807
bd7bbf29
DN
8082008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
809
31e0750e
DN
810 * dispextern.h (struct face): Move lface and hash from the middle
811 of bitfields.
812
bd7bbf29
DN
813 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
814
b5672e7c
DN
8152008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
816
817 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
818 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
819 instead of intervals.h.
820
d704470f
AS
8212008-12-26 Andreas Schwab <schwab@suse.de>
822
823 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
824 cons.
825
54b33868
MR
8262008-12-26 Martin Rudalics <rudalics@gmx.at>
827
828 * textprop.c (Qminibuffer_prompt): New variable.
829 (syms_of_textprop): Initialize it.
830 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
831 in minibuffer-prompt face. (Bug#1662)
832
40b615d6
JR
8332008-12-25 Jason Rumney <jasonr@gnu.org>
834
835 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
836
baae5c2d
JR
8372008-12-24 Jason Rumney <jasonr@gnu.org>
838
839 * ralloc.c (r_alloc_reset_variable): New function.
840
841 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 842 record of what points where. (Bug#716)
baae5c2d 843
a9051c88
DN
8442008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
845
846 * minibuf.c (read_minibuf): Follow the non-interactive case when
847 running as a daemon, before detaching.
848
8b146312
AS
8492008-12-22 Andreas Schwab <schwab@suse.de>
850
851 * buffer.c (init_buffer): Use realloc instead of xrealloc.
852 * gtkutil.c (free_widget_value): Use xfree instead of free.
853
56f2de10
MR
8542008-12-22 Martin Rudalics <rudalics@gmx.at>
855
856 * frame.c (delete_frame): New function derived from
857 Fdelete_frame to handle Qnoelisp value for FORCE argument.
858 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
859 (Fdelete_frame): Call delete_frame. Remove line from doc-string
860 saying that FORCE non-nil doesn't run `delete-frame-functions'.
861 * frame.h: Extern delete_frame.
862 * window.c (window_loop):
863 * terminal.c (delete_terminal):
864 * xterm.c (x_connection_closed):
865 * xfns.c (Fx_hide_tip):
9acef61c 866 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 867
1fc200d6
JR
8682008-12-21 Jason Rumney <jasonr@gnu.org>
869
870 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
871 when character maps to .notdef character.
872
5e252df2
SM
8732008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
874
875 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
876
99b72cc4
JR
8772008-12-20 Jason Rumney <jasonr@gnu.org>
878
879 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 880 a graphical frame on Windows. (Bug#1325)
99b72cc4 881
acc49a52
JD
8822008-12-20 Jan Djärv <jan.h.d@swipnet.se>
883
884 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
885
6ea15123
CY
8862008-12-20 Chong Yidong <cyd@stupidchicken.com>
887
888 * minibuf.c (Fread_buffer): Doc fix.
889
b2dab6c8
JR
8902008-12-20 Jason Rumney <jasonr@gnu.org>
891
54ea0c87 892 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 893 server name in UNC paths. (Bug#719)
54ea0c87 894
b2dab6c8 895 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 896 charbuf. (Bug#1035)
b2dab6c8 897
6d1921be
DN
8982008-12-19 Daniel Engeler <engeler@gmail.com>
899
900 * sysdep.c (serial_configure): Fix typo.
901
53934c98
DN
9022008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
903
904 * sysdep.c: Include alloca.h.
f4f634e8
DN
905 (system_process_attributes): Add implementation for Solaris.
906
907 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 908
06e111a6
DN
9092008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
910
911 Reorganize implementation of Flist_system_processes and
912 Fsystem_process_attributes. No functional changes.
913 * process.c: Don't #include pwd.h, grp.h and limits.h.
914 (Flist_system_processes): Just call list_system_processes.
915 (Fsystem_process_attributes): Just call system_process_attributes.
916 (procfs_list_system_processes, time_from_jiffies)
917 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
918 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
919
920 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
921 (list_system_processes): Rename from
922 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
923 Provide a do nothing implementation.
924 (system_process_attributes): Rename from
925 procfs_list_system_processes.
926 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 927 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
928
929 * w32.c (list_system_processes): Rename from
930 w32_list_system_processes.
931 (system_process_attributes): Rename from
932 w32_system_process_attributes.
933
934 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
935
936 * process.h (w32_list_system_processes)
937 (w32_system_process_attributes): Remove.
938 (list_system_processes, system_process_attributes): New
939 prototypes.
940
6a705b23
KH
9412008-12-19 Kenichi Handa <handa@m17n.org>
942
943 * xfont.c (xfont_decode_coding_xlfd): New function.
944 (xfont_encode_coding_xlfd): New function.
945 (xfont_list_pattern): Decode XLFD by iso-8859-1.
946 (xfont_list): Decode and encode XLFD by iso-8859-1.
947 (xfont_match): Likewise.
948 (xfont_list_family): Likewise.
949 (xfont_open): Likewise.
950
d66c0241 951 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
952 names are utf-8.
953
d66c0241 954 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
955 names are utf-8.
956
5a130941
JD
9572008-12-18 Jan Djärv <jan.h.d@swipnet.se>
958
959 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
960 changed.
bfd20325
JD
961 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
962 clicked on a detached tool bar button.
5a130941 963
fd95644b
DN
9642008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
965
966 * emacs.c (main): Print and error and exit when no data is read
967 from the pipe.
968
e6eee6ae
JR
9692008-12-17 Jason Rumney <jasonr@gnu.org>
970
971 * w32font.c (w32font_has_char): Always return -1.
972
a35dd56b
KH
9732008-12-16 Kenichi Handa <handa@m17n.org>
974
975 * font.c (font_open_entity): Fix previous change.
976
0e3635c2
DN
9772008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
978
979 * process.c: Include <limits.h>.
980
d4835507 9812008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
982
983 * font.c (font_update_drivers): Fix mistake in reconstructing the
984 driver list.
985
9862008-12-16 Chong Yidong <cyd@stupidchicken.com>
987
988 * font.c (font_clear_cache): Fix format of font cache data.
989
e2cbc401
CY
9902008-12-15 Chong Yidong <cyd@stupidchicken.com>
991
992 * xftfont.c (xftfont_open): Free Xft font pattern if
993 XftFontOpenPattern fails.
994
995 * xterm.c (x_free_frame_resources): Remove extraneous call to
996 free_frame_faces.
997
b131d535
CY
9982008-12-13 Chong Yidong <cyd@stupidchicken.com>
999
1000 * xterm.c (x_delete_display): Move xim_close_dpy call to
1001 x_delete_terminal.
1002 (x_delete_terminal): Call xim_close_dpy.
1003
e6df5336
JR
10042008-12-13 Jason Rumney <jasonr@gnu.org>
1005
1006 * w32font.c (intern_font_name): New function.
1007 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
1008 (w32font_open_internal, Fx_select_font): Decode font name.
1009 (fill_in_logfont, list_all_matching_fonts): Encode font name.
1010
1011 * w32font.h (intern_font_name): Declare new function.
1012
1013 * w32uniscribe.c (add_opentype_font_name_to_list):
1014 Use intern_font_name.
1015
20d68145
CY
10162008-12-13 Chong Yidong <cyd@stupidchicken.com>
1017
9f2554de
CY
1018 * frame.c (Fdelete_frame): Call free_font_driver_list.
1019
3d9bec9a
CY
1020 * font.c (free_font_driver_list): Implement missing function.
1021
20d68145
CY
1022 * w32term.c (w32_term_init): Don't initialize the image cache
1023 here; it will be done in init_frame_faces.
1024
1025 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
1026 (struct x_display_info): Remove unused member null_pixel. New
1027 member xim_callback_data.
1028
1029 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
1030 (xim_initialize): Save pointer to callback function data.
1031 (xim_close_dpy): Free callback function data. Call XCloseIM,
1032 reverting 2008-11-04 change by David Smith.
1033 (x_term_init): Don't initialize the image cache here; it will be
1034 done in init_frame_faces. Remove ancient "null_pixel" cruft.
1035 (x_delete_display): Free x_dnd_atoms member.
1036
96f9306b
KH
10372008-12-13 Kenichi Handa <handa@m17n.org>
1038
6dec9044
JB
1039 * font.c (font_rescale_ratio): Moved from xfaces.c.
1040 Argument type changed. Handle a font-spec too.
96f9306b 1041 (font_score): Check Vface_font_rescale_alist.
6dec9044 1042 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
1043
1044 * xfaces.c (font_rescale_ratio): Moved to font.c.
1045
8d5b4964
CY
10462008-12-13 Chong Yidong <cyd@stupidchicken.com>
1047
1048 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
1049
e6df5336
JR
10502008-12-12 Jason Rumney <jasonr@gnu.org>
1051
1052 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
1053 Vwindow_system_version to the real w32 major version.
1054
97c6058a
DN
10552008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
1056
1057 * term.c (init_tty): Move setting the terminal name before the
1058 potential user: maybe_fatal.
1059
ec4e88d7
CY
10602008-12-11 Chong Yidong <cyd@stupidchicken.com>
1061
d4835507
JB
1062 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
1063 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 1064
b4233ec9
JR
10652008-12-11 Jason Rumney <jasonr@gnu.org>
1066
8ec71e23 1067 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 1068 SYMBOL_CHARSET. (Bug#547)
8ec71e23 1069
b4233ec9 1070 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 1071 size for surrogates. (Bug#1096, bug#872)
b4233ec9 1072
011a0143
JB
10732008-12-11 Juanma Barranquero <lekktu@gmail.com>
1074
1075 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
1076
3c309f34
JB
10772008-12-11 Juanma Barranquero <lekktu@gmail.com>
1078
1079 * process.c (Fsystem_process_attributes, syms_of_process):
1080 Fix typo in name of Ssystem_process_attributes.
1081 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
1082
fedc6ab5
JB
10832008-12-11 Juanma Barranquero <lekktu@gmail.com>
1084
1085 * syntax.c (Fmodify_syntax_entry): Doc fix.
1086
ba3de0e8
JB
10872008-12-10 Juanma Barranquero <lekktu@gmail.com>
1088
1089 * font.c (Ffont_spec): Move usage to end of docstring.
1090
174f1c74
JR
10912008-12-10 Jason Rumney <jasonr@gnu.org>
1092
1093 * w32font.c (Qcham): New symbol.
1094 (font_supported_scripts): Add cham, and comments for other new
1095 scripts in bitfield from OpenType spec.
9d32f818
JR
1096 (add_font_entity_to_list): Limit unicode-sip fonts to those that
1097 contain characters beyond the bmp.
174f1c74 1098
7b649478
KH
10992008-12-10 Kenichi Handa <handa@m17n.org>
1100
1101 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 1102 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
1103 Qunicode_sip.
1104
2133e2d1
JB
11052008-12-10 Juanma Barranquero <lekktu@gmail.com>
1106
1107 * coding.c (QCdefault_char): Rename from QCdefalut_char.
1108 (Fcoding_system_put): Use QCdefault_char.
1109 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
1110
9af886ee
CY
11112008-12-09 Chong Yidong <cyd@stupidchicken.com>
1112
74d819eb
CY
1113 * xftfont.c (syms_of_xftfont): Fix typo.
1114
4ccfa1c0 1115 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 1116
7c19d3ae
DN
11172008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
1118
1119 * emacs.c (main): Close daemon_pipe on exec.
1120
567826bb
CY
11212008-12-08 Chong Yidong <cyd@stupidchicken.com>
1122
1123 * termchar.h (struct tty): New members termcap_term_buffer and
1124 termcap_strings_buffer.
1125
1126 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 1127 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
1128 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
1129 All callers changed.
1130 (init_tty): Store termcap data and string buffers in new struct
1131 tty members termcap_term_buffer and termcap_strings_buffer.
1132 (delete_tty): Free them.
4ccfa1c0 1133 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 1134
aa96c42b
SZ
11352008-12-07 Seiji Zenitani <zenitani@mac.com>
1136
1137 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 1138 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 1139
b7e1d896
CY
11402008-12-06 Chong Yidong <cyd@stupidchicken.com>
1141
1142 * coding.c (make_conversion_work_buffer): Disable buffer
1143 modification hooks in the work buffer.
1144
b5ec91a5
EZ
11452008-12-05 Eli Zaretskii <eliz@gnu.org>
1146
1147 * process.c (procfs_system_process_attributes): If `nread' has a
1148 negative value, assign zero to it.
1149
a5d2a52b
CY
11502008-12-05 Chong Yidong <cyd@stupidchicken.com>
1151
68c5540b 1152 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 1153
7bf1bb21
KH
11542008-12-05 Kenichi Handa <handa@m17n.org>
1155
1156 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
1157 second character is a combining character.
1158
2fdc7d00
EZ
11592008-12-05 Eli Zaretskii <eliz@gnu.org>
1160
1161 * process.c (procfs_system_process_attributes): Don't use cmd,
1162 cmdsize, and q without initializing them first.
1163
bf6bfba8
JR
11642008-12-04 Jason Rumney <jasonr@gnu.org>
1165
1166 * w32font.c (w32font_draw): Initialize orig_clip before getting
1167 it, and delete it when finished.
1168
a3b1a468
DN
11692008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
1170
1171 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
1172 case when running as a daemon before detaching.
1173
8b8be8eb
JB
11742008-12-03 Juanma Barranquero <lekktu@gmail.com>
1175
805f2638 1176 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 1177
b1bde622
KH
11782008-12-03 Kenichi Handa <handa@m17n.org>
1179
e500c47d
KH
1180 * font.c (font_at): Set `multibyte' at first.
1181
ca516334
KH
1182 * coding.c (decode_coding_charset): Check type of an element of
1183 vector VALIDS.
7bf1bb21 1184 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 1185
4ccfa1c0 1186 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
1187 (font_for_char): Likewise.
1188
1e5ecd37
CY
11892008-12-03 Chong Yidong <cyd@stupidchicken.com>
1190
d5b01609 1191 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
1192 (font_update_lface): Handle fonts with corrupted size specs,
1193 i.e. non-int and non-float.
d5b01609 1194
11e3a6e4 1195 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 1196 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 1197 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 1198
ab06788b
CY
1199 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
1200
1e5ecd37 1201 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 1202 underline_minimum_offset for underline position.
1e5ecd37 1203
63c125ab
DN
12042008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
1205
1206 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
1207
1208 * character.c (c_string_width): Specify the type for LEN.
1209
3a8406e1
KH
12102008-12-03 Kenichi Handa <handa@m17n.org>
1211
4ccfa1c0 1212 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 1213 (decode_coding_utf_8): Likewise.
4ccfa1c0 1214 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 1215 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 1216
651df7d9
CY
12172008-12-02 Chong Yidong <cyd@stupidchicken.com>
1218
1219 * keyboard.c (make_lispy_position): Only use PT if the selected
1220 window is current.
1221
1f625c6c
AS
12222008-12-02 Andreas Schwab <schwab@suse.de>
1223
f7741ce9
AS
1224 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
1225
1f625c6c
AS
1226 * doprnt.c (doprnt1): Fix size of charbuf.
1227
92bc2678
CY
12282008-12-02 Chong Yidong <cyd@stupidchicken.com>
1229
1230 * keyboard.c (timer_check): Revert last change.
1231
93b9e8cc
JB
12322008-12-02 Juanma Barranquero <lekktu@gmail.com>
1233
1234 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
1235
fd7a37d5
JB
12362008-12-01 Juanma Barranquero <lekktu@gmail.com>
1237
1238 * makefile.w32-in: Update dependencies.
1239 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
1240
c115043b
AS
12412008-12-01 Andreas Schwab <schwab@suse.de>
1242
1243 * font.c (register_font_driver): Use xmalloc.
1244 (font_put_frame_data): Likewise.
1245
f5668d2a
CY
12462008-12-01 Chong Yidong <cyd@stupidchicken.com>
1247
860d96be
CY
1248 * xfaces.c (realize_x_face): Make abort condition clearer.
1249
f5668d2a
CY
1250 * gtkutil.c (update_frame_tool_bar): Initialize variable.
1251
379c17e7
CY
12522008-11-30 Chong Yidong <cyd@stupidchicken.com>
1253
1254 * keyboard.c (timer_check): After a timer runs, ensure that the
1255 selected window's buffer is current.
1256
35f36d65
JB
12572008-11-30 Juanma Barranquero <lekktu@gmail.com>
1258
f952c61c
JB
1259 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
1260 It was accidentally restored by the Unicode merge.
1261
35f36d65
JB
1262 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
1263
b23077df
JB
12642008-11-29 Juanma Barranquero <lekktu@gmail.com>
1265
1266 * w32proc.c: Include "coding.h".
1267 (Fw32_short_file_name): Encode filename passed to Windows API.
1268 (Fw32_long_file_name): Encode filename passed to Windows API and
1269 decode back the result. (Bug#1433)
1270
b8ebe9dd
KH
12712008-11-29 Kenichi Handa <handa@m17n.org>
1272
8cc53f96
KH
1273 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
1274 not before accessing it.
1275
b8ebe9dd
KH
1276 * charset.c (Fdefine_charset_internal): After calculating
1277 min_char, max_char, and fastmap, copy the charset structure again.
1278 (encode_char): Fix the previous change.
1279
59bc82c0
SZ
12802008-11-28 Seiji Zenitani <zenitani@mac.com>
1281
1282 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
1283
1284 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
1285
1286 * nsterm.m (x_set_frame_alpha): New function.
1287
32247e3d
EZ
12882008-11-27 Eli Zaretskii <eliz@gnu.org>
1289
1290 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
1291
b003e5ff
JB
12922008-11-27 Juanma Barranquero <lekktu@gmail.com>
1293
1294 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
1295 pointer to check_face_name.
1296
708550f5
KH
12972008-11-27 Kenichi Handa <handa@m17n.org>
1298
1299 * category.h (SET_CATEGORY_SET): Call set_category_set.
1300 (set_category_set): Extern it.
1301
1302 * category.c (hash_get_category_set): New function.
1303 (Fmodify_category_entry): Adjusted for the change of
1304 char_table_ref_and_range. Call hash_get_category_set to get a
1305 category set to store in the table.
1306
1307 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
1308 Funify_charset.
1309
2ae37cf0 1310 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
1311 (DECODE_CHAR): Check if the decoder vector is ready.
1312 (ENCODE_CHAR): Check if the encoder char-table is ready.
1313 (maybe_unify_char): Extern it.
1314
1315 * charset.c (Vchar_unified_charset_table): Delete it.
1316 (inhibit_load_charset_map): New variable.
1317 (temp_charset_work): New variable.
1318 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
1319 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
1320 New macros.
1321 (load_charset_map): Meaning of control_flag changed. If
1322 inhibit_load_charset_map is nonzero, setup a table in
1323 temp_charset_work.
1324 (load_charset): New argument control_flag.
1325 (map_charset_for_dump): New function.
1326 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
1327 map_charset_for_dump.
1328 (Fdefine_charset_internal): If the charset method is MAP, load
1329 mapping tables by calling load_charset.
1330 (Funify_charset): Don't load a mapping table but directly set
1331 Vchar_unify_table.
1332 (maybe_unify_char): New function.
1333 (decode_char): Don't handle the deleted method MAP_DEFERRED.
1334 Handle the case of inhibit_load_charset_map being nonzero.
1335 (encode_char): Don't handle the deleted method MAP_DEFERRED.
1336 Handle the case of inhibit_load_charset_map being nonzero.
1337 (Fclear_charset_maps): Just free temp_charset_work.
1338 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
1339 variable.
1340
1341 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
1342 change of char_table_ref_and_range.
1343 (char_table_ref_and_range): Change the meaning of argument FROM
1344 and TO. Now the caller must provide initial values for *FROM
1345 and *TO.
1346
1347 * fontset.c (fontset_add): Adjusted for the change of
1348 char_table_ref_and_range.
1349 (fontset_get_font_group): Likewise.
1350 (Ffontset_info): Likewise.
1351
1352 * keymap.c (describe_vector): Adjusted for the change of
1353 char_table_ref_and_range. For char-table, put boundary between
1354 non-ASCII and 8-bit characters.
1355
1356 * print.c (print_object): For bool-vector, delete unnecessary
1357 check of ASCII_BYTE_P.
1358
9196133b
JR
13592008-11-26 Jason Rumney <jasonr@gnu.org>
1360
1361 * w32font.c (w32font_open_internal): Don't include external
9acef61c 1362 leading in font height. (Bug#879)
9196133b 1363
9f688acf
GM
13642008-11-26 Glenn Morris <rgm@gnu.org>
1365
1366 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
1367 redefinition with ifdef. (Bug#1383)
1368
90d19aff
AR
13692008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1370
1371 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
1372
4ccfa1c0 13732008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
1374
1375 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
1376 New EmacsView methods.
1377 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
1378 Fixes bug #1048,1357,1414.
1379
13802008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
1381
1382 Fix bug #1362.
1383 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
1384 is not an indexed color.
1385 * nsterm.m (free_indexed_color): Add argument checking.
1386 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
1387
e7d5ecb3
CY
13882008-11-24 Chong Yidong <cyd@stupidchicken.com>
1389
1390 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
1391 Document confirm-after-completion value for
1392 minibuffer-completion-confirm.
1393
c285743c
JR
13942008-11-24 Jason Rumney <jasonr@gnu.org>
1395
1396 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
1397 warning.
1398
b0857706
JR
13992008-11-23 Jason Rumney <jasonr@gnu.org>
1400
1401 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
1402 restored before returning.
1403
1404 * w32font.c (check_face_name): New function.
1405 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 1406 fonts. (Bug#642)
b0857706 1407
ee50ff07
MR
14082008-11-22 Martin Rudalics <rudalics@gmx.at>
1409
1410 * buffer.c (Fswitch_to_buffer): Reword and mention new option
1411 confirm-nonexistent-file-or-buffer in doc-string.
1412
b8ff72fa
SM
14132008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
1414
1415 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
1416 Fix copy/paste typo. Add checks.
1417
cee53ed4
KH
14182008-11-21 Kenichi Handa <handa@m17n.org>
1419
1420 * coding.c (detect_coding_iso_2022): Reject invalid composition
1421 sequence.
1422 (DECODE_COMPOSITION_START): If the current source is the last
1423 block, and the current composition doesn't end, regard this
1424 sequence as invalid.
1425 (decode_coding_iso_2022): Handle invalid composition sequence.
1426
f6ef1e65
MR
14272008-11-20 Martin Rudalics <rudalics@gmx.at>
1428
1429 * window.c (coordinates_in_window): Don't return
1430 ON_VERTICAL_BORDER for the rightmost position of a mode/header
1431 line when the window is not the rightmost one. (Bug#1372)
1432
e08b1705
MR
14332008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
1434
1435 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
1436
ad98e89f
EZ
14372008-11-15 Eli Zaretskii <eliz@gnu.org>
1438
1439 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
1440 and bright_bg if noninteractive is non-zero.
1441
fb098a4b
CY
14422008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1443
1444 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
1445 x_draw_glyph_string_background.
1446
1447 * w32term.c (x_draw_glyph_string): Likewise.
1448
ce952b6e
CY
14492008-11-15 Chong Yidong <cyd@stupidchicken.com>
1450
1451 * xterm.c (x_draw_glyph_string): Stop drawing the background of
1452 the next glyph string once past the overhang width.
1453
1454 * nsterm.m (ns_draw_glyph_string): Likewise.
1455
1456 * w32term.c (x_draw_glyph_string): Likewise.
1457
26ea7079
CY
14582008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
1459
1460 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
1461 double file close.
1462
1c33c906
MR
14632008-11-14 Martin Rudalics <rudalics@gmx.at>
1464
1465 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
1466 dedicated status of window before attempting to display another
1467 buffer in it.
1468
8fc29035
JB
14692008-11-14 Juanma Barranquero <lekktu@gmail.com>
1470
1471 * msdos.c (Fmsdos_long_file_names):
1472 (syms_of_msdos) <dos-unsupported-char-glyph>:
1473 * dosfns.c (Fint86): Fix typos in docstrings.
1474
55fb4286
EZ
14752008-11-14 Eli Zaretskii <eliz@gnu.org>
1476
1477 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
1478
3fda0315
KY
14792008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
1480
1481 * puresize.h (BASE_PURESIZE): Increase to 1260000.
1482
7e849c17
CY
14832008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
1484
1485 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
1486
1487 * frame.h: Negative alpha means "don't touch".
1488
1489 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
1490
1491 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
1492
b9fd67bd
DN
14932008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
1494
1495 * hftctl.c:
1496 * chpdef.h:
1497 * acldef.h: Remove files used only for systems no longer supported.
1498
1499 * Makefile.in: Fix .o alphabetical ordering.
1500 (hftctl.o): Remove dependency, file removed.
1501 (keymap.o, print.o): Depend on charset.h.
1502
d5998e03
KH
15032008-11-10 Kenichi Handa <handa@m17n.org>
1504
2ae37cf0 1505 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 1506
be70e183
CY
15072008-11-08 Chong Yidong <cyd@stupidchicken.com>
1508
1509 * dired.c (file_name_completion): If completion_ignore_case is
1510 enabled, ignore case when checking completion-regexp-list.
1511
7cf94eac
EZ
15122008-11-08 Eli Zaretskii <eliz@gnu.org>
1513
1514 * vm-limit.c (get_lim_data): Fix last change.
1515
ee107a89
KH
15162008-11-08 Kenichi Handa <handa@m17n.org>
1517
1518 * character.c (Fget_byte): New function.
1519 (syms_of_character): Defsubr Fget_byte.
1520
5fd15622
CY
15212008-11-07 Chong Yidong <cyd@stupidchicken.com>
1522
1523 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
1524 cursor position is valid after scrolling.
1525
13d62fad
JB
15262008-11-06 Juanma Barranquero <lekktu@gmail.com>
1527
1528 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
1529
a1dd2936
GM
15302008-11-06 Glenn Morris <rgm@gnu.org>
1531
1532 * xterm.c (handle_one_xevent): Don't let popup menus cause
1533 mouse-autoselect-window related window switching. (Bug#1261)
1534
860cd236
CY
15352008-11-04 David Smith <davidsmith@acm.org> (tiny change)
1536
1537 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
1538
653a3150
AS
15392008-11-04 Andreas Schwab <schwab@suse.de>
1540
1541 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
1542
870f5cac
CY
15432008-11-03 Chong Yidong <cyd@stupidchicken.com>
1544
1545 * xfns.c (Fx_wm_set_size_hint): New function.
1546
1e02f3cb
MR
15472008-11-03 Martin Rudalics <rudalics@gmx.at>
1548
1549 * textprop.c (Fprevious_single_char_property_change): Return 0
1550 when there's no change in a string. (Bug#1301)
1551
e630dfc6
MR
15522008-11-02 Martin Rudalics <rudalics@gmx.at>
1553
1554 * frame.c (do_switch_frame): New argument NORECORD passed to
1555 Fselect_window.
1556 (Fselect_frame): New argument NORECORD passed to
1557 do_switch_frame.
1558 (Fset_frame_selected_window): New argument NORECORD passed to
1559 Fselect_frame.
1560 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
1561 in call of do_switch_frame.
1562 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
1563 Handle NORECORD argument in call of Fselect_frame.
1564 * lisp.h (do_switch_frame, Fselect_frame)
1565 (Fset_frame_selected_window): Adjust declarations.
1566 * window.c (select_frame_norecord): New function.
1567 (run_window_configuration_change_hook): Use it and call
1568 Fselect_frame with NORECORD set.
1569 (Fselect_window): Pass NORECORD to Fselect_frame.
1570 (Fset_window_configuration): Handle NORECORD argument in call of
1571 do_switch_frame.
1572 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
1573 Fset_frame_selected_window.
1574 * keyboard.c (command_loop_1): Handle NORECORD in call of
1575 Fselect_frame (currently ifdefd).
1576
9020b223
GM
15772008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
1578
1579 * emacs.c (USAGE2): Untabify.
1580
793ffee8
SM
15812008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1582
1583 * composite.c (fill_gstring_header): Fix copy/paste typo.
1584
ab6d1131
MR
15852008-10-31 Martin Rudalics <rudalics@gmx.at>
1586
1587 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
1588 (Fother_window): Rename argument and rewrite doc-string.
1589 (select_window_norecord): Fix return value. (Bug#1276)
1590
601a9cf1
JB
15912008-10-30 Juanma Barranquero <lekktu@gmail.com>
1592
1593 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
1594 new frames overriding foreground for tooltips. Based on similar patch
1595 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
1596
813b0652
CY
15972008-10-29 Chong Yidong <cyd@stupidchicken.com>
1598
1599 * emacs.c (Fdaemon_initialized): Initialize nfd.
1600
4414f58f
MR
16012008-10-29 Martin Rudalics <rudalics@gmx.at>
1602
1603 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
1604 (Fwindow_text_height): Clarify doc-strings.
1605 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
1606 doc-string of window-scroll-functions.
1607
ecdcaa09
RS
16082008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
1609
1610 * category.c (syms_of_category): Fix typo in docstring.
1611
23fe745a
JB
16122008-10-28 Juanma Barranquero <lekktu@gmail.com>
1613
1614 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
1615 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
1616 Fix typos in docstrings.
1617
ff808935
DN
16182008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
1619
1620 * emacs.c (daemon_pipe): Make non-static.
1621 (IS_DAEMON): Move definition ...
1622 * lisp.h (IS_DAEMON): ... here.
1623 (daemon_pipe): Declare.
1624 (is_daemon): Remove.
1625 * dispnew.c (init_display): Use IS_DAEMON.
1626
fc012771
SM
16272008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
1628
1629 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
1630 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
1631
1632 * emacs.c (is_daemon): Remove.
1633 (main): Don't set is_daemon.
1634 (IS_DAEMON): New macro.
1635 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 1636 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
1637 parent exits.
1638 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
1639
d8bdbe6f
CY
16402008-10-27 Chong Yidong <cyd@stupidchicken.com>
1641
d1a072bf
CY
1642 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
1643 over-sized glyph, draw it with the default glyph width.
1644
e2e325aa
CY
1645 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1646 glyph, draw it with the default glyph width.
1647
1648 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
1649 glyph, draw it with the default glyph width.
1650
d8bdbe6f
CY
1651 * xdisp.c (try_scrolling): When computing the distance from the
1652 scroll margin to PT, try moving some distance past the window
1653 bottom before giving up.
1654
7bfac547
MR
16552008-10-27 Martin Rudalics <rudalics@gmx.at>
1656
1657 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
1658 (Fset_window_buffer): Explain in doc-string that a window can be
1659 "strongly" dedicated to its buffer.
1660
4ff029f6
DN
16612008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
1662
1663 * emacs.c (daemon_name): New variable.
1664 (main): Deal with --daemon=SERVER_NAME.
1665 (Fdaemonp): Return a name if one was passed to --daemon.
1666
5790ef40
DN
16672008-10-26 Romain Francoise <romain@orebokech.com>
1668
f9bd0df9 1669 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
1670 (main): Create a pipe before forking, make the parent exit only after
1671 the child has closed its end of the pipe. Move closing the
1672 descriptors ...
1673 (Fdaemon_initialized): ... here. New function.
1674
f5385255
SM
16752008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
1676
4d632321
SM
1677 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
1678 the previous unoptimized table.
1679
f5385255
SM
1680 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
1681 the distinction between non-nil and non-t value of `dedicated'.
1682
6c56a0f3
CY
16832008-10-25 Chong Yidong <cyd@stupidchicken.com>
1684
1685 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 1686 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 1687
fec89261
MR
16882008-10-25 Martin Rudalics <rudalics@gmx.at>
1689
1690 * window.c (Fget_buffer_window, Fdelete_windows_on)
1691 (Freplace_buffer_in_windows): Make buffer argument optional and
1692 rename to buffer_or_name.
1693
34fcddd0
CY
16942008-10-24 Chong Yidong <cyd@stupidchicken.com>
1695
f5385255
SM
1696 * xdisp.c (handle_single_display_spec, handle_display_prop):
1697 Undo 2005-05-16 change.
34fcddd0
CY
1698 (handle_stop): Pop iterator if it's loaded with an empty string.
1699 (get_overlay_strings_1): Don't save iterator if it's loaded with
1700 an empty string (bug#1201).
1701
064766f2
KH
17022008-10-24 Kenichi Handa <handa@m17n.org>
1703
1704 * ftfont.c (ftfont_otf_features): Fix previous change.
1705 (ftfont_otf_capability): Check FeatureList.FeatureCount before
1706 calling ftfont_otf_features.
1707
f9bd0df9 17082008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
1709
1710 * font.c (font_match_p): Fix for the case that a vector of
1711 characters is in script-representative-chars.
1712
1dae9197
MA
17132008-10-24 Michael Albinus <michael.albinus@gmx.de>
1714
1715 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 1716 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
1717 (xd_read_queued_messages): Catch Qdbus_error from the macros.
1718 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
1719 macro. (Bug#1186).
1720
f9bd0df9 17212008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
1722
1723 * s/sol2-10.h: New file.
1724
878a4584
JB
17252008-10-23 Juanma Barranquero <lekktu@gmail.com>
1726
1727 * xdisp.c (fill_glyph_string): Fix typo in source (though the
1728 poor beast has survived 9+ years and the jump from xterm.c!).
1729
cd265ca6
MR
17302008-10-23 Martin Rudalics <rudalics@gmx.at>
1731
1732 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
1733 Reword doc-string.
f5385255 1734 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 1735
472a4dc9
JB
17362008-10-23 Juanma Barranquero <lekktu@gmail.com>
1737
1738 * character.c (syms_of_character) <script-representative-chars>:
1739 <unicode-category-table>: Doc fixes.
1740
159bd5a2
NF
17412008-10-23 Noah Friedman <friedman@splode.com>
1742
1743 * coding.c (make_conversion_work_buffer): Check that
1744 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
1745 Fget_buffer_create.
1746
49f9c344
KH
17472008-10-23 Kenichi Handa <handa@m17n.org>
1748
1749 * font.c (font_add_log): Check the values of extra properties.
1750
12bb3111
MR
17512008-10-22 Martin Rudalics <rudalics@gmx.at>
1752
1753 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1754 Reword doc-string.
1755 (Fset_window_parameter): Use NILP.
1756 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 1757 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 1758
bbeb4e99
JB
17592008-10-22 Juanma Barranquero <lekktu@gmail.com>
1760
1761 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
1762
17632008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
1764
1765 * nsfns.m (ns_appkit_version): New function.
1766 (x-server-version): Use it.
1767 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
1768 (x-server-vendor): Don't check_ns().
1769
1770 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
1771
a9b555d3
JB
17722008-10-22 Juanma Barranquero <lekktu@gmail.com>
1773
1774 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
1775 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
1776
4626499f
KH
17772008-10-22 Kenichi Handa <handa@m17n.org>
1778
e3681952
KH
1779 * syntax.c (scan_words): Call word_boundary_p instead of comparing
1780 scripts.
1781
4626499f
KH
1782 * category.c (word_boundary_p): Check scripts instead of charset.
1783 Handle nil value in word-separating-categories and
1784 word-combining-categories.
1785 (syms_of_category): Fix docstrings of word-separating-categories
1786 and word-combining-categories.
1787
1560f91a
EZ
17882008-10-21 Eli Zaretskii <eliz@gnu.org>
1789
1790 * coding.c (Fencode_coding_region, Fdecode_coding_region)
1791 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
1792
f4668441
MR
17932008-10-21 Martin Rudalics <rudalics@gmx.at>
1794
1795 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
1796 Rename arg "buffer" to "buffer_or_name".
1797 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
1798 it optional.
1799 (no_switch_window): Remove since the return value is not used.
a9b555d3 1800 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
1801 Consider window as dedicated when Fwindow_dedicated_p returns a
1802 non-nil value.
1803 * lisp.h: Remove prototype for no_switch_window.
1804
fd75ddb2
JD
18052008-10-21 Jan Djärv <jan.h.d@swipnet.se>
1806
1807 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 1808 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 1809
07295713
KH
18102008-10-21 Kenichi Handa <handa@m17n.org>
1811
1812 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
1813 check Vlatin_extra_code_table.
1814
712adc82
EZ
18152008-10-20 Eli Zaretskii <eliz@gnu.org>
1816
1817 * fileio.c (Fset_file_modes): Doc fix.
1818
f549eb0b
MA
18192008-10-19 Michael Albinus <michael.albinus@gmx.de>
1820
1821 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
1822 in arrays.
1823
aac0c6e3
MR
18242008-10-19 Martin Rudalics <rudalics@gmx.at>
1825
1826 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
1827 Mention kill-buffer in doc-string.
1828 (Fset_window_buffer): Reinsert tem check removed in last commit.
1829 (Fenlarge_window, Fshrink_window): Have argument names and
1830 doc-string follow Elisp manual more closely.
1831
18322008-10-18 Eli Zaretskii <eliz@gnu.org>
1833
1834 * fileio.c (Fset_file_modes): Doc fix.
1835
18362008-10-18 Martin Rudalics <rudalics@gmx.at>
1837
1838 * window.c (Fwindow_width, Fset_window_start)
1839 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
1840 (Fdelete_windows_on, Freplace_buffer_in_windows):
1841 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
1842 (Fwindow_dedicated_p): Make window argument optional.
1843 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
1844 (Fset_window_buffer): Respect any non-nil dedicated value for
1845 window. Rename "buffer" argument to "buffer_or_name".
1846
18472008-10-18 Ulrich Mueller <ulm@gentoo.org>
1848
1849 * m/sh3.h: New file, machine description for SuperH.
1850
18512008-10-17 Martin Rudalics <rudalics@gmx.at>
1852
1853 * window.c (Fsplit_window): Rename arg horflag to horizontal.
1854
18552008-10-17 Kenichi Handa <handa@m17n.org>
1856
1857 * ftfont.c (ftfont_otf_features): Fix indexing
1858 gsub_gpos->FeatureList.Feature. Check the validity of indices.
1859
18602008-10-16 Magnus Henoch <mange@freemail.hu>
1861
1862 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
1863 (Fdbus_call_method_asynchronously): Ditto.
1864 This change makes C-h f display the argument list.
1865
18662008-10-16 Chong Yidong <cyd@stupidchicken.com>
1867
1868 * fileio.c (Fexpand_file_name): Doc fix.
1869
1870 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
1871 of :foreground and :background equivalent to unspecified (20.x
1872 compatibility).
1873
18742008-10-15 Eli Zaretskii <eliz@gnu.org>
1875
1876 * buffer.c (syms_of_buffer): Doc fix.
1877
18782008-10-14 Kenichi Handa <handa@m17n.org>
1879
1880 * font.c (font_clear_prop): When clearing font width, clear the
1881 average width field too.
1882
18832008-10-12 Andreas Schwab <schwab@suse.de>
1884
1885 * ftfont.c (ftfont_shape_by_flt): Make static.
1886 * ftfont.h (ftfont_shape_by_flt): Don't declare.
1887
1888 * font.c: Don't include <m17n-flt.h>.
1889
18902008-10-10 Eli Zaretskii <eliz@gnu.org>
1891
1892 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
1893
18942008-10-09 Eli Zaretskii <eliz@gnu.org>
1895
1896 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
1897 away code.
1898
18992008-10-09 Chong Yidong <cyd@stupidchicken.com>
1900
1901 * dispnew.c (update_text_area): Avoid looping due to large glyph
1902 overhangs (bug#1070).
1903
19042008-10-09 Kenichi Handa <handa@m17n.org>
1905
1906 * fontset.c (face_for_char): If face->fontset is negative, just
1907 return ascii_face.
1908
f5385255
SM
1909 * font.c (font_delete_unmatched): Fix previous change.
1910 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
1911
19122008-10-09 Martin Rudalics <rudalics@gmx.at>
1913
1914 * frame.c (Fraise_frame): On text-only terminals select frame in
1915 order to make it visible. (Bug#1061)
1916
19172008-10-08 Chong Yidong <cyd@stupidchicken.com>
1918
1919 * fontset.c (fontset_find_font): Check frame validity.
1920
19212008-10-07 Chong Yidong <cyd@stupidchicken.com>
1922
a9b555d3 1923 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
1924 (xg_display_close): Allow Emacs to close all displays (bug#985).
1925
19262008-10-06 Andreas Schwab <schwab@suse.de>
1927
f5385255 1928 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
1929
19302008-10-06 Chong Yidong <cyd@stupidchicken.com>
1931
f5385255 1932 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 1933
a9b555d3 1934 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
1935
1936 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
1937 during initialization.
1938
19392008-10-04 Eli Zaretskii <eliz@gnu.org>
1940
1941 * xdisp.c (redisplay_internal): If frame switched, redisplay the
1942 whole thing on MSDOS frames as well as on a TTY.
1943
1944 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
1945 well as for TTY.
1946 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
1947 well as on a TTY.
1948
1949 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
1950 as well as for TTY.
1951
1952 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
1953
1954 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
1955 MSDOS frames as well.
1956
19572008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1958
1959 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
1960 correct arguments.
1961 * menu.c (find_and_return_menu_selection) Add cast.
1962
19632008-10-03 Glenn Morris <rgm@gnu.org>
1964
1965 * emacs.c (USAGE1): Add --daemon.
1966
19672008-10-02 Eli Zaretskii <eliz@gnu.org>
1968
1969 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
1970 100, so it's in percents as advertised.
1971
19722008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
1973
1974 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
1975 (ns_output.current_cursor, ns_output.desired_cursor)
1976 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
1977 (FRAME_NEW_CURSOR_COLOR): Remove.
1978
1979 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 1980 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
1981 enumeration (HOLLOW_BOX_CURSOR, etc.).
1982
1983 * nsterm.m (ns_frame_rehighlight): Remove commented code.
1984 (draw_window_cursor): Simplify code.
f5385255
SM
1985 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
1986 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 1987 updates manually.
a9b555d3
JB
1988 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
1989 Use core Emacs cursor types.
aac0c6e3 1990
b8ff72fa 1991 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
1992
19932008-10-02 Martin Rudalics <rudalics@gmx.at>
1994
1995 * process.c (Faccept_process_output): Fix doc-string.
1996
19972008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1998
1999 * gmalloc.c (__sbrk): Also define for uClibc.
2000
2001 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
2002 for uClibc.
2003
20042008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2005
2006 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
2007 styles.
2008 (nsfont_open): Reenable the cache.
2009
20102008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
2011
2012 * font.c (font_matching_entity): Reflect ATTRS in font selection.
2013 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
2014
20152008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
2016
2017 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
2018 a suspended terminal.
2019
20202008-09-30 Michael Albinus <michael.albinus@gmx.de>
2021
2022 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
2023
20242008-09-30 Eli Zaretskii <eliz@gnu.org>
2025
2026 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
2027
20282008-09-30 Chong Yidong <cyd@stupidchicken.com>
2029
2030 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
2031 in a continued line coincides with a line beginning.
2032
20332008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
2034
2035 * nsfont.m (nsfont_trait_distance): Fix bug.
2036 (nsfont_list): Return a list rather than a vector (syncs with Handa
2037 changes of 2008-05-14).
2038 (nsfont_open): Improve logging.
2039
20402008-09-29 Andreas Schwab <schwab@suse.de>
2041
2042 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
2043
20442008-09-28 Martin Rudalics <rudalics@gmx.at>
2045
2046 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
2047 name as char-resolve-modifiers.
2048 Reported by: Markus Triska <markus.triska@gmx.at>
2049
20502008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
2051
2052 * dispnew.c (init_display): Return earlier when running as a daemon.
2053
20542008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2055
2056 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
2057
20582008-09-27 Eli Zaretskii <eliz@gnu.org>
2059
2060 * composite.c (Fcomposition_get_gstring)
2061 (Fcompose_region_internal, Fcompose_string_internal)
2062 (Ffind_composition_internal): Doc fix.
2063 (syms_of_composite) <compose-chars-after-function>: Doc fix.
2064 (syms_of_composite) <auto-composition-function>: Doc fix.
2065 (syms_of_composite) <composition-function-table>: Doc fix.
2066
20672008-09-25 Chong Yidong <cyd@stupidchicken.com>
2068
2069 * search.c (wordify): New argument for lax word-ends.
2070 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
2071
20722008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
2073
2074 * lisp.h (is_daemon): Declare.
2075 * dispnew.c (init_display): Do not try to initialize the terminal
2076 when running as a daemon.
2077
20782008-09-22 Chong Yidong <cyd@stupidchicken.com>
2079
2080 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
2081 x_display_pixel_height.
2082
20832008-09-22 Martin Rudalics <rudalics@gmx.at>
2084
2085 * undo.c (record_point): Don't call Fundo_boundary for first
2086 change. (Bug#731)
2087
20882008-09-22 Juanma Barranquero <lekktu@gmail.com>
2089
2090 * emacs.c (Fdaemonp): Doc fix.
2091
20922008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
2093
2094 * emacs.c (main): Place #ifdef in the proper place.
2095
20962008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2097
2098 * emacs.c (standard_args): Add --daemon.
2099 (main): Disconnect from the terminal when --daemon is passed.
2100 (is_daemon): New variable.
2101 (Fdaemonp): New function.
2102 (syms_of_emacs): Defsubr it.
2103
21042008-09-20 Chong Yidong <cyd@stupidchicken.com>
2105
2106 * xdisp.c (get_next_display_element): Handle string display
2107 correctly when checking for the end of a box run.
2108
21092008-09-20 Glenn Morris <rgm@gnu.org>
2110
2111 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
2112 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
2113 (Frename_file): Avoid copying to trash if a rename involves
2114 a delete. (Bug#964).
2115
21162008-09-20 Eli Zaretskii <eliz@gnu.org>
2117
2118 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
2119 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
2120 frames as well as termcap frames.
2121 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
2122 get_named_tty.
2123
21242008-09-19 Eli Zaretskii <eliz@gnu.org>
2125
2126 * process.c (procfs_system_process_attributes): Fix cmdline in
2127 case /proc/PID/cmdline is empty.
2128
2129 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
2130 x_display_pixel_height.
2131
21322008-09-19 Juanma Barranquero <lekktu@gmail.com>
2133
2134 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
2135
2136 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
2137 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
2138
21392008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
2140
2141 * dispextern.h (struct it): Move line_wrap away from the middle of
2142 bitfields. Move voffset in struct iterator_stack_entry after the
2143 bitfields. Move tab_width near after another short.
2144
21452008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
2146
2147 * frame.h (struct frame): Move alpha from the middle of bitfields.
2148
2149 * window.h (struct window): Move frozen_window_start_p after the
2150 rest of the bitfields to reduce padding.
2151
21522008-09-18 Chong Yidong <cyd@stupidchicken.com>
2153
2154 * xterm.h (x_display_info): Remove `height' and `width' members.
2155
2156 * nsterm.h (ns_display_info): Remove `height' and `width' members.
2157
2158 * w32term.h (w32_display_info): Remove `height', `width',
2159 `height_in', and `width_in' members.
2160
b8ff72fa
SM
2161 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2162 New functions.
aac0c6e3
MR
2163 (x_calc_absolute_position): Use them.
2164 (x_term_init): Omit removed `height' and `width' members.
2165
b8ff72fa
SM
2166 * w32term.c (x_display_pixel_height, x_display_pixel_width):
2167 New functions.
aac0c6e3
MR
2168 (w32_read_socket, x_calc_absolute_position): Use them.
2169 (w32_initialize_display_info, w32_term_init): Omit removed members
2170 of w32_display_info.
2171
b8ff72fa
SM
2172 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
2173 New functions.
2174 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 2175
b8ff72fa
SM
2176 * xterm.c (x_display_pixel_height, x_display_pixel_width):
2177 New functions.
aac0c6e3
MR
2178 (x_calc_absolute_position): Use them.
2179 (x_term_init): Omit removed `height' and `width' members.
2180
2181 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
2182 (compute_tip_xy):
2183 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
2184 * xmenu.c (menu_position_func): Use x_display_pixel_height and
2185 x_display_pixel_width.
2186
21872008-09-18 Kenichi Handa <handa@m17n.org>
2188
2189 * composite.c (fill_gstring_header): Don't check FROM and TO here.
2190 (composition_compute_stop_pos): Fix handling of static composition.
2191 (Fcomposition_get_gstring): Check FROM and TO at first.
2192
21932008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2194
2195 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Oject
2196 mixup (YAILOM).
2197
21982008-09-17 Chong Yidong <cyd@stupidchicken.com>
2199
2200 * indent.c (Fvertical_motion): Use position reported by iterator
2201 instead of PT for determining screen motion (bug#943).
2202
22032008-09-17 Romain Francoise <romain@orebokech.com>
2204
2205 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
2206
22072008-09-17 Kenichi Handa <handa@m17n.org>
2208
2209 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
2210
2211 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
2212 if necessary.
2213
22142008-09-16 Kenichi Handa <handa@m17n.org>
2215
2216 * coding.c (make_conversion_work_buffer): Avoid calling
2217 Fget_buffer_create if it is not necessary.
2218
22192008-09-15 Martin Rudalics <rudalics@gmx.at>
2220
2221 * window.c (Fselect_window): Don't update window_select_count and
2222 use_time when norecord is not nil.
2223
22242008-09-14 Kenichi Handa <handa@m17n.org>
2225
2226 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
2227 specpdl_ptr.
2228
22292008-09-12 Kenichi Handa <handa@m17n.org>
2230
2231 * indent.c (scan_for_column): Don't handle automatic composition
2232 if the current buffer is not associated with a window.
2233
2234 * composite.c (composition_reseat_it): If the current buffer is
2235 not associated with a window, ignore the automatic composition.
2236 (find_automatic_composition): Likewise.
2237
22382008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2239
2240 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
2241 (Fgpm_mouse_stop): Use it.
2242 * termhooks.h (close_gpm): Declare.
2243 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
2244 connection if Gpm_GetEvent fails.
2245
2246 * window.c (set_window_buffer): Always preserve current-buffer.
2247
22482008-09-12 Glenn Morris <rgm@gnu.org>
2249
2250 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
2251
22522008-09-11 Glenn Morris <rgm@gnu.org>
2253
2254 * charset.c (charset-map-path): Doc fix.
2255
22562008-09-10 Kenichi Handa <handa@m17n.org>
2257
2258 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
2259
2260 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
2261 compose a grapheme cluster with the preceding base glyph.
2262
2263 * composite.c (composition_compute_stop_pos): Fix previous change.
2264 Reset cmp_it->id to -1 at first.
2265
22662008-09-10 Glenn Morris <rgm@gnu.org>
2267
2268 * Makefile.in (character.o, chartab.o): Fix config.h typo.
2269
22702008-09-09 Chong Yidong <cyd@stupidchicken.com>
2271
2272 * keyboard.c (read_key_sequence): Reapply translation maps when
2273 switching keyboards.
2274
22752008-09-09 Kenichi Handa <handa@m17n.org>
2276
2277 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
2278 characters.
2279
2280 * composite.c (FORWARD_CHAR): Fix calculation
2281 of (POSITION).pos_byte.
2282 (composition_compute_stop_pos): Limit the search of composition to
2283 at most 500 characters ahead. If we reach the limit or find a
2284 newline, set cmp_it->ch to -2 and return 0.
2285 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
2286
22872008-09-08 Kenichi Handa <handa@m17n.org>
2288
2289 * indent.c (Fvertical_motion): Be sure to set
2290 it_overshoot_expected if it.cmp_it.id is non-negative.
2291
22922008-09-07 Andreas Schwab <schwab@suse.de>
2293
2294 * callproc.c (Fcall_process): Don't hold references to string data
2295 across garbage collection. Move initialisation of new_argv down
2296 to avoid compiler bug.
2297
22982008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2299
2300 * process.c (Fsystem_process_attributes): Doc fix.
2301
23022008-09-07 Chong Yidong <cyd@stupidchicken.com>
2303
2304 * callproc.c (Fcall_process): Canonicalize current directory name.
2305
2306 * xdisp.c (move_it_to): When moving by vpos, ensure that the
2307 iterator advances to the next line if the current line ends in a
2308 continued tab.
2309
23102008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
2311
2312 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
2313 member to point to cmp_from.
2314
2315 * xdisp.c: Doc fix for references to gidx data member.
2316
23172008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
2318
2319 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
2320
23212008-09-07 Kenichi Handa <handa@m17n.org>
2322
2323 * composite.c (FORWARD_CHAR): Check STOP after
2324 incrementing (POSITION).pos.
2325
23262008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
2327
2328 * process.c (Fsystem_process_attributes): Doc fix.
2329
23302008-09-06 Chong Yidong <cyd@stupidchicken.com>
2331
2332 * keyboard.c (Ftop_level): Doc fix.
2333
23342008-09-06 Eli Zaretskii <eliz@gnu.org>
2335
2336 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
2337 minibuffer, don't let lower part of menu invade the echo area.
2338
2339 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
2340 "char *q" to access menu text and advance through it. Revert the
2341 change that displayed ">" instead of ASCII character 0x10.
2342
23432008-09-05 Eli Zaretskii <eliz@gnu.org>
2344
2345 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
2346 toggle boxes and radio buttons on MS-DOS as well.
2347
23482008-09-05 Kenichi Handa <handa@m17n.org>
2349
2350 * composite.c (autocmp_chars): Check lookback count.
2351 (composition_compute_stop_pos): Set cmp_it->lookback.
2352 (composition_reseat_it): Check lookback count.
2353 (struct position_record): New struct.
2354 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
2355 (find_automatic_composition): New function.
2356 (composition_adjust_point): Use find_automatic_composition.
2357
2358 * dispextern.h (struct composition_it): New member lookback.
2359
23602008-09-02 Chong Yidong <cyd@stupidchicken.com>
2361
2362 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
2363 if moving by a single line.
2364
23652008-09-02 Andreas Schwab <schwab@suse.de>
2366
2367 * xterm.c (x_delete_display): Fix merge error.
2368
2369 * fileio.c (Fexpand_file_name): Remove unused variables.
2370
23712008-09-02 Eli Zaretskii <eliz@gnu.org>
2372
2373 * fileio.c (Fexpand_file_name): Copy argument `name' into local
2374 storage on all platforms, not just on DOS_NT.
2375
23762008-09-02 Jason Rumney <jasonr@gnu.org>
2377
b8ff72fa
SM
2378 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
2379 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
2380
23812008-09-01 Chong Yidong <cyd@stupidchicken.com>
2382
2383 * xfaces.c (Finternal_set_alternative_font_family_alist)
2384 (Finternal_set_alternative_font_registry_alist): Properly copy
2385 entire alist structure.
2386
23872008-09-01 Kenichi Handa <handa@m17n.org>
2388
d66c0241 2389 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 2390 representative chars of the script is a vector.
d66c0241
JB
2391 (ftfont_list): Handle the case where the representative chars of
2392 the script is a vector.
aac0c6e3
MR
2393
2394 * character.c (syms_of_character): Docstring of
2395 script-representative-chars fixed.
2396
23972008-08-31 Eli Zaretskii <eliz@gnu.org>
2398
2399 * msdos.c (BUILD_CHAR_GLYPH): New macro.
2400 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
2401 the menu. Allocate larger buffer for `text', to account for
2402 possible ^C characters.
2403
24042008-08-31 Martin Rudalics <rudalics@gmx.at>
2405
2406 * xdisp.c (prepare_menu_bars): Don't call
2407 Vwindow_size_change_functions with arg Qt.
2408
24092008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
2410
2411 * font.h (font_range):
2412 * fileio.c (report_file_error):
2413 * composite.c (composition_update_it): Yet another int/Lisp_Oject mixup.
2414
24152008-08-30 Glenn Morris <rgm@gnu.org>
2416
2417 * data.c (Fmake_variable_frame_local): Doc fix.
2418
2419 * frame.c (Fmodify_frame_parameters): Doc fix.
2420
24212008-08-30 Eli Zaretskii <eliz@gnu.org>
2422
2423 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
2424 needed by GetTokenInformation.
2425 (w32_system_process_attributes): Check return values of all system
2426 APIs.
2427
2428 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
2429 only when the state changes.
2430 (IT_update_begin, IT_update_end): Add termscript trace.
2431
2432 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
2433 clipboard is unavailable. Set dst to NULL if it doesn't point to
2434 malloc'ed data.
2435 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
2436 passing random values to xfree.
2437
2438 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 2439 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
2440
24412008-08-29 Jason Rumney <jasonr@gnu.org>
2442
2443 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
2444
24452008-08-29 Eli Zaretskii <eliz@gnu.org>
2446
2447 * composite.c (fill_gstring_body): Avoid compiler warnings.
2448
2449 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
2450 LGLYPH_SET_CODE to avoid compiler warnings.
2451
2ae37cf0 2452 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
2453
2454 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
2455
2456 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
2457 LGLYPH_SET_CODE.
2458
24592008-08-29 Kenichi Handa <handa@m17n.org>
2460
2461 * fileio.c (report_file_error): Don't downcase the first character
2462 of errstring if it is still unibyte.
2463
24642008-08-29 Kenichi Handa <handa@m17n.org>
2465
2466 These changes are to re-implement the automatic composition so
2467 that it doesn't use text properties.
2468
2469 * Makefile.in (ftfont.o): Depend on composite.h.
2470 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
2471
2472 * character.h (Vunicode_category_table): Extern it.
2473
2474 * character.c (Vunicode_category_table): New variable.
2475 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
2476
2477 * chartab.c (optimize_sub_char_table): Perform more greedy
2478 optimization.
2479
b8ff72fa
SM
2480 * composite.h (enum composition_method):
2481 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
2482 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
2483 (Vcomposition_function_table): Extern it.
2484 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
2485 (composition_gstring_put_cache, composition_gstring_from_id)
2486 (composition_gstring_p, composition_gstring_width)
2487 (composition_compute_stop_pos, composition_reseat_it)
2488 (composition_update_it, composition_adjust_point): Extern them.
2489 (Fcomposition_get_gstring): EXFUN it.
2490
d66c0241 2491 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
2492 (Vcomposition_function_table)
2493 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
2494 (gstring_hash_table, gstring_work, gstring_work_headers):
2495 New variables.
aac0c6e3
MR
2496 (gstring_lookup_cache, composition_gstring_put_cache)
2497 (composition_gstring_from_id, composition_gstring_p)
2498 (composition_gstring_width, fill_gstring_header)
2499 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
2500 (composition_reseat_it, composition_update_it)
b8ff72fa 2501 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
2502 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
2503 and gstring_work_headers. DEFVAR_LISP composition-function-table.
2504 Defsubr compostion_get_gstring.
2505
2506 * dispextern.h (struct glyph): New union u.cmp. Delete the member
2507 cmp_id.
2508 (struct glyph_string): Delete the member gidx. New members
2509 cmp_id, cmp_from, and cmp_to.
2510 (enum it_method): Delete GET_FROM_COMPOSITION.
2511 (struct composition_it): New struct.
2512 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
2513 Delete c, len, cmp_id, cmp_len in u.comp.
2514
2515 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 2516 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 2517 (enum lglyph_indices): Likewise.
b8ff72fa 2518 (font_range): Adjust extern.
aac0c6e3
MR
2519 (font_fill_lglyph_metrics): Extern it.
2520
2521 * font.c (QCf): New variable.
2522 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2523 (font_prepare_composition): Delete this function.
2524 (font_range): Type and arguments changed.
2525 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
2526 (font_fill_lglyph_metrics): New function.
b8ff72fa 2527 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 2528 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
2529 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
2530 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
2531
2532 * fontset.h (font_for_char): Extern it.
2533
2534 * fontset.c (font_for_char): New function.
2535
2536 * ftfont.c: Include composite.h.
2537 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 2538 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
2539
2540 * indent.c: Include composite.h and dispextern.h.
2541 (check_composition): Delete this function.
2542 (scan_for_column): Handle composition by
2543 composition_compute_stop_pos, composition_reseat_it, and
2544 composition_update_it.
2545 (compute_motion): Likewise.
2546 (Fvertical_motion): Fix checking of composition.
2547
2548 * keyboard.c (adjust_point_for_property): Check composition by
2549 composition_adjust_point.
2550
b8ff72fa 2551 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
2552 struct glyph_string.
2553
b8ff72fa
SM
2554 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
2555 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
2556 struct glyph.
2557 (produce_composite_glyph): Likewise.
2558
b8ff72fa
SM
2559 * w32term.c (x_draw_composite_glyph_string_foreground):
2560 Adjust for the change of struct glyph_string.
aac0c6e3
MR
2561 (x_draw_glyph_string): Likewise.
2562
2563 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
2564 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
2565
2566 * xdisp.c: Include font.h.
2567 (it_props): Delete the entry for Qauto_composed.
2568 (init_iterator): Initialize it->cmp_it.id to -1.
2569 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 2570 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
2571 (handle_auto_composed_prop): Delete it.
2572 (handle_composition_prop): Handle only static composition.
2573 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
2574 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 2575 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
2576 (pop_it): Likewise.
2577 (get_next_element): Delete next_element_from_composition.
2578 (CHAR_COMPOSED_P): New macro.
2579 (get_next_display_element): For automatic composition, get a face
2580 from the font in the glyph-string.
2581 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 2582 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
2583 (next_element_from_string): Check if the character at the current
2584 position is composed by CHAR_COMPOSED_P.
2585 (next_element_from_buffer): Likewise.
d66c0241
JB
2586 (next_element_from_composition): Adjust for the change of struct it.
2587 Update it->cmp_it.
b8ff72fa
SM
2588 (dump_glyph): Adjust for the change of struct glyph.
2589 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
2590 it and struct glyph. Don't handle automatic composition here.
2591 (fill_gstring_glyph_string): New function.
2592 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 2593 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
2594 (BUILD_GSTRING_GLYPH_STRING): New macro.
2595 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
2596 automatic composition.
b8ff72fa 2597 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 2598 struct glyph.
b8ff72fa 2599 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 2600
b8ff72fa 2601 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
2602 the change of struct glyph_string.
2603 (x_draw_glyph_string): Likewise.
2604
26052008-08-29 Glenn Morris <rgm@gnu.org>
2606
2607 * buffer.c (word-wrap): Doc fix.
2608 * xdisp.c (truncate-partial-width-windows): Doc fix.
2609 Increase default to 50.
2610
26112008-08-29 Chong Yidong <cyd@stupidchicken.com>
2612
2613 * xdisp.c (update_tool_bar_unwind): New function.
2614 (update_tool_bar): Temporarily set selected frame before building
2615 tool-bar items.
2616
26172008-08-28 Michael Albinus <michael.albinus@gmx.de>
2618
2619 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
2620 snprintf, respectively.
2621 (xd_append_arg): Convert strings with Fstring_make_unibyte.
2622
26232008-08-28 Chong Yidong <cyd@stupidchicken.com>
2624
2625 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
2626 LDFLAGS to GNUstep CC invocation.
2627
26282008-08-27 Chong Yidong <cyd@stupidchicken.com>
2629
2630 * indent.c (Fvertical_motion): Revert last change. Handle the
2631 general case where we are moving forward, and PT spans multiple
2632 screen lines.
2633
2634 * eval.c (find_handler_clause): Temporarily increase
2635 max-lisp-eval-depth while printing the backtrace buffer, to
2636 guarantee that help-mode code can run.
2637
26382008-08-27 Eli Zaretskii <eliz@gnu.org>
2639
2640 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
2641 colors under -rv.
2642 (IT_set_frame_parameters): Don't swap foreground and background
2643 colors if `(reverse . t)' is present in the frame properties.
2644 (internal_terminal_init): Call init_frame_faces only for the
2645 initial frame.
2646
26472008-08-27 Andreas Schwab <schwab@suse.de>
2648
2649 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
2650
26512008-08-27 Andreas Schwab <schwab@suse.de>
2652
2653 * search.c (search_buffer): Set char_base to zero only at the end.
2654
26552008-08-27 Kenichi Handa <handa@m17n.org>
2656
b8ff72fa 2657 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
2658
26592008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
2660
2661 * xterm.c (x_term_init): Temporarily hide the partially
2662 initialized terminal while calling vendor-specific-keysyms.
2663
26642008-08-26 Eli Zaretskii <eliz@gnu.org>
2665
2666 * msdos.c (internal_terminal_init): Most initializations done only
2667 once, especially initial_screen_colors[] and termscript open.
2668
26692008-08-26 Chong Yidong <cyd@stupidchicken.com>
2670
2671 * eval.c (Fcondition_case): Doc fix.
2672
2673 * widgetprv.h (EmacsFramePart): Change font member to the new font
2674 struct.
2675
2676 * widget.c: Include character.h and font.h for XSETFONT.
2677 (setup_frame_gcs): Compute X font id from font struct, just once.
2678
26792008-08-26 Eli Zaretskii <eliz@gnu.org>
2680
2681 * term.c (get_named_tty): Fix last change.
2682
26832008-08-26 Chong Yidong <cyd@stupidchicken.com>
2684
2685 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 2686 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
2687
26882008-08-25 Eli Zaretskii <eliz@gnu.org>
2689
2690 * frame.c (do_switch_frame): Mark previously displayed frame as
2691 obscured for FRAME_MSDOS_P frames as well.
2692
26932008-08-24 Eli Zaretskii <eliz@gnu.org>
2694
2695 * frame.c (make_terminal_frame): Initialize f->terminal,
2696 f->terminal->reference_count, and scroll bars on MS-DOS as well.
2697 Set the top frame to newly created frame.
2698 (Fmake_terminal_frame): Reuse the_only_display_info.
2699
2700 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
2701 estimating available memory.
2702
b97439ce 27032008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
2704
2705 * nsterm.m (ns_draw_window_cursor): Don't call
2706 NSDisableScreenUpdates and NSEnableScreenUpdates on
2707 non-NS_IMPL_COCOA systems.
2708
27092008-08-23 Andreas Schwab <schwab@suse.de>
2710
2711 * process.c (procfs_system_process_attributes): Fix use of
2712 uninitialized variables.
2713
27142008-08-23 Eli Zaretskii <eliz@gnu.org>
2715
2716 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
2717
2718 * dispnew.c (init_display): Remove MS-DOS specific conditions for
2719 calling tty-set-up-initial-frame-faces.
2720
b8ff72fa
SM
2721 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
2722 Allow MSDOS frames along with X frames.
aac0c6e3
MR
2723
2724 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
2725 addition to output_termcap.
2726
2727 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
2728
2729 * termchar.h (FRAME_TTY): Support output_msdos_raw.
2730 (struct tty_display_info) [MSDOS]: Add fields related to mouse
2731 highlight.
2732
2733 * process.c [!subprocesses]: Define QCname.
2734 (syms_of_process): Intern and staticpro it.
2735
2736 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
2737 Adjust for changes in encoding/decoding routines.
2738 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
2739 encode_coding and decode_coding.
2740
b8ff72fa 2741 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
2742
2743 * dosfns.c: Include frame.h before termhooks.h.
2744 (dos_cleanup): Use CURTTY ()->termscript instead of a global
2745 variable termscript.
2746
2747 * s/msdos.h (USER_FULL_NAME): Define.
2748 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
2749
2750 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
2751 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
2752 pw->pw_gecos.
2753
2754 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
2755 SELECTED_FRAME as additional (1st) argument.
2756 (tty_read_avail_input): Handle output_msdos_raw in
2757 addition to output_termcap.
2758
2759 * msdos.c: Include frame.h before termhooks.h.
2760 (mouse_on, mouse_off, mouse_moveto, mouse_init)
2761 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
2762 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
2763 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
2764 (IT_set_terminal_modes, IT_reset_terminal_modes)
2765 (IT_set_frame_parameters): Use tty->termscript instead of a global
2766 variable termscript.
2767 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
2768 global variable terminal_coding. Don't refer to
2769 Vnonascii_translation_table.
2770 (internal_terminal_init): Set Vwindow_system in current_kboard.
2771 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
2772 Announce date and time of session start, if termscript is open.
2773 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
2774 term.c:init_tty). Open termscript only of not already open.
2775 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
2776 here instead of dos_ttraw. Don't initialize display if this is an
2777 initial tty. Don't set FRAME_FONT.
2778 (Vwindow_system_version): Bump to 23.
2779 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
2780 is available, set up mouse_position_hook.
2781 (dos_ttraw, IT_set_terminal_modes): If called with initial
2782 terminal, do nothing.
2783 (IT_set_frame_parameters): Handle the Qtty_type frame
2784 parameter by calling internal_terminal_init.
2785 (dos_set_window_size, show_mouse_face)
2786 (clear_mouse_face, IT_note_mode_line_highlight)
2787 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
2788 (dos_rawgetc): Use tty_display_info instead of x_display_info.
2789 (initialize_msdos_display): New function.
2790 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
2791 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
2792 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
2793 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 2794 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
2795 (request_sigio, unrequest_sigio): Don't define, now defined on
2796 sysdep.c.
2797 (IT_write_glyphs): Rewrite to use encode_terminal_code.
2798
2799 * term.c [MSDOS]: Include msdos.h.
2800 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
2801 conditional to DOS_NT. Allow only one call to this function in a
2802 session. Don't allocate a new struct tty_display_info; instead,
2803 reuse the_only_display_info. Call get_tty_size to get screen
2804 dimensions. Call init_baud_rate to set bad_rate.
2805 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
2806 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 2807 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
2808 (get_tty_terminal, get_named_tty, Ftty_type)
2809 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
2810 output_termcap.
b8ff72fa
SM
2811 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
2812 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 2813 only when subprocesses are supported.
aac0c6e3
MR
2814
2815 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
2816 f->output_data.x.
2817 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
2818 terminal devices.
2819
5582fbc7 2820 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
2821 x_output.
2822 (FRAME_FONT): Use output_data.tty.
2823 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
2824 (struct x_display_info): Rename from display_info. Update all users in
2825 msdos.c.
aac0c6e3 2826 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 2827 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
2828 (dos_ttraw): Update prototype.
2829
2830 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
2831 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
2832
28332008-08-23 Jason Rumney <jasonr@gnu.org>
2834
2835 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
2836 (fn_TIFFSetDirectory): New library function used.
2837 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
2838 (tiff_load): Use :index to select among multiple images. Set count
2839 property when multiple images exist.
2840 (gif_format): Use :index, not :image.
2841
28422008-08-23 Chong Yidong <cyd@stupidchicken.com>
2843
2844 * xdisp.c (try_scrolling): Check INT_MAX instead of
2845 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
2846 to obtain INT_MAX.
2847
28482008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
2849
2850 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
2851
28522008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
2853
2854 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
2855 GNUstep library location.
2856
28572008-08-21 Chong Yidong <cyd@stupidchicken.com>
2858
2859 * xfaces.c (x_update_menu_appearance): Check validity of menu font
2860 before using it.
2861
2862 * puresize.h (BASE_PURESIZE): Increase to 1250000.
2863
28642008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
2865
2866 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
2867 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
2868 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
2869 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
2870 (EmacsApp-cursor_blink_handler): Remove declaration.
2871 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
2872 match 01 Feb 2008 changes in xterm.c.
2873 (ns_read_socket): Add cast to avoid warning.
2874 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
2875 GNUstep.
2876
28772008-08-20 Chong Yidong <cyd@stupidchicken.com>
2878
2879 * xselect.c (x_get_foreign_selection): Return nil if desired
2880 selection could not be obtained, instead of signalling an error.
2881
28822008-08-20 David Reitter <david.reitter@gmail.com>
2883
2884 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
2885 * nsterm.m: Remove ns-specific code for cursor blinking.
2886 (ns_draw_window_cursor): Clear cursor properly rather than
2887 redrawing the area. Respect width of bar cursors.
2888 These changes enable the use of generic blink-cursor-mode and
2889 generic cursor types in NS and support smooth cursor movements (do
2890 not blink off after command).
2891 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
2892 Nextstep, too.
2893
28942008-08-19 Kenichi Handa <handa@m17n.org>
2895
2896 * font.c (Vfont_log_deferred): New variable.
2897 (font_add_log): Check Vfont_log_deferred.
2898 (font_deferred_log): New function.
2899
2900 * font.h (font_deferred_log): Extern it.
2901
2902 * fontset.c (reorder_font_vector): Use encoding charset of fonts
2903 for sorting.
2904 (face_for_char): Use deferred log.
2905
29062008-08-18 Kenichi Handa <handa@m17n.org>
2907
2908 * fontset.c (face_for_char): Add font log.
2909
2910 * font.c (font_add_log): Add the font properties :script, :lang,
2911 and :otf in the log.
2912
29132008-08-17 Chong Yidong <cyd@stupidchicken.com>
2914
2915 * xdisp.c: Remove dead code.
2916 (handle_invisible_prop, next_overlay_string): Defer call to
2917 setup_for_ellipsis.
2918 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
2919
29202008-08-15 Chong Yidong <cyd@stupidchicken.com>
2921
2922 * xfaces.c (lookup_derived_face): Properly handle possible zero
2923 return value of get_lface_attributes.
2924 (merge_faces): Don't tell lookup_derived_face to signal an error
2925 if face is not found.
2926
2927 * dired.c (Fdirectory_files): Doc fix.
2928
2929 * process.c (make_process): Initialize kill_without_query struct
2930 member.
2931
29322008-08-15 Eli Zaretskii <eliz@gnu.org>
2933
2934 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
2935 Alternative calculation of totphys for Visual Studio 6.
2936
2937 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
2938
2939 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
2940 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
2941 All users changed.
2942 (stat): Only root directory passed to GetDriveType. Allow RAM
2943 disk as well as local fixed disk when w32-get-true-file-attributes
2944 is set to `local'.
2945 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
2946 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
2947 (w32_cached_id, w32_add_to_cache): New functions.
2948 (get_name_and_id): Look account names in the cache before calling
2949 lookup_account_sid.
2950 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
2951 New initialization flags.
2952 (globals_of_w32): Initialize them to zero.
2953 (w32_system_process_attributes): Use w32_cached_id and
2954 w32_add_to_cache.
2955
29562008-08-14 Lawrence Mitchell <wence@gmx.li>
2957
2958 * lread.c (Fread_char, Fread_char_exclusive): If no character
2959 event is read before timeout is reached, return nil, rather than
2960 converting to a number.
2961
29622008-08-14 Chong Yidong <cyd@stupidchicken.com>
2963
2964 * fns.c (use_dialog_box): Doc fix.
2965
2966 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
2967 on OS X.
2968
29692008-08-13 Chong Yidong <cyd@stupidchicken.com>
2970
2971 * frame.c (Qns_parse_geometry): New var.
2972 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
2973
29742008-08-11 Chong Yidong <cyd@stupidchicken.com>
2975
2976 * xdisp.c (x_produce_glyphs): Handle the case when font has no
2977 space character in calculating tabs.
2978
29792008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
2980
2981 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
2982
29832008-08-10 Glenn Morris <rgm@gnu.org>
2984
2985 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
2986 silence gcc "limited range of data type" warnings in some
2987 make_fixnum_or_float calls.
2988
29892008-08-09 Eli Zaretskii <eliz@gnu.org>
2990
2991 * w32.c (w32_system_process_attributes): If the process does not
2992 exist, return nil.
2993
2994 * w32.c: Include thelp32.h, psapi.h and coding.h.
2995 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
2996 declarations.
2997 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
2998 (Process32Next_Proc): New typedefs.
2999 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
3000 (g_b_init_process32_next, g_b_init_open_thread_token)
3001 (g_b_init_impersonate_self, g_b_init_revert_to_self)
3002 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
3003 (g_b_init_get_process_working_set_size)
3004 (g_b_init_global_memory_status_ex): New static variables.
3005 (globals_of_w32): Initialize them.
3006 (create_toolhelp32_snapshot, process32_first, process32_next)
3007 (open_thread_token, impersonate_self, revert_to_self)
3008 (get_process_memory_info, get_process_working_set_size)
3009 (global_memory_status, global_memory_status_ex): New wrapper
3010 functions.
3011 (w32_list_system_processes, w32_system_process_attributes)
3012 (enable_privilege, restore_privilege, ltime, process_times):
3013 New functions.
3014 (convert_time_raw): New function.
3015 (convert_time): Remove conversion of FILETIME into time in 100
3016 nsec units, call convert_time_raw instead.
3017
3018 * process.h (w32_list_system_processes, w32_system_process_attributes):
3019 Add prototypes.
3020 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
3021 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
3022 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
3023 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
3024
3025 * process.c (Fsystem_process_attributes): Doc fix.
3026
30272008-08-08 Chong Yidong <cyd@stupidchicken.com>
3028
3029 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
3030 a continued multi-char glyph; if so, advance to the actual glyph.
3031
30322008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3033
3034 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
3035
3036 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
3037 (.m.o): Use it.
3038 * config.in: Regenerate.
3039
30402008-08-07 Chong Yidong <cyd@stupidchicken.com>
3041
3042 * xdisp.c (redisplay_window): Revert last change.
3043 (try_window): Check bottom scroll margin too.
3044
30452008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3046
3047 * config.in: Regenerate.
3048
3049 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
3050 -list-load-path-shadows'.
3051 (nsgui.h): Reduce number of things depending on it.
3052
30532008-08-06 Chong Yidong <cyd@stupidchicken.com>
3054
3055 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
3056 instead of window-end which does the wrong thing at eob.
3057 (try_cursor_movement): Minor optimization.
3058 (redisplay_window): If scroll margin is defined, don't assume
3059 window doesn't need scrolling.
3060
30612008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
3062
3063 * config.in: Regenerate.
3064
3065 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
3066 (mostlyclean): Don't delete *.d under NS.
3067
3068 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
3069
30702008-08-06 Kenichi Handa <handa@m17n.org>
3071
3072 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
3073
30742008-08-06 Andreas Schwab <schwab@suse.de>
3075
3076 * config.in: Regenerate.
3077
30782008-08-05 Chong Yidong <cyd@stupidchicken.com>
3079
3080 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
3081 forcing a window start.
3082
3083 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
3084 (auto_save_1): Update modtime when auto-save-list-file-name is on.
3085
30862008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3087
3088 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
3089 argument.
3090
30912008-08-05 Juanma Barranquero <lekktu@gmail.com>
3092
3093 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
3094 <scroll-down-aggressively, before-change-functions>:
3095 <after-change-functions>: Reflow docstrings.
3096
30972008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3098 Ken Raeburn <raeburn@gnu.org>
3099
3100 Dock menu customization, based on a patch by Ken Raeburn, plus some
3101 other fixes.
3102 * nsmenu.m (dockMenu): New variable.
3103 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
3104
3105 * nsterm.h (dockMenu): Declare.
3106
3107 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
3108 (ns_term_init): Initialize dockMenu.
3109 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
3110 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
3111 left.
3112
3113 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
3114
31152008-08-04 Chong Yidong <cyd@stupidchicken.com>
3116
3117 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
3118
3119 * config.in: Regenerate.
3120
31212008-08-04 Seiji Zenitani <zenitani@mac.com>
3122
3123 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
3124
31252008-08-04 Chong Yidong <cyd@stupidchicken.com>
3126
3127 * nsterm.h (find_and_call_menu_selection): Fix prototype.
3128
31292008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
3130
3131 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
3132
3133 * keyboard.h: Comment an #endif.
3134
3135 * lisp.h (have_menus_p): Adjust comment.
3136
3137 * menu.c (find_and_return_menu_selection): Fix comparison with
3138 client_data.
3139
3140 * nsmenu.m (popup_activated_flag): New variable.
3141 (popup_activated): New function.
3142 (menu-or-popup-active-p): New exported lisp definition.
3143 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
3144 when popup done.
3145 (ns_popup_dialog): Set popup_activated_flag.
3146
3147 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
3148 version for GNUstep (handled by conditional typedef in nsterm.m).
3149 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
3150 in rgb.txt).
3151
3152 * process.c (init_process): Use DARWIN_OS, not DARWIN.
3153
3154 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
3155
3156 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
3157
3158 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
3159 shortcircuit if popup_activated like GTK and X toolkit.
3160
3161 * m/inter386.h: Change DARWIN to DARWIN_OS.
3162
3163 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
3164 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
3165 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
3166 comment on NO_SOCK_SIGIO.
3167
31682008-08-03 Chong Yidong <cyd@stupidchicken.com>
3169
3170 * nsterm.m (windowDidResize): Remove stopModal call.
3171
31722008-08-03 Andreas Schwab <schwab@suse.de>
3173
3174 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
3175 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
3176
31772008-08-02 Chong Yidong <cyd@stupidchicken.com>
3178
3179 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
3180 Don't use uninitialized pointer variable when using getrlimit.
3181
31822008-08-02 Jason Rumney <jasonr@gnu.org>
3183
3184 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
3185
31862008-08-02 Eli Zaretskii <eliz@gnu.org>
3187
3188 * alloc.c (NSTATICS): Bump to 0x640.
3189
3190 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
3191
3192 * lisp.h: Add prototype for directory_files_internal.
3193
3194 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
3195 New functions.
3196 (syms_of_process): Defsubr them. Add initializations for various
3197 Q* symbols used in procfs_system_process_attributes.
3198 (procfs_list_system_processes, procfs_system_process_attributes)
3199 [HAVE_PROCFS]: New functions.
3200 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
3201 (procfs_get_total_memory): New functions.
3202
32032008-08-01 Juanma Barranquero <lekktu@gmail.com>
3204
3205 * xfaces.c (Fx_load_color_file): Fix previous change;
3206 it is #ifdef WINDOWSNT, not WINDOWS_NT.
3207
32082008-08-01 Michael Albinus <michael.albinus@gmx.de>
3209
3210 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
3211
32122008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3213
3214 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
3215
32162008-08-01 Chong Yidong <cyd@stupidchicken.com>
3217
3218 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
3219
3220 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
3221 define NSApplicationDelegateReplySuccess.
3222 (EmacsView -converstationIdentifier): Use long instead of
3223 NSInteger for GNUstep, since it doesn't have NSInteger.
3224
3225 * xmenu.c: Revert last change.
3226
3227 * keyboard.h: Fix last change.
3228
32292008-08-01 Juanma Barranquero <lekktu@gmail.com>
3230
3231 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
3232 on Windows.
3233
32342008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3235
3236 Warning clearing and clean-up in NS port.
3237 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
3238 Add prototypes.
3239 * nsgui.h (FACE_DEFAULT): Remove, unused.
3240 (XGCValues): Change colors to unsigned long.
3241 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
3242 nsterm.m.
3243 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
3244 (ns_list_fonts): Remove, unused.
3245 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
3246 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
3247 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
3248 (nsfont_draw): Compare face colors to 0, not nil.
3249 * nsmenu.m (struct widget_value): Drop unneeded declaration.
3250 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
3251 (-addSubmenuWithTitle:): Use NSMenuItem class.
3252 (ns_popup_menu): Use NO, not NULL, for enabled setting.
3253 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
3254 (ns_clip_to_row): Make gc arg a BOOL.
3255 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
3256 ns_clip_to_row() call.
3257 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
3258 used). Cast FRAME_FONT assignments.
3259 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
3260 (ns_string_to_lispmod): Change arg to const char.
3261 (ns_term_init): Use NSMenuItem class.
3262 (EmacsApp -openFile:): Move to different section of file.
3263 (EmacsApp -application:openFiles:): Don't return a value, call
3264 -replyToOpenOrPrint:.
3265 (EmacsView -keyDown:): Fix up cast.
3266 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
3267 (EmacsView -menuDown:): Cast tag in call to
3268 find_and_call_menu_selection().
3269 (ns_list_fonts): Remove, unused.
3270 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
3271 (ns_fontname_to_xlfd): Make static.
3272 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
3273 Remove prototypes (now in keyboard.h).
3274 (next_menubar_widget_id): Remove, unused.
3275 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
3276 Remove prototypes (now in keyboard.h).
3277 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
3278
32792008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
3280
3281 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
3282 (floatfns.o): Depend on syssignal.h.
3283 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
3284
3285 * systty.h: Fix previous change that removed BSD_TERMIOS.
3286 Add comments to #ifdefs.
3287
32882008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
3289
3290 * w32fns.c (w32-load-color-file): Remove.
3291 (x-open-connection): Use renamed Fx_load_color_file.
3292 * xfaces.c (x-load-color-file): Add.
3293 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
3294 Emacs.clr.
3295 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
3296
32972008-07-31 Michael Albinus <michael.albinus@gmx.de>
3298
3299 * dbusbind.c (Fdbus_call_method_asynchronously)
3300 (Fdbus_method_error_internal): New defuns.
3301 (xd_read_message): Handle also reply messages.
3302 (Vdbus_registered_functions_table): Extend docstring.
3303
33042008-07-31 Juanma Barranquero <lekktu@gmail.com>
3305
3306 * keyboard.c (gobble_input): Fix previous change.
3307
33082008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3309
3310 * bitmaps/README:
3311 * xfns.c:
3312 * termcap.c:
3313 * term.c:
3314 * syswait.h:
3315 * systty.h:
3316 * systime.h:
3317 * syssignal.h:
3318 * sysdep.c:
3319 * process.h:
3320 * process.c:
3321 * print.c:
3322 * ndir.h:
3323 * lread.c:
3324 * keyboard.c:
3325 * getpagesize.h:
3326 * floatfns.c:
3327 * fileio.c:
3328 * emacs.c:
3329 * doc.c:
3330 * dispnew.c:
3331 * dired.c:
3332 * data.c:
3333 * callproc.c:
3334 * buffer.c:
3335 * README:
3336 * Makefile.in:
3337 * s/template.h:
3338 * s/msdos.h:
3339 * m/vax.h: Remove VMS support.
3340 * s/vms.h:
3341 * vlimit.h:
3342 * uaf.h:
3343 * temacs.opt:
3344 * param.h:
3345 * ioctl.h: Remove file.
3346
33472008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
3348
3349 * s/ms-w32.h (MULTI_KBOARD): Remove.
3350 * xterm.c:
3351 * xselect.c:
3352 * xfns.c:
3353 * window.c:
3354 * w32term.c:
3355 * w32fns.c:
3356 * terminal.c:
3357 * termhooks.h:
3358 * term.c:
3359 * sysdep.c:
3360 * keyboard.h:
3361 * keyboard.c:
3362 * frame.h:
3363 * frame.c:
3364 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
3365 * config.in: Regenerate.
3366
33672008-07-30 Jason Rumney <jasonr@gnu.org>
3368
3369 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
3370
3371 * w32font.c (w32font_encode_char): Leave as unicode if in range.
3372 (w32font_open_internal): Get unicode version of textmetrics.
3373 Don't enable or disable glyph indices here.
3374 (w32font_open): Disable use of glyph indices.
3375
3376 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
3377
33782008-07-30 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * minibuf.c (Vread_buffer_function): Doc fix.
3381
33822008-07-30 John Paul Wallington <jpw@pobox.com>
3383
3384 * minibuf.c (read_buffer_completion_ignore_case): New var.
3385 (Fread_buffer): Use it.
3386
33872008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
3388
3389 * systty.h (sensemode): Remove empty #if. Remove reference to
3390 BSD_TERMIOS, unused.
3391
3392 * sysdep.c: Remove reference to DGUX.
3393 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
3394
3395 * config.in: Regenerate.
3396
33972008-07-30 Jason Rumney <jasonr@gnu.org>
3398
3399 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
3400
34012008-07-29 Jason Rumney <jasonr@gnu.org>
3402
3403 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
3404 is populated.
3405 (uniscribe_encode_char): Always use uniscribe.
3406 Avoid using context if cache is populated.
3407
34082008-07-29 Jan Djärv <jan.h.d@swipnet.se>
3409
3410 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
3411 open menu.
3412
3413 * gtkutil.c (menu_nav_ended): Remove.
3414 (create_menus): Remove signal connect for menu_nav_ended.
3415
34162008-07-28 Chong Yidong <cyd@stupidchicken.com>
3417
3418 * xdisp.c (redisplay_window): Check return value of
3419 compute_window_start_on_continuation_line before forcing a window
3420 start.
3421
34222008-07-28 Jason Rumney <jasonr@gnu.org>
3423
3424 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
3425
3426 * w32term.c (w32_enable_unicode_output, cleartype_active):
3427 Remove obsolete display options.
3428 (x_draw_glyph_string_background): Don't use old cleartype_active
3429 workaround.
3430 (w32_initialize): Remove cleartype_active initialization.
3431 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
3432
34332008-07-28 Andreas Schwab <schwab@suse.de>
3434
3435 * lisp.h (init_weak_hash_tables, syms_of_font)
3436 (xd_read_queued_messages, syms_of_dbusbind): Declare.
3437 (remove_hash_entry): Don't declare.
3438 * eval.c (maybe_call_debugger): Make static and move before use.
3439 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
3440 * xdisp.c: Include "gtkutil.h" if USE_GTK.
3441 * xterm.h (x_set_frame_alpha): Declare.
3442
34432008-07-28 Jan Djärv <jan.h.d@swipnet.se>
3444
3445 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
3446 (create_menus): Connect selection-done to menu_nav_ended.
3447
34482008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3449
3450 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
3451 Set Vx_resource_name to a fallback. Replace read of 'buffered'
3452 parameter with read of 'alpha' one.
3453 (Qns_frame_parameter): Remove.
5582fbc7 3454 * nsselect.m (selection-coding-system)
aac0c6e3
MR
3455 (next-selection-coding-system, Vselection_coding_system)
3456 (Vnext_selection_coding_system): Drop.
3457
34582008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
3459
3460 * nsfns.m (do-applescript, do_applescript): Rename to
3461 ns-do-applescript, ns_do_applescript, and move within file.
3462
34632008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3464
3465 Remove support for Mac Carbon.
3466 * mactoolbox.c:
3467 * macterm.h:
3468 * macterm.c:
3469 * macselect.c:
3470 * macmenu.c:
3471 * macgui.h:
3472 * macfns.c:
3473 * mac.c: Remove file.
3474 * s/darwin.h:
3475 * m/intel386.h:
3476 * xfaces.c:
3477 * xdisp.c:
3478 * window.c:
3479 * tparam.c:
3480 * termhooks.h:
3481 * termcap.c:
3482 * term.c:
3483 * syssignal.h:
3484 * sysselect.h:
3485 * sysdep.c:
3486 * process.c:
3487 * lread.c:
3488 * lisp.h:
3489 * keyboard.c:
3490 * image.c:
3491 * fringe.c:
3492 * frame.h:
3493 * frame.c:
3494 * fontset.c:
3495 * font.h:
3496 * font.c:
3497 * fns.c:
3498 * fileio.c:
3499 * emacs.c:
3500 * dispnew.c:
3501 * dispextern.h:
3502 * config.in:
3503 * atimer.c:
2ae37cf0 3504 * Makefile.in: Remove code for Carbon.
aac0c6e3 3505
f0131492 35062008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
3507
3508 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
3509
35102008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3511
3512 * macterm.h (kCGBitmapByteOrder32Host): New define for
3513 non-universal SDKs.
3514
3515 * image.c (mac_create_cg_image_from_image, image_load_image_io)
3516 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3517
3518 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
3519 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
3520
35212008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
3522
3523 * w32inevt.c: Include dispextern.h.
3524
35252008-07-26 Andreas Schwab <schwab@suse.de>
3526
3527 * print.c (print_object): Fix off-by-one in last change.
3528
35292008-07-25 Juanma Barranquero <lekktu@gmail.com>
3530
3531 * term.c (syms_of_term): Don't initialize default_orig_pair,
3532 default_set_foreground and default_set_background on Windows.
3533
35342008-07-25 Jason Rumney <jasonr@gnu.org>
3535
3536 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
3537 ScriptItemize. Clean up return value checking. Remove unused
3538 variables.
3539 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
3540 shaping engine.
3541
3542 * w32font.c (w32font_has_char): Handle the case where we can't
3543 determine the script for a character.
3544
35452008-07-25 Chong Yidong <cyd@stupidchicken.com>
3546
3547 * term.c (syms_of_term): Initialize default_orig_pair,
3548 default_set_foreground, and default_set_background.
3549
3550 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
3551 clash (bug#86).
3552 (getloadavg): Callers changed.
3553
3554 * image.c (svg_load_image): Fix last change.
3555 (svg_load_image): Use rsvg_handle_get_dimensions to check that
3556 image size is valid. Use g_object_unref instead of deprecated
3557 rsvg_handle_free to free rsvg handle.
3558 (x_from_xcolors): Don't initialize pixmap (silence compiler).
3559
35602008-07-25 Jason Rumney <jasonr@gnu.org>
3561
3562 * w32font.c (w32font_encode_char): Encode characters outside BMP as
3563 surrogates before looking up glyph index.
3564 (w32font_text_extents): Encode as surrogates if falling back to
3565 functions that need UTF-16 wide chars.
3566
3567 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
3568 BMP as surrogates before looking up glyph index.
3569
35702008-07-25 Chong Yidong <cyd@stupidchicken.com>
3571
3572 * image.c (svg_load_image): Check for failure in return value of
3573 rsvg_handle_get_pixbuf. Free rsvg handle when done.
3574
35752008-07-25 Jason Rumney <jasonr@gnu.org>
3576
3577 * w32font.c (Fx_select_font): Reverse sense of second arg.
3578
35792008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
3580
3581 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
3582 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
3583
3584 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
3585 (PURESIZE): Use it.
3586
35872008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
3588
3589 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
3590 * m/alpha.h (TEXT_END):
3591 * m/ibmrs6000.h (TEXT_END):
3592 * m/macppc.h (TEXT_END):
3593 * s/darwin.h (TEXT_END):
3594 * s/msdos.h (TEXT_END): Remove, unused.
3595 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
3596 * s/cygwin.h: Remove comment.
3597
3598 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
3599 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
3600 * m/intel386.h (DOT_GLOBAL_START):
3601 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
3602 (USG): Remove, file not used on USG platforms.
3603
3604 * Makefile.in (HAVE_X11): Remove empty #else.
3605
36062008-07-24 Andreas Schwab <schwab@suse.de>
3607
3608 * fileio.c (Finsert_file_contents): Properly adjust undo list
3609 after format conversion.
3610
36112008-07-24 Jan Djärv <jan.h.d@swipnet.se>
3612
3613 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
3614 (menu_nav_ended): Remove.
3615 (create_menus): Remove signal connect for menu_nav_ended.
3616 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
3617 create_menus.
3618 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
3619
36202008-07-23 Jason Rumney <jasonr@gnu.org>
3621
3622 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
3623 with opened font.
3624 (w32font_open): Set font type to gdi.
3625
3626 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
3627
36282008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
3629
3630 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
3631 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
3632 defines it.
3633 * unexec.c (ADDR_CORRECT): Define unconditionally.
3634
3635 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
3636
3637 * unexec.c: Remove code depending on !COFF and USG, the file is
3638 not used for such systems.
3639
3640 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
3641 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
3642 (LD_SWITCH_SYSTEM_1): Remove, update users.
3643
3644 * s/darwin.h (DATA_END):
3645 * m/intel386.h (DATA_END):
3646 * m/ibmrs6000.h (DATA_END):
3647 * m/alpha.h (DATA_END): Remove, unused.
3648
3649 * config.in: Regenerate.
3650 * s/ms-w32.h (subprocesses): Define unconditionally.
3651 * s/template.h (subprocesses): Update comment.
3652 * s/vms.h (subprocesses):
3653 * s/usg5-4.h (subprocesses):
3654 * s/hpux10-20.h (subprocesses):
3655 * s/gnu-linux.h (subprocesses):
3656 * s/cygwin.h (subprocesses):
3657 * s/bsd-common.h (subprocesses):
3658 * s/aix4-2.h (subprocesses):
3659 * s/darwin.h (subprocesses): Do not define, defined by default now.
3660
3661 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
3662 Remove all references.
3663 (temacs): Add GNUstep specific ld flags.
3664
3665 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
3666 similarly to what X does.
3667
36682008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3669
3670 * nsfns.m (x-list-fonts): Remove.
3671 (syms_of_nsfns): Drop the x-list-fonts declaration.
3672 * nsterm.m: Get rid of remaining "//" comments.
3673
36742008-07-22 Chong Yidong <cyd@stupidchicken.com>
3675
3676 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
3677
3678 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
3679 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
3680 (Fns_own_selection_internal, Fx_disown_selection_internal)
3681 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
3682
3683 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
3684 ... */' style of docstrings. Doc fixes.
3685
36862008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3687
3688 * terminfo.c (UP, BC, PC): Undo previous change.
3689
3690 * nsfns.m: Rename ns prefixed functions/variables to the
3691 corresponding x versions. Update references.
3692
36932008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
3694
3695 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
3696
36972008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
3698
3699 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
3700 Remove forwarding functions.
3701 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
3702 non-static.
3703 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
3704 non-static.
3705 (ns_frame_parm_handlers): Use the new names.
3706 (syms_of_nsfns): Move to the end of file.
3707
3708 * nsterm.m (syms_of_nsterm): Move to the end of file.
3709
3710 * dispnew.c (init_display): Remove code for X10.
3711
37122008-07-22 Jason Rumney <jasonr@gnu.org>
3713
3714 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
3715 bare drive.
3716
37172008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
3718
3719 * nsterm.m (syms_of_nsterm): Remove debugging println.
3720
37212008-07-22 David Reitter <david.reitter@gmail.com>
3722
3723 * nsfns.m (do_applescript, F_do_applescript): NS version of the
3724 Carbon implementation of the same functionality: execute arbitrary
3725 AppleScript code.
3726
37272008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3728
3729 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
3730 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
3731 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
3732 (Fx_display_mm_height, Fx_display_mm_width)
3733 (Fx_display_backing_store, Fx_display_visual_class)
3734 (Fx_display_save_under, Fx_open_connection)
3735 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
3736 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
3737 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3738 (Fx_display_pixel_width, Fx_display_pixel_height)
3739 (Fx_display_usable_bounds, Fx_display_planes)
3740 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
3741 ... */' style of docstrings.
3742
37432008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
3744
3745 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
3746 on this platform.
3747 (mips):
3748 * m/iris4d.h (mips): Do not define.
3749 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
3750
3751 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
3752
3753 * image.c:
3754 * nsfns.m:
3755 * nsselect.m:
3756 * nsterm.h:
3757 * nsterm.m: Rename ns prefixed functions/variables to the
3758 corresponding x versions. Update references.
3759
3760 * m/ibms390x.h (NO_REMAP): Do not undefine.
3761
3762 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
3763
37642008-07-21 Chong Yidong <cyd@stupidchicken.com>
3765
3766 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
3767 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
3768 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
3769 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
3770 (Fns_display_mm_height, Fns_display_mm_width)
3771 (Fns_display_backing_store, Fns_display_visual_class)
3772 (Fns_display_save_under, Fns_open_connection)
3773 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
3774 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
3775 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
3776 (Fns_display_pixel_width, Fns_display_pixel_height)
3777 (Fns_display_usable_bounds, Fx_display_planes)
3778 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
3779
37802008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
3781
3782 * print.c (print_object): Check print_depth before searching for
3783 circularities.
3784
37852008-07-21 Michael Albinus <michael.albinus@gmx.de>
3786
3787 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
3788 only sprintf.
3789
37902008-07-21 Kenichi Handa <handa@m17n.org>
3791
3792 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
3793
37942008-07-20 Andreas Schwab <schwab@suse.de>
3795
3796 * syntax.c (find_start_pos, find_start_value)
3797 (find_start_value_byte, find_start_begv, find_defun_start)
3798 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
3799
38002008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3801
3802 * s/sol2-3.h: Insert contents of s/sol2.h.
3803 (LD_SWITCH_SYSTEM): Remove redundant definition.
3804 * s/sol2.h: Remove, unused.
3805
38062008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3807
3808 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
3809
38102008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3811
3812 * Makefile.in (ns_appdir): Fix typo in find command.
3813
38142008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
3815
3816 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
3817
3818 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
3819 added not supported anymore.
3820
3821 * s/usg5-4-2.h (LIBS_SYSTEM):
3822 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
3823
3824 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3825 * s/lynxos.h (GETPGRP_NO_ARG):
3826 * s/hpux10-20.h (NO_SIOCTL_H):
3827 * s/gnu.h (GETPGRP_NO_ARG):
3828 * s/gnu-linux.h (NO_SIOCTL_H):
3829 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
3830 * s/cygwin.h (GETPGRP_NO_ARG):
3831 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
3832 (C_DEBUG_SWITCH): Remove duplicate definition.
3833
3834 * m/ibms390.h: Remove boilerplate comments.
3835
3836 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
3837
3838 * process.c (HAVE_SERIAL): Consolidate ifdefs.
3839 (wait_reading_process_output): Remove code for SunOS, platform not
3840 supported anymore. Use SOLARIS2 instead of sun.
3841
38422008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3843
3844 * font.c (font_open_by_name): Under NS, default lface height to zero.
3845 (font_open_for_lface): Under NS, set size based on frame fontsize.
3846 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
3847 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
3848
38492008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3850
3851 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
3852 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
3853 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
3854 YES/NO.
3855 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
3856 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
3857 * Makefile.in (clean): Clear out build destination dir.
3858
38592008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3860
3861 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
3862 xterm, xselect.
3863 * lisp.h: Remove declaration of hash_remove.
3864 * nsgui.h: Remove redefinitions of hash_remove.
3865 * fns.c (hash_remove): Rename to hash_remove_from_table.
3866
38672008-07-19 Seiji Zenitani <zenitani@mac.com>
3868
3869 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
3870 strdup() the family UTF8String before modifying it.
3871
38722008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
3873
3874 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
3875 NS_FACE_BACKGROUND with 0 instead of nil.
3876 * nsfont.m (nsfont_draw): Same.
3877
38782008-07-19 Chong Yidong <cyd@stupidchicken.com>
3879
3880 * nsfns.m (ns_set_background_color): Fix crash.
3881
38822008-07-18 Chong Yidong <cyd@stupidchicken.com>
3883
3884 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
3885
38862008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
3887
3888 * puresize.h (BASE_PURESIZE): Increase to 1240000.
3889
38902008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3891
3892 * gtkutil.c: Include <config.h> instead of "config.h".
3893
3894 * lisp.h (Foverlay_buffer): Add EXFUN.
3895
3896 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
3897 child process to complete child_setup. Undo 2005-09-21 change.
3898
3899 * s/darwin.h: Mention setsid after vfork.
3900
39012008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3902
3903 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
3904 Depend on macgui.h.
3905
3906 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
3907 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
3908
3909 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
3910 and f19.
3911 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
3912
3913 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3914 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3915 Remove enumerators.
3916
3917 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
3918 Check if FACE_FROM_ID returns NULL.
3919
39202008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
3921
3922 * w32inevt.c (change_frame_size): Remove extern declaration.
3923 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
3924 change_frame_size.
3925
39262008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3927
3928 * getloadavg.c: Revert last change (2008-07-15).
3929
39302008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
3931
3932 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
3933 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc) set
3934 from configure.
3935
39362008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
3937
3938 * s/sol2.h:
3939 * s/sol2-4.h: Reorganize conditionals.
3940
3941 * ecrt0.c: Remove code depending on m68000, not used anymore.
3942
3943 * fns.c (hash_remove): Make static.
3944 * lisp.h (hash_remove): Don't prototype.
3945
3946 * m/ibmrs6000.h:
3947 * m/ibms390x.h:
3948 * m/macppc.h: Remove boilerplate comments.
3949
3950 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
3951 Solaris, which does not need them.
3952
3953 * m/vax.h: Remove comments about unsupported systems.
3954
3955 * s/darwin.h: Reorganize ifdefs.
3956
39572008-07-17 Andreas Schwab <schwab@suse.de>
3958
3959 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
3960
39612008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
3962
3963 Use SDATA. Follow coding convention of placing operators at
3964 beginning of next line rather than end of previous line, and placing
3965 spaces around infix operators.
3966
3967 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
3968 in case it was defined already.
3969 USE @GNUSTEP_MAKEFILES@ rather than envvars.
3970 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
3971 ns_default.
3972 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
3973 Lisp_Objects.
3974 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
3975 (ns_defined_color, ns_color_to_lisp): Declare.
3976 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
3977 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
3978 it's accepted even with USE_LISP_UNION_TYPE.
3979 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
3980 (update_frame_tool_bar): Remove apparently obsolete tests for
3981 non-integerness of f->tool_bar_lines.
3982 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
3983 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
3984 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
3985 (nsfont_open): Don't confuse NULL for Qnil.
3986 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
3987 * menu.h (find_and_call_menu_selection):
3988 * menu.c (find_and_call_menu_selection): Use just int for vector size.
3989 (find_and_return_menu_selection): Always return something.
3990 * frame.h: Include dispextern.h for Display_Info.
3991 (display_x_get_resource): Declare.
3992
39932008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
3994
3995 * syntax.c: Remove stdio.h include accidentally introduced in
3996 Emacs.app commit.
3997 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
3998 NS_IMPL_COCOA.
3999 * keyboard.c (handle_async_input, input_available_signal): Remove
4000 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
4001
40022008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4003
4004 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
4005 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
4006 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
4007 Use SDATA.
4008
4009 * keymap.c: Remove all NS-specific code.
4010 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
4011 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
4012 where_is_preferred_modifier, return a different value depending on how
4013 preferred is the binding.
4014 (where_is_internal): Adjust accordingly.
4015 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
4016 Adjust to new preferred_sequence_p.
4017 (syms_of_keymap): Declare `where-is-preferred-modifier'.
4018 * keyboard.c (parse_solitary_modifier): Not static any more.
4019 * keyboard.h (parse_solitary_modifier): Declare.
4020
40212008-07-16 Andreas Schwab <schwab@suse.de>
4022
4023 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
4024 of easymenu.
4025
40262008-07-16 Chong Yidong <cyd@stupidchicken.com>
4027
4028 * xdisp.c (move_it_in_display_line): Account for word wrap, so
4029 that we don't move off the line.
4030
40312008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
4032
4033 * keyboard.c (Qsuper): Remove.
4034 (parse_menu_item): Don't call where_is_internal specially for NS.
4035
40362008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4037
4038 * s/gnu-linux.h: Remove boilerplate comments.
4039
4040 * m/alpha.h (__ELF__): Consolidate conditions.
4041
4042 * m/m68k.h (linux): Use GNU_LINUX instead.
4043 Remove boilerplate comments.
4044
4045 * m/intel386.h: Undo refactoring from previous change.
4046 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
4047 too, remove dead code.
4048 (linux): Use GNU_LINUX instead.
4049
40502008-07-16 Jason Rumney <jasonr@gnu.org>
4051
4052 * w32gui.h: Repeat 26 June changes lost by last change.
4053
40542008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
4055
4056 * systty.h: Remove code for Aix on 386, unsupported platform.
4057
4058 * s/ms-w32.h: Remove boilerplate comments.
4059 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
4060
4061 * s/gnu-linux.h (TERM): Remove support.
4062 (HAVE_SYSVIPC): Remove, unused.
4063 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
4064 for this system.
4065
4066 * process.c: Remove support for IRIS, unused.
4067 Remove support for TERM, not relevant anymore.
4068
4069 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
4070 used with the definition.
4071
4072 * s/aix4-2.h (static): Do not undef.
4073
4074 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
4075 only used on Aix.
4076 (HAVE_SYSVIPC): Remove, unused.
4077
4078 * m/hp800.h (CANNOT_DUMP): Do not undef.
4079
4080 * m/alpha.h: Fix comment.
4081
4082 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
4083 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
4084 used by this configuration.
4085 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
4086 * unexec.c: Remove code depending on HPUX and
4087 USG_SHARED_LIBRARIES, not used with this file. Remove code
4088 depending on IRIS, unused. Remove if 0-ed code.
4089
4090 * s/template.h: Remove comments about static.
4091
4092 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
4093 Remove if 0-ed code.
4094 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
4095 were the same as the default.
4096 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
4097 Remove boilerplate comments.
4098 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
4099 (HAVE_SYSVIPC): Remove, unused.
4100 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
4101
4102 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4103 Remove boilerplate comments.
4104 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4105 Remove boilerplate comments.
4106 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
4107 Remove boilerplate comments.
4108 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
4109
4110 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
4111 USG systems which do not use DATA_SEG_BITS.
4112 Refactor code. Remove boilerplate comments.
4113
4114 * m/ibms390.h:
4115 * m/m68k.h:
4116 * s/bsd-common.h:
4117 * s/cygwin.h:
4118 * s/darwin.h:
4119 * s/freebsd.h:
4120 * s/gnu.h:
4121 * s/msdos.h: Remove boilerplate comments.
4122
4123 * m/iris4d.h: Remove boilerplate comments and code for systems that
4124 do not use this file.
4125 (IRIS_4D): Remove, unused.
4126
4127 * m/mips.h: Remove boilerplate comments and code for systems that
4128 do not use this file.
4129 (SIGN_EXTEND_CHAR):
4130 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
4131 * unexmips.c: Remove file, unused.
4132
4133 * editfns.c (Fuser_full_name): Replace the only use of
4134 USER_FULL_NAME with its value.
4135 * config.in: Regenerate.
4136
41372008-07-16 David Reitter <david.reitter@gmail.com>
4138
4139 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
4140 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
4141
41422008-07-16 Glenn Morris <rgm@gnu.org>
4143
4144 * emacs.c (system-type): Doc fix.
4145
41462008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
4147
4148 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
4149 If the cache doesn't work, let's fix it, rather than work around it.
4150
41512008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4152
4153 * Makefile.in: Correct additions for nsfont.o in last commit.
4154 * nsfont.m: New file (forgot last commit).
4155
41562008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4157
4158 * callproc.c (set_initial_environment): Initialize
4159 Vprocess_environment under CANNOT_DUMP (fixes crash when
4160 batch-compiling for bootstrap).
4161
41622008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
4163 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4164
4165 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
4166 fix crash due to different init order.
4167
41682008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4169
4170 Changes and additions for NeXTstep windowing system (Cocoa and
4171 GNUstep) support.
4172
4173 * Makefile.in:
4174 * config.in: Support defines and build commands for NS port.
4175 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
4176 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
4177 * dispextern.h: Include nsgui.h and add needed typedefs under NS
4178 windowing.
4179 (struct face): Add synth_ital field.
4180 * dispnew.c: Include nsterm.h when compiling under NS windowing.
4181 (init_display): Initialize Vinitial_window_system to "ns" when so
4182 compiled.
4183 * emacs.c: Include GSConfig.h when compiling under GNUstep.
4184 (display_arg): Use under NS.
4185 (main): Under NS, allocate autorelease pool and handle command line
4186 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
4187 (standard_args): Add NS-specific args.
4188 (shut_down_emacs): Shut down NS terminal if compiled under NS.
4189 * font.c (DEFAULT_ENCODING): New variable.
4190 (font_find_for_lface): Use it.
4191 (syms_of_font): Load syms_of_nsfont under NS.
4192 * font.h: Declare nsfont_driver when compiled under NS.
4193 * fontset.c: When compiling under NS, include nsterm.h.
4194 (fontset_from_font): Autoconstruct fontset under NS.
4195 * frame.c (various): Under NS, include nsterm.h, add Qns window system
4196 symbol, document and use it.
4197 (do_switch_frame): When for_deletion under Cocoa, add
4198 Fraise_frame(Qnil).
4199 (x_set_frame_parameters): Ensure font attribute changes are picked up.
4200 (x_get_arg): Allow "yes" and "no" as boolean values.
4201 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
4202 Qright under Cocoa.
4203 (focus-follows-mouse): Default to 0 under NS.
4204 * frame.h (enum output_method): Add output_ns.
4205 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
4206 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
4207 (FRAME_WINDOW_P): NS-specific definition.
4208 * fringe.c (max_used_fringe_bitmap): Make public.
4209 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
4210 (getloadavg): Use NeXT code under descendant OS's.
4211 * image.c (includes and header section, x_create_bitmap_from_data)
4212 (x_create_bitmap_from_file, free_bitmap_record, image_background)
4213 (image_background_transparent, x_clear_image_1)
4214 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
4215 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
4216 (x_to_xcolors, x_from_xcolors, x_disable_image)
4217 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
4218 other GUIs, including XPM support using code originally written for
4219 Carbon GUI.
4220 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
4221 using NS API.
4222 (image_ascent): Use font metrics macros instead of direct struct field
4223 access.
4224 * keyboard.c (includes): Add nsterm.h when compiling under NS.
4225 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
4226 Also, handle NS as GTK for menu bar purposes.
4227 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
4228 toolkit where they differ.
4229 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
4230 use cachelist, still needed under NS.
4231 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
4232 (struct widget_value): Define it here for menu.c.
4233 * keymap.c (includes): Include modifier internals.
4234 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
4235 NS.
4236 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
4237 support for preferring sequences using certain modifiers, specified by
4238 the FIRSTONLY argument.
4239 * lisp.h (hash_remove): Rename to avoid name clash when compiling
4240 under NS GNUstep implementation.
4241 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
4242 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
4243 * menu.c: Include nsterm.h under NS.
4244 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
4245 (free_menubar_widget_tree_value, update_submenu_strings)
4246 (find_and_call_menu_selection): Treat NS as X and NT.
4247 (find_and_return_menu_selection): New function, used for popup menus.
4248 * nsgui.h:
4249 * nsterm.h:
4250 * nsfns.m:
4251 * nsimage.m:
4252 * nsmenu.m:
4253 * nsselect.m:
4254 * nsterm.m: New files.
4255 * process.c (wait_reading_process_output): Under NS, call ns_select()
4256 instead of plain select().
4257 * syntax.c (char_quoted): Under NS, avoid a crash when called near
4258 beginning of buffer.
4259 * sysselect.h (init_process): Rename when compiling under Cocoa to
4260 avoid name conflict.
4261 * termhooks.h (display_info): Add ns_display_info to union.
4262 * terminal.c (Fterminal_live_p): Add ns to terminal types.
4263 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
4264 COCOA environment.
4265 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
4266 unexec() signature. (Note, this will dump, but the resulting file
4267 crashes; unexosx is used instead; keeping around for reference and
4268 possible aid in getting dump working under GNUstep.)
4269 * w32gui.h (button_type, widget_value): Remove definitions (now in
4270 keyboard.h).
4271 * window.c: Include nsterm.h when compiling under NS.
4272 * xdisp.c (includes): Include nsterm.h when compiling under NS.
4273 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
4274 other GUI windowing systems.
4275 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
4276 GTK.
4277 (x_consider_frame_title): Under NS, set icon type and frame
4278 modified-state indicator; use ns_set_name_as_filename() when using
4279 formatted title.
4280 (update_window_cursor): Make public when compiling under NS.
4281 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
4282 (hourglass_atimer, Vhourglass_delay
4283 * xfaces.c (header section, init_frame_faces, clear_font_table)
4284 (defined_color, unload_color, x_face_list_fonts)
4285 (prepare_face_for_display): Add NS support parallel to other GUIs.
4286 Emulate GCs like other non-X GUIs.
4287 (split_font_name): Don't lowercase font name under NS.
4288 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
4289 under NS.
4290 * s/darwin.h: Add support for compilation under NS.
4291
42922008-07-15 Jason Rumney <jasonr@gnu.org>
4293
4294 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
4295 (w32_show_hourglass): Rename from show_hourglass.
4296 (w32_hide_hourglass): Rename from hide_hourglass.
4297 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
4298 (Vhourglass_delay): Declare extern.
4299 (hourglass_started): Remove.
4300
4301 * xdisp.c (Vhourglass_delay): Remove static.
4302 (hourglass_started, start_hourglass, cancel_hourglass):
4303 Don't include these versions on WINDOWSNT.
4304
43052008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
4306
4307 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
4308 variables (formerly in xfns.c).
4309 (show_hourglass, hide_hourglass): New prototypes (same).
4310 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
4311 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
4312 in xfns.c).
4313 (syms_of_xdisp): Declare/initialize display-hourglass,
4314 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
4315 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
4316 formerly in xfns.c.
4317 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4318 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4319 (start_hourglass, cancel_hourglass): Remove.
4320 (show_hourglass, hide_hourglass): Remove prototypes and static
4321 modifiers.
4322 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
4323 hourglass_atimer, hourglass_shown_p declaration/initialization.
4324 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
4325 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
4326 (start_hourglass, cancel_hourglass): Remove.
4327 (show_hourglass, hide_hourglass): Remove prototypes and static
4328 modifiers.
4329 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
4330 hourglass_atimer, hourglass_shown_p declaration/initialization.
4331 * w32fns.c (display_hourglass_p, Vhourglass_delay)
4332 (DEFAULT_HOURGLASS_DELAY): Remove.
4333 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
4334 hourglass_shown_p declaration/initialization.
4335
43362008-07-14 Jason Rumney <jasonr@gnu.org>
4337
4338 * w32fns.c (w32_get_arg): Remove wrapper function.
4339 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
4340 directly.
4341 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
4342
43432008-07-14 Kenichi Handa <handa@m17n.org>
4344
4345 * xfont.c (xfont_open): Add workaround for X's bug.
4346
43472008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4348
4349 * fontset.c: Include <stdio.h> unconditionally.
4350
43512008-07-13 Michael Albinus <michael.albinus@gmx.de>
4352
4353 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
4354 for filtering.
4355
43562008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
4357
4358 * s/vms.h: Use __GNUC__ instead of _GNUC_.
4359
4360 * m/macppc.h:
4361 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
4362
4363 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
4364 (SPECIAL_EMACS_INT):
4365 * m/ia64.h (SPECIAL_EMACS_INT):
4366 * m/amdx86-64.h (SPECIAL_EMACS_INT):
4367 * s/gnu.h (NLIST_STRUCT):
4368 * s/aix4-2.h (X11R5_INHIBIT_I18N):
4369 * s/gnu-linux.h (LINUX):
4370 * s/msdos.h (HAVE_FACES):
4371 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
4372
4373 * systty.h:
4374 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
4375 anymore.
4376
43772008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
4378
4379 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
4380 always defined as int.
4381
4382 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
4383 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
4384 * s/gnu-linux.h (HAVE_WAIT_HEADER):
4385 * s/freebsd.h (HAVE_WAIT_HEADER):
4386 * s/bsd-common.h (HAVE_UNION_WAIT):
4387 * s/aix4-2.h (HAVE_WAIT_HEADER):
4388 * m/mips.h (HAVE_UNION_WAIT):
4389 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
4390 (COFF, static): Do not define, they are undefined later in the file.
4391
4392 * process.c (update_status): Don't use a union.
4393 (status_convert):
4394 (sigchld_handler): Use int instead of WAITTYPE.
4395
43962008-07-12 Chong Yidong <cyd@stupidchicken.com>
4397
4398 * indent.c (Fvertical_motion): Restore hscroll before moving to
4399 goal column.
4400
44012008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4402
4403 * lisp.h: Remove left over code.
4404
44052008-07-11 Andreas Schwab <schwab@suse.de>
4406
4407 * lisp.h: Fix logic in last change.
4408
4409 * menu.h: New file.
4410 * menu.c: Include it.
4411 * xmenu.c: Likewise.
4412 * Makefile.in: Update dependencies.
4413
44142008-07-11 Kenichi Handa <handa@m17n.org>
4415
4416 * fontset.c (fontset_from_font): Cancel the previous change.
4417
44182008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
4419
4420 * lisp.h:
4421 * w32heap.c:
4422 * emacs.c:
4423 * alloc.c: Replace all references of NO_UNION_TYPE with
4424 USE_LISP_UNION_TYPE.
4425
4426 * m/xtensa.h (NO_UNION_TYPE):
4427 * m/vax.h (NO_UNION_TYPE):
4428 * m/template.h (NO_UNION_TYPE):
4429 * m/sparc.h (NO_UNION_TYPE):
4430 * m/mips.h (NO_UNION_TYPE):
4431 * m/macppc.h (NO_UNION_TYPE):
4432 * m/m68k.h (NO_UNION_TYPE):
4433 * m/iris4d.h (NO_UNION_TYPE):
4434 * m/intel386.h (NO_UNION_TYPE):
4435 * m/ibms390x.h (NO_UNION_TYPE):
4436 * m/ibms390.h (NO_UNION_TYPE):
4437 * m/ibmrs6000.h (NO_UNION_TYPE):
4438 * m/ia64.h (NO_UNION_TYPE):
4439 * m/hp800.h (NO_UNION_TYPE):
4440 * m/arm.h (NO_UNION_TYPE):
4441 * m/amdx86-64.h (NO_UNION_TYPE):
4442 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
4443 defining it the same.
4444
44452008-07-10 Chong Yidong <cyd@stupidchicken.com>
4446
4447 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
4448
44492008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4450
4451 * fileio.c:
4452 * sysdep.c
4453 * systty.h:
4454 * m/ibmrs6000.h:
4455 * m/iris4d.h:
4456 * s/aix4-2.h:
4457 * s/freebsd.h:
4458 * s/gnu-linux.h:
4459 * s/hpux10-20.h:
4460 * s/hpux11.h:
4461 * s/netbsd.h:
4462 * s/sol2-3.h:
4463 * s/sol2-4.h:
4464 * s/sol2.h:
4465 * s/usg5-4.h:
4466 * s/vms.h: Remove references to unused variables.
4467
44682008-07-10 Andreas Schwab <schwab@suse.de>
4469
4470 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
4471 pattern before matching the generic family.
4472
44732008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
4474
4475 * unexec.c:
4476 * s/vms.h:
4477 * s/usg5-4-2.h:
4478 * s/sol2-5.h:
4479 * s/freebsd.h:
4480 * s/darwin.h: Remove dead code.
4481
4482 * m/template.h:
4483 * m/sparc.h:
4484 * m/mips.h:
4485 * m/m68k.h:
4486 * m/iris4d.h:
4487 * m/intel386.h:
4488 * m/ibms390x.h:
4489 * m/ibms390.h:
4490 * m/ia64.h:
4491 * m/hp800.h:
4492 * m/arm.h:
4493 * m/amdx86-64.h: Remove dead code and references to unused
4494 and compiler defined symbols.
4495
4496 * unexmips.c:
4497 * unexelf.c: Remove references to desupported systems.
4498
4499 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
4500
4501 * m/powermac.h: Remove boilerplate comments.
4502 (NO_REMAP): Remove unused definition.
4503
4504 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
4505 define them.
4506
45072008-07-10 Kenichi Handa <handa@m17n.org>
4508
4509 * xfont.c (xfont_open): Log the reason of failure.
4510
45112008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
4512
4513 * fontset.c (fontset_get_font_group):
4514 * font.c (font_check_otf): Specify argument types.
4515
45162008-07-09 Kenichi Handa <handa@m17n.org>
4517
4518 * coding.c (detect_coding_utf_8): Set detect_info->found only when
4519 non-ASCII char is found.
4520
4521 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
4522 (reorder_font_vector): Change the arg preferred_family to font.
4523 Prefer the spec matching with font.
4524 (fontset_get_font_group): New function.
4525 (fontset_find_font): Change the format of an element of a realized
4526 fontset. Use fontset_get_font_group.
4527 (fontset_font): Try the current fontset, the default fontset, the
4528 fallbacks of the current fontset, and the fallbacks of the default
4529 fontset in this order.
4530 (face_for_char): Delete the shortcut to use the current font.
4531 (fontset_from_font): Don't set fonts for Latin in the fontset.
4532
4533 * font.h (font_make_object, font_match_p): Adjust prototypes.
4534
4535 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
4536
4537 * font.c (font_make_object): New arg entity and pixelsize.
4538 (font_check_otf_features, font_check_otf): New functions.
4539 (font_match_p): Check :lang, :script, and :otf properties.
4540
4541 * xfont.c (xfont_open): Adjust it for the change of
4542 font_make_object.
4543 (xfont_text_extents): Fix initial setting of metrics.
4544
4545 * ftfont.c (struct ftfont_info): New member index, delete member
4546 fc_charset_idx. Make the member order compatible with struct
4547 xftfont_info.
4548 (fc_charset_table): Change charset names to registry names.
4549 (ftfont_pattern_entity): Delete the args registry and
4550 fc_charset_idx. Change the value of :font-entity property
4551 to (FONTNAME . INDEX). Always set :registry property to
4552 `iso10646-1'.
4553 (struct ftfont_cache_data): New struct.
4554 (ftfont_lookup_cache): New arg for_face.
4555 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
4556 (ftfont_driver): Set the member otf_capability.
4557 (ftfont_get_charset): Adjust it for the change of
4558 fc_charset_table.
4559 (OTF_TAG_SYM): New macro.
4560 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
4561 for the change of fc_charset_table.
4562 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
4563 ftfont_pattern_entity. Add FC_INDEX to objset.
4564 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
4565 and ftfont_pattern_entity.
4566 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
4567 font_make_object, struct ftfont_info.
4568 (ftfont_has_char): Use ftfont_get_fc_charset.
4569 (ftfont_otf_features, ftfont_otf_capability): New functions.
4570 (ftfont_shape): Use ftfont_get_otf.
4571 (ftfont_text_extents): Fix initial setting of metrics.
4572
4573 * xftfont.c (struct xftfont_info): New member ft_size. Make the
4574 member order compatible with struct ftfont_info.
4575 (xftfont_open): Add FC_CHARSET to the pattern. Set
4576 xftfont_info->ft_size. Don't unlock the face. Check BDF
4577 properties if appropriate.
4578 (xftfont_close): Unlock the face.
4579 (xftfont_anchor_point, xftfont_shape): Deleted.
4580 (syms_of_xftfont): Don't set members anchor_point and shape of
4581 xftfont_driver.
4582
4583 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
4584 font_make_object.
4585
4586 * w32font.c (w32font_open): Adjust it for the change of
4587 font_make_object.
4588 (w32font_open_internal): Don't set properties of font_object here.
4589
45902008-07-08 Chong Yidong <cyd@stupidchicken.com>
4591
4592 * macfns.c (x_create_tip_frame):
4593 * w32fns.c (x_create_tip_frame):
4594 * xfns.c (x_create_tip_frame): Pass parameter argument to
4595 face-set-after-frame-default.
4596
4597 * xfaces.c (Finternal_merge_in_global_face): Save merged
4598 attributes for the default face back into the face vector.
4599
46002008-07-08 Andreas Schwab <schwab@suse.de>
4601
4602 * fontset.h: Declare fontset_from_font. Don't declare
4603 new_fontset_from_font and fontset_from_font_name.
4604 * xterm.c: Include "fontset.h".
4605 * Makefile.in (xterm.o): Update dependencies.
4606
46072008-07-08 Glenn Morris <rgm@gnu.org>
4608
4609 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
4610 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
4611
46122008-07-07 Chong Yidong <cyd@stupidchicken.com>
4613
4614 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
4615 (x_set_frame_parameters): Don't bind it.
4616
46172008-07-07 Juanma Barranquero <lekktu@gmail.com>
4618
4619 * w32fns.c (map_w32_filename): Declare extern.
4620
46212008-07-07 Jason Rumney <jasonr@gnu.org>
4622
4623 * w32term.c (WS_EX_LAYERED): Define if not already.
4624
46252008-07-06 Chong Yidong <cyd@stupidchicken.com>
4626
4627 * xfaces.c (set_font_frame_param): Don't try to set the font
4628 parameter if it is still unspecified in the lface.
4629
46302008-07-05 Chong Yidong <cyd@stupidchicken.com>
4631
4632 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
4633 face if it didn't already exist.
4634
4635 * xdisp.c (try_window_id): Give up if word-wrapping is on.
4636
46372008-07-05 Andreas Schwab <schwab@suse.de>
4638
4639 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
4640
46412008-07-05 Chong Yidong <cyd@stupidchicken.com>
4642
4643 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
4644 word-wrapping.
4645 (IT_DISPLAYING_WHITESPACE): New macro.
4646 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
4647 when word-wrapping. Simplify word-wrapping logic. Use correct
4648 pixel positions when saving copies of the iterator.
4649 (display_line): Use proper wrap point if the last character on a
4650 line was preceded by whitespace.
4651
46522008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
4653
4654 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
4655
46562008-07-04 Kenichi Handa <handa@m17n.org>
4657
4658 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
4659
4660 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
4661
46622008-07-02 Jason Rumney <jasonr@gnu.org>
4663
4664 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 4665 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
4666
4667 * xdisp.c (next_element_from_display_vector): Move assignment out
4668 of if statement.
4669
46702008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
4671
4672 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
4673
4674 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
4675 (syms_of_fileio): Initialize and export them.
4676 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
4677
4678 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
4679 (Fsystem_move_file_to_trash): New function.
4680 (syms_of_w32fns): Export it to lisp.
4681
46822008-07-01 Jason Rumney <jasonr@gnu.org>
4683
4684 * w32font.c (w32font_text_extents): Don't count overhang as part
4685 of width.
4686
46872008-06-30 Miles Bader <miles@gnu.org>
4688
4689 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
4690 Add `avoid_cursor_p' field.
4691
4692 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
4693 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
4694 (append_glyph, append_composite_glyph, produce_image_glyph)
4695 (append_stretch_glyph): Initialize avoid_cursor_p.
4696 (get_it_property): Rename from `get_line_height_property'.
4697 (x_produce_glyphs): Use get_it_property.
4698 (handle_line_prefix, push_display_prop): New functions.
4699 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
4700 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
4701 New variables.
4702 (syms_of_xdisp): Initialize them.
4703
47042008-06-30 Kenichi Handa <handa@m17n.org>
4705
4706 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
4707 XftDefaultSubstitute (they are called in XftFontMatch).
4708 (xftfont_open): Fix args to ftfont_font_format.
4709
4710 * ftfont.c (fc_charset_table): New member lang.
4711 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 4712 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
4713 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
4714 (ftfont_open): Fix args to ftfont_font_format.
4715 (ftfont_font_format): New arg filename.
4716
47172008-06-30 Chong Yidong <cyd@stupidchicken.com>
4718
4719 * xfaces.c (Finternal_merge_in_global_face): If default face was
4720 modified, realize it again. Update the font face attribute.
4721
47222008-06-29 Jason Rumney <jasonr@gnu.org>
4723
4724 * w32term.c (x_set_frame_alpha): Fix logic.
4725
47262008-06-29 Kenichi Handa <handa@m17n.org>
4727
4728 * fontset.c (Finternal_char_font): Return font-object instead of
4729 font-name.
4730
4731 * composite.c (get_composition_id): Fix the width calculation for TAB.
4732
47332008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
4734
4735 * indent.c (Fvertical_motion): Properly handle float column arg.
4736
47372008-06-28 Jason Rumney <jasonr@gnu.org>
4738
4739 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
4740 (pfnSetLayeredWindowAttributes): New function pointer.
4741 (w32_initialize): Initialize it when supported.
4742 (x_set_frame_alpha): New function.
4743
4744 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
4745 (w32_frame_parm_handlers): Set alpha handler.
4746
4747 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
4748
47492008-06-27 Jason Rumney <jasonr@gnu.org>
4750
4751 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
4752 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
4753 (w32_to_x_charset, x_to_w32_charset)
4754 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4755 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4756 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4757 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4758 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4759 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4760 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
4761 (Qw32_charset_unicode): Remove.
4762 (syms_of_w32fns): Update for above changes.
4763
4764 * w32font.c (w32_to_x_charset, x_to_w32_charset)
4765 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
4766 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
4767 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
4768 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
4769 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
4770 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
4771 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
4772 (syms_of_w32font): Update for above changes.
4773
47742008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
4775
4776 * s/usg5-4.h: Fix previous change: keep the correct branch of a
4777 removed #if.
4778 (USG_SHARED_LIBRARIES): Remove duplicate definition.
4779
47802008-06-26 Juanma Barranquero <lekktu@gmail.com>
4781 Eli Zaretskii <eliz@gnu.org>
4782
4783 * makefile.w32-in (LOCAL_FLAGS):
4784 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
4785
4786 * sysdep.c (_spawnlp, _getpid):
4787 Declare with explicit _cdecl instead of _CRTAPI1.
4788
4789 * editfns.c (Fget_internal_run_time):
4790 Check for WINDOWSNT with #ifdef, not #if.
4791
47922008-06-26 Jason Rumney <jasonr@gnu.org>
4793
4794 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
4795
4796 * w32term.c (x_draw_glyph_string_foreground)
4797 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
4798 Use FONT_HANDLE macro.
4799 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
4800
4801 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4802 (uniscribe_encode_char): Use FONT_HANDLE macro.
4803
4804 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
4805 (w32font_text_extents): Use precast w32_font.
4806 (w32font_close): Free cached metrics.
4807 (w32font_open_internal): Allocate space for name on stack.
4808
48092008-06-26 Chong Yidong <cyd@stupidchicken.com>
4810
4811 * xdisp.c (extend_face_to_end_of_line): Fix last change.
4812
48132008-06-26 Jason Rumney <jasonr@gnu.org>
4814
4815 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
4816 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
4817
48182008-06-26 Juanma Barranquero <lekktu@gmail.com>
4819
4820 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
4821
48222008-06-26 Jason Rumney <jasonr@gnu.org>
4823
4824 * w32bdf.c, w32bdf.h: Remove obsolete files.
4825
4826 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
4827
4828 * w32gui.h: Don't include w32bdf.h.
4829 (XCharStruct, enum w32_char_font_type, W32FontStruct):
4830 Remove obsolete font support.
4831
4832 * w32font.h (struct w32font_info): Remove compat_w32_font.
4833 Add hfont member.
4834 (FONT_COMPAT): Remove obsolete macro.
4835
4836 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
4837 (w32font_encode_char, w32font_text_extents): Use new hfont member.
4838 (w32font_open_internal): Remove compat code. Set new hfont member.
4839 (Fx_select_font): Use new hfont member.
4840
4841 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
4842 (uniscribe_encode_char): Use new hfont member.
4843
4844 * w32term.c (x_draw_glyph_string_foreground)
4845 (x_draw_composite_glyph_string_foreground): Use new hfont member.
4846 (x_draw_glyph_string): Use metrics in w32font_info.
4847
48482008-06-26 Kenichi Handa <handa@m17n.org>
4849
4850 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
4851
48522008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
4853
4854 * unexnext.c:
4855 * m/ews4800.h:
4856 * m/hp9000s300.h:
4857 * m/ibm370aix.h:
4858 * m/mips-siemens.h:
4859 * m/ncr386.h:
4860 * m/next.h:
4861 * m/pmax.h:
4862 * m/powerpcle.h:
4863 * m/tandem-s2.h:
4864 * s/386bsd.h:
4865 * s/bsd386.h:
4866 * s/bsd4-1.h:
4867 * s/bsd4-2.h:
4868 * s/bsdos2-1.h:
4869 * s/bsdos2.h:
4870 * s/bsdos3.h:
4871 * s/bsdos4.h:
4872 * s/nextstep.h:
4873 * s/ultrix4-3.h:
4874 * s/usg5-0.h:
4875 * s/usg5-2-2.h:
4876 * s/usg5-2.h:
4877 * s/usg5-4-3.h:
4878 * s/ux4800.h:
4879 * s/uxpds.h:
4880 * s/uxpv.h: Remove support for obsolete systems.
4881 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 4882 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
4883 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
4884 Remove, insert contents in s/aix4-2.h.
4885 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
4886 * s/bsd4-3.h: Rename to ...
4887 * s/bsd-common.h: ... this.
4888 * data.c:
4889 * doc.c:
4890 * ecrt0.c:
4891 * emacs.c:
4892 * fileio.c:
4893 * floatfns.c:
4894 * keyboard.c:
4895 * mem-limits.h:
4896 * print.c:
4897 * process.c:
4898 * sysdep.c:
4899 * syssignal.h:
4900 * systty.h:
4901 * syswait.h:
4902 * term.c:
4903 * unexec.c:
4904 * unexelf.c:
4905 * unexhp9k800.c:
4906 * m/hp800.h:
4907 * m/ibmrs6000.h:
4908 * m/mips.h:
4909 * m/vax.h:
4910 * s/darwin.h:
4911 * s/freebsd.h:
4912 * s/gnu.h:
4913 * s/ms-w32.h:
4914 * s/msdos.h:
4915 * s/netbsd.h:
4916 * s/template.h: Remove references to obsolete variables.
4917
4918 * Makefile.in: Add dependencies for all unexec files.
4919 (admindir): Remove unused variable.
4920 (UNEXEC_SRC): Remove references.
4921
49222008-06-25 Chong Yidong <cyd@stupidchicken.com>
4923
4924 * xfns.c (x_default_font_parameter): If Xft is available, first
4925 try Monospace-12 for the default font.
4926
49272008-06-25 Jason Rumney <jasonr@gnu.org>
4928
4929 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
4930
49312008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
4932
4933 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
4934
4935 * buffer.c (syms_of_buffer): Remove default-word-wrap.
4936
49372008-06-25 Juanma Barranquero <lekktu@gmail.com>
4938
4939 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
4940 <scroll-conservatively>: Fix typo in docstring.
4941
4942 * xselect.c (Fx_send_client_event): Doc fix.
4943
49442008-06-25 Kenichi Handa <handa@m17n.org>
4945
4946 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
4947
4948 * font.c (font_parse_fcname): Remove unused variables.
4949 (font_sort_entites): Delete the arg SPEC. Caller changed.
4950 Fix for the case of ! best_only.
4951 (font_delete_unmatched): Check DPI and AVGWIDTH too.
4952
4953 * lisp.h (Fstring_to_unibyte): EXFUN it.
4954
4955 * character.h (str_to_unibyte): Extern it.
4956
4957 * character.c (str_to_unibyte): New function.
4958
4959 * fns.c (Fstring_to_unibyte): New function.
4960 (syms_of_fns): Defsubr it.
4961
49622008-06-24 Kenichi Handa <handa@m17n.org>
4963
4964 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
4965 DPI too.
4966 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
4967
49682008-06-24 Andreas Schwab <schwab@suse.de>
4969
4970 * Makefile.in (${lispsource}loaddefs.el): Rename from
4971 ../lisp/loaddefs.el.
4972 (bootstrap-clean): Do what distclean does but don't remove
4973 Makefile.
4974 (distclean): Depend on bootstrap-clean and remove Makefile.
4975
49762008-06-24 Chong Yidong <cyd@stupidchicken.com>
4977
4978 * buffer.h (struct buffer): New member word_wrap.
4979
4980 * buffer.c (syms_of_buffer): New variables default-word-wrap and
4981 word-wrap.
4982 (init_buffer_once): Initialize them.
4983
4984 * dispextern.h (struct it): Replace bool truncate_lines_p with a
4985 line_wrap enum possessing three possible values.
4986
4987 * termopts.h: Replace truncate_partial_width_windows with
4988 Vtruncate_partial_width_windows.
4989
4990 * dispnew.c (direct_output_for_insert): Avoid direct output when
4991 inserting a space with word wrap on.
4992
4993 * indent.c (compute_motion): Obey integer values of
4994 truncate-partial-width-windows.
4995
4996 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
4997 replacing truncate_partial_width_windows.
4998 (init_iterator): If Vtruncate_partial_width_windows is an integer,
4999 truncate only if the window width is below that integer.
5000 (start_display, resize_mini_window, produce_stretch_glyph)
5001 (display_string, move_it_in_display_line_to): Use line_wrap.
5002 (back_to_previous_visible_line_start, reseat_1): Reset
5003 string_from_display_prop_p.
5004 (display_line): Extend default face to end of line when wrapping.
5005
50062008-06-24 Kim F. Storm <storm@cua.dk>
5007
5008 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
5009 to wrap continued lines at word boundaries.
5010
50112008-06-24 Jason Rumney <jasonr@gnu.org>
5012
5013 * font.c (Ffont_face_attributes): Multiply pixel size before point
5014 conversion to avoid multiplying rounding error.
5015
50162008-06-23 Jason Rumney <jasonr@gnu.org>
5017
5018 * w32term.c (x_draw_glyph_string_background)
5019 (x_draw_glyph_string): Remove old bdf font code.
5020
5021 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
5022
50232008-06-22 Kenichi Handa <handa@m17n.org>
5024
5025 * font.c (font_find_for_lface): Try the adstyle specified in
5026 the property of LFACE_FONT of LFACE (if any).
5027
50282008-06-21 Seiji Zenitani <zenitani@mac.com>
5029 Ryo Yoshitake <ryo@shiftmode.net>
5030
5031 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
5032
50332008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
5034
5035 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
5036 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
5037 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
5038 (witness-emacs): Remove.
5039 (lisp, shortlisp): Move loaddefs.el earlier.
5040 (mostlyclean): Forget about witness-emacs.
5041
50422008-06-22 Glenn Morris <rgm@gnu.org>
5043
5044 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
5045 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
5046
50472008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5048
5049 * Makefile.in (PRECOMP): Remove.
5050 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
5051 (witness-emacs): Run `compile-first'.
5052 (.el.elc): Use the new compile-onefile target.
5053
50542008-06-21 Kenichi Handa <handa@m17n.org>
5055
5056 * xftfont.c (xftfont_open): Handle QCembolden only when
5057 FC_EMBOLDEN is defined.
5058
50592008-06-21 Andreas Schwab <schwab@suse.de>
5060
5061 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
5062 (.el.elc): Likewise.
5063
50642008-06-21 Miles Bader <miles@gnu.org>
5065
5066 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
5067 build dir, not the lisp source dir.
5068
50692008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
5070
5071 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
5072 (bootstrapclean): Remove.
5073 (.el.elc): New rule.
5074 (PRECOMP): New var.
5075 (../lisp/subdirs.el): Remove.
5076 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
5077 (witness-emacs): New target.
5078 (mostlyclean): Remove witness-emacs as well.
5079 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
5080 Add witness-emacs dependency.
5081
50822008-06-20 Chong Yidong <cyd@stupidchicken.com>
5083
5084 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
5085 defined by the font.
5086
50872008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5088
5089 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
5090 (bootstrap-clean): New target that keeps TAGS around.
5091 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
5092 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
5093
50942008-06-20 Jason Rumney <jasonr@gnu.org>
5095
5096 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
5097 Remove obsolete font code.
5098
5099 * w32font.c (font_matches_spec): Use csb bitfield from font signature
5100 to determine language support.
5101
51022008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5103
5104 * sysdep.c (cfsetspeed): New fun extracted from the code.
5105 (cfmakeraw): Move before first use.
5106
51072008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
5108
5109 * sysdep.c (cfmakeraw): Provide fallback implementation.
5110 (serial_configure): Provide fallback implementation of cfsetspeed.
5111
51122008-06-20 Kenichi Handa <handa@m17n.org>
5113
5114 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
5115 the pattern.
5116
5117 * fontset.c (fontset_from_font): Copy font_spec before changing
5118 the elements.
5119
5120 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
5121
51222008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
5123
5124 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
5125 for explicit `font' parameters.
5126
5127 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
5128
51292008-06-19 Kenichi Handa <handa@m17n.org>
5130
5131 * frame.c: Include <ctype.h>.
5132 (x_set_font_backend): Allow spacing characters in the X resource
5133 for FontBackend.
5134
51352008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
5136
5137 * w32fns.c, xfns.c (Qfont_param): New var.
5138 (syms_of_w32fns): Initialize it.
5139 (x_default_font_parameter): Record explicit `font' into
5140 `font-parameter'.
5141
51422008-06-18 Kenichi Handa <handa@m17n.org>
5143
5144 * font.c (font_parse_xlfd): Fix previous change.
5145 (font_parse_fcname): Don't use :fc-unknown-spec.
5146 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
5147 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
5148 (font_add_log): Prepend the driver name to the resulting fonts.
5149
5150 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
5151 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
5152 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
5153
5154 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
5155 (QCembolden): New variables.
5156 (syms_of_xftfont): DEFSYM them.
5157 (xftfont_open): Call XftFontMatch. Don't trust the result of
5158 XftTextExtents8 if the pixel_size is less than 5.
5159
51602008-06-18 Andreas Schwab <schwab@suse.de>
5161
5162 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
5163 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
5164
51652008-06-18 Jason Rumney <jasonr@gnu.org>
5166
5167 * w32font.c (w32font_list, w32font_match): Add logging.
5168
5169 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
5170
51712008-06-17 Chong Yidong <cyd@stupidchicken.com>
5172
5173 * font.c (font_parse_fcname): Store divider characters for
5174 unknown-spec list. For known key symbols, intern using correct
5175 symbol name.
5176
51772008-06-17 Kenichi Handa <handa@m17n.org>
5178
5179 * xfaces.c (realize_default_face): If the frame is not on window
5180 system, set the fontset of face to nil.
5181
51822008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5183
5184 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
5185
51862008-06-16 Juanma Barranquero <lekktu@gmail.com>
5187
5188 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
5189 (build_font_name_from_vector): Delete externs.
5190
5191 * xfaces.c (struct font_name): Don't declare.
5192
51932008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
5194
5195 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
5196
51972008-06-16 Chong Yidong <cyd@stupidchicken.com>
5198
5199 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
5200
52012008-06-16 Juanma Barranquero <lekktu@gmail.com>
5202
5203 * font.c (Ffont_spec): Fix usage in docstring.
5204 (Ffont_face_attributes): Doc fix.
5205
52062008-06-16 Andreas Schwab <schwab@suse.de>
5207
5208 * font.c (Ffont_face_attributes): Fix definition.
5209
52102008-06-16 Jason Rumney <jasonr@gnu.org>
5211
5212 * font.h (font_style_symbolic_from_value): Remove.
5213
5214 * font.c (font_style_symbolic_from_value): Remove.
5215 (font_style_symbolic): Revert to pre 2008-06-13 version.
5216
5217 * w32font.c (w32_to_fc_weight): New function.
5218 (w32font_full_name, logfont_to_fcname): Use it.
5219
52202008-06-16 Kenichi Handa <handa@m17n.org>
5221
5222 * font.c (font_check_object): Delete it.
5223 (font_clear_cache): Check if a font-object is alive.
5224 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
5225 font-object to nil.
5226 (font_close_object): Don't check FONT_CLOSE_OBJECT.
5227 (font_at): Don't call font_check_object.
5228 (Ffont_get): Return a symbol for :weight, :slant, and :width.
5229
52302008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
5231
5232 * puresize.h (BASE_PURESIZE): Increase to 1230000.
5233
52342008-06-16 Chong Yidong <cyd@stupidchicken.com>
5235
5236 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
5237
52382008-06-15 Chong Yidong <cyd@stupidchicken.com>
5239
5240 * font.c (font_parse_fcname): Only one decimal point.
5241 (font_unparse_fcname): Handle data in family and foundry indices
5242 as symbols, not strings.
5243 (font_unparse_gtkname, Ffont_face_attributes): New functions.
5244
5245 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
5246
5247 * font.h (font_unparse_gtkname): Add prototype.
5248
52492008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
5250
5251 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
5252
52532008-06-15 Andreas Schwab <schwab@suse.de>
5254
5255 * font.c (font_update_drivers): Fix crash when no drivers match.
5256
52572008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
5258
5259 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
5260 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
5261
52622008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
5263
5264 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
5265
52662008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
5267
5268 * process.c (Fserial_process_configure, Fprocess_send_eof):
5269 Use EQ to compare Lisp_Objects.
5270
52712008-06-13 Jason Rumney <jasonr@gnu.org>
5272
5273 * w32fns.c (Fw32_select_font): Remove old font API function.
5274
5275 * w32font.c (logfont_to_fcname): New function.
5276 (Fx_select_font): New font dialog function compatible with
5277 GTK/fontconfig version.
5278
5279 * font.c (font_style_symbolic_from_value): New function.
5280 (font_style_symbolic): Use it.
5281
5282 * font.h (font_style_symbolic_from_value): Declare new function.
5283
52842008-06-13 Juanma Barranquero <lekktu@gmail.com>
5285
5286 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
5287 <font-width-table>: Fix typos in docstrings.
5288
52892008-06-13 Daniel Engeler <engeler@gmail.com>
5290
5291 These changes add serial port access.
5292 * process.c: Add HAVE_SERIAL.
5293 (Fdelete_process, Fprocess_status, Fset_process_buffer)
5294 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
5295 (list_processes_1, select_wrapper, Fstop_process)
5296 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
5297 (status_notify): Modify to handle serial processes.
5298 [HAVE_SERIAL] (Fserial_process_configure)
5299 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
5300 New functions.
5301 * process.h (struct Lisp_Process): Add `type'.
5302 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
5303 New functions.
5304 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
5305 serial ports.
5306 (serial_open, serial_configure) New functions.
5307 * w32.h: Add FILE_SERIAL.
5308 (struct _child_process): Add ovl_read, ovl_write.
5309
53102008-06-13 Kenichi Handa <handa@m17n.org>
5311
5312 * dispextern.h (enum lface_attribute_index): New member
5313 LFACE_FOUNDRY_INDEX.
5314
5315 * font.c (font_score): Delete arg alternate_families. Check only
5316 weight, slant, width, and size. Ignore the difference of alias
5317 style symbols.
5318 (font_sort_entites): Adjust for the above change. Reflect the
5319 order of font-driver to scores.
5320 (font_list_entities): Don't check alternate_familes here.
5321 (font_clear_prop): Handle foundry.
5322 (font_update_lface): Don't parse "foundry-family" form here.
5323 Handle FONT_FOUNDRY_INDEX.
5324 (font_find_for_lface): Likewise. Handle alternate families here.
5325 If registry is nil, try iso8859-1 and ascii-0.
5326 (font_open_for_lface): Pay attention to size in ENTITY.
5327 (font_open_by_name): Simplify by calling font_load_for_lface.
5328 (free_font_driver_list): Delete it.
5329 (font_update_drivers): Preserve the order of backends.
5330 (syms_of_font): Setting of sort_shift_bits adjusted for the change
5331 of font_score and font_sort_entites.
5332 (font_update_sort_order): Likewise.
5333
5334 * xfaces.c (LFACE_FOUNDRY): New macro.
5335 (check_lface_attrs): Check foundry.
5336 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
5337 (merge_face_vectors): Check foundry.
5338 (merge_face_ref): Likewise.
5339 (Finternal_set_lisp_face_attribute): Likewise.
5340 (x_update_menu_appearance): Likewise.
5341 (Finternal_get_lisp_face_attribute): Likewise.
5342 (lface_hash): Likewise.
5343 (lface_same_font_attributes_p): Likewise.
5344 (x_supports_face_attributes_p): Likewise.
5345 (tty_supports_face_attributes_p): Likewise.
5346 (Finternal_set_alternative_font_family_alist): Intern strings.
5347 (Finternal_set_alternative_font_registry_alist): Downcase strings.
5348 (realize_default_face): Set LFACE_FOUNDRY (lface).
5349
5350 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
5351 font-driver at first.
5352
5353 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
5354
53552008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
5356
5357 * lread.c (Fload): Use xfree, not free on saved_doc_string.
5358
53592008-06-12 Jim Meyering <meyering@redhat.com>
5360
5361 Make unexec_free handle NULL the same way free does.
5362 * unexmacosx.c (unexec_free): Ignore a NULL argument.
5363
53642008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
5365
5366 * character.h (CHAR_TO_BYTE_SAFE): New macro.
5367 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
5368 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
5369 (WEAK_ALIAS): Simplify.
5370 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
5371 when searching a unibyte buffer.
5372
53732008-06-12 Chong Yidong <cyd@stupidchicken.com>
5374
5375 * xfns.c (Fx_select_font): Rename from x-font-dialog.
5376
53772008-06-12 Juanma Barranquero <lekktu@gmail.com>
5378
5379 * w32font.c: Include ctype.h.
5380
53812008-06-11 Jason Rumney <jasonr@gnu.org>
5382
5383 * w32font.c (w32font_encode_char): Detect missing glyphs that are
5384 misreported as space.
5385 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
5386 as aliases for registry iso10646-1.
5387
53882008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
5389
5390 * buffer.c (clone_per_buffer_values): Skip `name'.
5391
53922008-06-11 Chong Yidong <cyd@stupidchicken.com>
5393
5394 * font.c (font_parse_fcname): Fix last change; accept decimal
5395 points in font size.
5396
53972008-06-10 Jason Rumney <jasonr@gnu.org>
5398
5399 * w32uniscribe.c (add_opentype_font_name_to_list):
5400 Skip non unicode fonts.
5401
54022008-06-10 Chong Yidong <cyd@stupidchicken.com>
5403
5404 * xfns.c (Fx_font_dialog): New function.
5405
5406 * gtkutil.c (xg_dialog_response_cb): Rename from
5407 xg_file_response_callback.
5408 (pop_down_dialog): Rename from pop_down_file_dialog.
5409 (xg_get_file_name): Callers changed.
5410 (xg_get_font_name): New function.
5411
5412 * gtkutil.h (xg_get_font_name): Insert prototype.
5413
54142008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5415
5416 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
5417 x_underline_minimum_display_offset.
5418 (syms_of_xdisp): Declare it here rather than in xterm.c.
5419 * dispextern.h (underline_minimum_offset): Declare it.
5420 * w32term.c (x_draw_glyph_string): Use it.
5421 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
5422 (syms_of_xterm): Don't declare it any more.
5423 (x_draw_glyph_string): Adjust to the new name.
5424
54252008-06-10 David De La Harpe Golden <david@harpegolden.net> (tiny change)
5426
5427 * xterm.c (x_underline_minimum_display_offset): New var.
5428 (x_draw_glyph_string): Use it.
5429 (syms_of_xterm): Declare it.
5430
54312008-06-10 Chong Yidong <cyd@stupidchicken.com>
5432
5433 * font.c (font_parse_fcname): Accept GTK-style font names too.
5434
54352008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
5436
5437 * dired.c (file_name_completion): Don't return t if the match is exact
5438 but with different capitalization.
5439 * minibuf.c (Ftry_completion): Simplify.
5440
5441 * window.c (Vwindow_point_insertion_type): New var.
5442 (set_window_buffer): Use it.
5443 (syms_of_window): Init and export it to Lisp.
5444
54452008-06-10 Kenichi Handa <handa@m17n.org>
5446
5447 * font.h (font_intern_prop): Prototype adjusted.
5448
5449 * font.c (font_intern_prop): New arg force_symbol.
5450 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
5451 Adjust for the change of font_intern_prop.
5452
5453 * ftfont.c (ftfont_pattern_entity):
5454 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
5455 (w32_registry):
5456 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
5457 the change of font_intern_prop.
5458
54592008-06-09 Juanma Barranquero <lekktu@gmail.com>
5460
5461 * w32menu.c (digest_single_submenu): Declare extern.
5462
54632008-06-09 Jason Rumney <jasonr@gnu.org>
5464
5465 * w32term.c (x_make_frame_visible): Use alternate restore flags.
5466
5467 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
5468 (parse_single_submenu): Remove.
5469 (digest_single_submenu): Remove.
5470 (syms_of_w32menu): Don't initialise variables that have moved
5471 to menu.c.
5472 (set_frame_menubar): Sync with version in xmenu.c.
5473 (w32_menu_show): Sync with xmenu_show in xmenu.c.
5474
5475 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
5476 Make static again.
5477
54782008-06-09 Jason Rumney <jasonr@gnu.org>
5479
5480 Changes to w32 files related to the move of common menu code
5481 to menu.c on 2008-06-08 by Chong Yidong.
5482
5483 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
5484 defs to w32gui.h.
5485 (single_keymap_panes, push_menu_item, push_menu_pane):
5486 Make globally visible.
5487
5488 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
5489 (local_free, malloc_widget_value, free_widget_value)
5490 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
5491 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
5492 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
5493 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
5494 (menu_items, menu_items_allocated, menu_items_used)
5495 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
5496 (init_menu_items, finish_menu_items, discard_menu_items)
5497 (grow_menu_items, push_submenu_start, push_submenu_end)
5498 (push_left_right_boundary, push_menu_pane, push_menu_item)
5499 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
5500 (free_menubar_widget_tree_value, parse_single_submenu)
5501 (update_submenu_strings): Remove functions.
5502 (xmalloc_widget_value): Remove and declare extern.
5503
5504 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
5505 (OBJ1): Build it.
5506
5507 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
5508 (local_heap, local_alloc, local_free, malloc_widget_value)
5509 (free_widget_value): Define here.
5510
55112008-06-09 Kenichi Handa <handa@m17n.org>
5512
5513 * font.h (Qascii_0): Extern it.
5514
5515 * font.c (Qascii_0): New variable.
5516 (syms_of_font): DEFSYM it.
5517 (font_open_by_name): If the registry "iso8859-1" fails, try also
5518 "ascii-0".
5519
5520 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
5521
55222008-06-08 Kenichi Handa <handa@m17n.org>
5523
5524 * .gdbinit (xfont): New command.
5525
55262008-06-08 Andreas Schwab <schwab@suse.de>
5527
5528 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
5529 * Makefile.in (menu.o): Update dependencies.
5530
5531 * Makefile.in (obj): Always add menu.o.
5532 * emacs.c (main): Always call syms_of_menu.
5533 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
5534
55352008-06-08 Chong Yidong <cyd@stupidchicken.com>
5536
5537 * Makefile.in: Compile menu.c.
5538
5539 * lisp.h: Declare syms_of_menu.
5540
5541 * emacs.c (main): Call syms_of_menu.
5542
5543 * keyboard.h: Relocate platform-independent menu definitions from
5544 xmenu.c.
5545
5546 * menu.c: New file. Relocate platform-independent menu
5547 definitions from xmenu.c. Suggested by Adrian Robert.
5548
5549 * xmenu.c: Remove platform-independent menu definitions.
5550 (menu_items menu_items_inuse, menu_items_allocated)
5551 (menu_items_used, menu_items_n_panes)
5552 (menu_items_submenu_depth): Move to keyboard.h.
5553 (init_menu_items, finish_menu_items, unuse_menu_items)
5554 (discard_menu_items, restore_menu_items, save_menu_items)
5555 (grow_menu_items, push_submenu_start, push_submenu_end)
5556 (push_left_right_boundary, push_menu_pane, push_menu_item)
5557 (keymap_panes, single_keymap_panes, single_menu_item)
5558 (list_of_panes, list_of_items, find_and_call_menu_selection)
5559 (xmalloc_widget_value, free_menubar_widget_value_tree)
5560 (parse_single_submenu, digest_single_submenu)
5561 (update_submenu_strings): Move to menu.c.
5562
55632008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
5564
5565 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
5566
55672008-06-06 Miles Bader <miles@gnu.org>
5568
5569 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
5570 face, not frame default.
5571
55722008-06-05 Martin Rudalics <rudalics@gmx.at>
5573
5574 * window.c (pop_up_windows, pop_up_frames)
5575 (display_buffer_reuse_frames, Vpop_up_frame_function)
5576 (Vdisplay_buffer_function, Veven_window_heights)
5577 (Vspecial_display_buffer_names, Vspecial_display_regexps)
5578 (Vspecial_display_function, Vsame_window_buffer_names)
5579 (Vsame_window_regexps, split_height_threshold)
5580 (Vsplit_window_preferred_function): Move those vars to window.el.
5581 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
5582 (Fdisplay_buffer): Move those functions to window.el.
5583 (syms_of_window): Remove corresponding declarations.
5584 (display_buffer): New function.
5585 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
5586 * dispnew.c (Flast_nonminibuf_frame): New function.
5587 * buffer.c (Fpop_to_buffer): Move to window.el.
5588
55892008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5590
5591 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
5592
55932008-06-05 Kenichi Handa <handa@m17n.org>
5594
5595 * coding.c (detect_coding): Fix previous change.
5596 (detect_coding_system): Likewise.
5597
55982008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5599
5600 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
5601
5602 * keymap.c (Vminibuffer_local_filename_must_match_map):
5603 Rename from Vminibuffer_local_must_match_filename_map.
5604 (syms_of_keymap):
5605 * minibuf.c (Fcompleting_read): Adjust accordingly.
5606 * commands.h: Rename declaration as well.
5607
56082008-06-05 Kenichi Handa <handa@m17n.org>
5609
5610 * font.c (Ffont_spec): Don't use font_parse_family_registry for
5611 family name.
5612 (Ffont_put): Likewise.
5613
5614 * fontset.c (fontset_find_font): Call font_open_for_lface with the
5615 current font-spec.
5616
5617 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
5618 is unspecified.
5619
5620 * xfaces.c (realize_x_face): If the font-related face attributes
5621 are the same as those of default face, realize a new fontset from
5622 default->fontset.
5623 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
5624
56252008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
5626
5627 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
5628 (move_it_in_display_line): New wrapper.
5629
5630 * window.c (window_scroll_pixel_based_preserve_x)
5631 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
5632 (window_scroll_pixel_based, window_scroll_line_based):
5633 Use them to preserve column positions.
5634 (syms_of_window): Initialize them.
5635
5636 * indent.c (Fvertical_motion): Extend first arg to allow passing an
5637 (HPOS . VPOS) pair.
5638
5639 * dispextern.h (move_it_in_display_line): Declare.
5640
56412008-06-05 Juanma Barranquero <lekktu@gmail.com>
5642
5643 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
5644 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
5645 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
5646
56472008-06-04 Juanma Barranquero <lekktu@gmail.com>
5648
5649 * window.c (Fset_window_parameter): Doc fix.
5650 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
5651
56522008-06-04 Joakim Verona <joakim@verona.se>
5653
5654 * window.h (struct window): Add new member window_parameters.
5655
5656 * window.c (Fwindow_parameters, Fwindow_parameter)
5657 (Fset_window_parameter): New defuns.
5658 (syms_of_window): Defsubr the new defuns.
5659 (make_window): Initialize window_parameters to nil.
5660
56612008-06-04 John Paul Wallington <jpw@pobox.com>
5662
5663 * eval.c (Fdefmacro): Doc fix.
5664
56652008-06-04 Kenichi Handa <handa@m17n.org>
5666
5667 * coding.c (detect_coding): Fix handling of coding->head_ascii.
5668 Be sure to call setup_coding_system when we find a proper coding system.
5669 (detect_coding_system): Fix handling of coding->head_ascii.
5670
56712008-06-03 Andreas Schwab <schwab@suse.de>
5672
5673 * font.c (font_prop_validate_spacing): Fix last change.
5674
56752008-06-03 Kenichi Handa <handa@m17n.org>
5676
5677 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
5678 (font_parse_fcname): Fix handling of unknown key.
5679
5680 * xfont.c (xfont_list): Try an alias.
5681
5682 * charset.c (char_charset): Return NULL if the arg charset_list is
5683 specified and C doesn't belong to any of them.
5684
56852008-06-02 Chip Coldwell <coldwell@redhat.com>
5686
5687 * font.c (font_pixel_size): Don't take cdr of an integer.
5688
56892008-06-02 Jim Meyering <meyering@redhat.com>
5690
5691 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
5692 * alloc.c (xfree): Return right away for a NULL arg.
5693 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
5694 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
5695 * mac.c (create_apple_event_from_event_ref): Likewise.
5696 (create_apple_event_from_drag_ref, cfstring_create_normalized):
5697 Likewise.
5698 * doprnt.c (doprnt1): Likewise.
5699 * frame.c (frame): Likewise.
5700 * keyboard.c (wipe_kboard): Likewise.
5701 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
5702 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
5703 * term.c (tty_default_color_capabilities, maybe_fatal)
5704 (delete_tty): Likewise.
5705 * w16select.c (string): Likewise.
5706 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
5707 * w32bdf.c (w32_free_bdf_font): Likewise.
5708 * w32fns.c (w32_unload_font): Likewise.
5709 * w32font.c (w32font_close): Likewise.
5710 * window.c (size_window): Likewise.
5711 * xselect.c (receive_incremental_selection): Likewise.
5712 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
5713 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
5714 * w32.c (stat): Likewise.
5715
5716 Remove useless if-before-free tests.
5717 * editfns.c (Fset_time_zone_rule): Likewise.
5718 * lread.c (nosuffix): Likewise.
5719 * ralloc.c (get_bloc): Likewise.
5720 * regex.c (reg_free): Likewise.
5721 * xftfont.c (xftfont_open, xftfont_close): Likewise.
5722 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
5723 * xsmfns.c (smc_save_yourself_CB): Likewise.
5724
57252008-06-02 Kenichi Handa <handa@m17n.org>
5726
5727 * font.c (font_find_for_lface): Handle float font size.
5728 (font_open_for_lface): Likewise.
5729
5730 * xfaces.c (x_supports_face_attributes_p): Check face->font before
5731 comparing the properties.
5732
57332008-06-01 Jason Rumney <jasonr@gnu.org>
5734
5735 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
5736 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
5737 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
5738 Don't add empty script list.
5739 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
5740
57412008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * Makefile.in (dot, dotdot): Remove, update users.
5744 ".." has been used elsewhere in the file for a long time.
5745 (LIBXT_STATIC): Remove conditional based on unused variable.
5746
57472008-06-01 Miles Bader <miles@gnu.org>
5748
5749 * xfaces.c (Vface_remapping_alist): New variable.
5750 (syms_of_xfaces): Initialize it.
5751 (enum named_merge_point_kind): New type.
5752 (struct named_merge_point): Add `named_merge_point_kind' field.
5753 (push_named_merge_point): Make cycle detection respect different
5754 named-merge-point kinds.
5755 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
5756 Remove face-name alias resolution.
5757 (lface_from_face_name): New definition using
5758 `lface_from_face_name_no_resolve'.
5759 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
5760 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
5761 (get_lface_attributes): New definition that layers face-remapping on
5762 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
5763 (lookup_basic_face): New function.
5764 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
5765 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
5766 `get_lface_attributes'.
5767 (face_at_buffer_position): Use `lookup_basic_face' to lookup
5768 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
5769 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
5770
5771 * xdisp.c (init_iterator): Pass base_face_id through
5772 `lookup_basic_face' when we actually use it as a face-id.
5773 (handle_single_display_prop): Use `lookup_basic_face' to lookup
5774 DEFAULT_FACE_ID.
5775
5776 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
5777 lookup the initial face-id.
5778
5779 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
5780
57812008-06-01 Juanma Barranquero <lekktu@gmail.com>
5782
5783 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
5784 (Fremove_text_properties): Fix typos in docstrings.
5785
57862008-05-31 Kenichi Handa <handa@m17n.org>
5787
5788 * font.c (font_list_entities): Fix the car part of data to be
5789 stored in the cache.
5790
5791 * ftfont.c (ftfont_font_format): Don't use strcasestr.
5792
57932008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5794
5795 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
5796 Add a `test' argument so another predicate than `equal' can be used.
5797 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
5798 (map_char_table): Remove unused vars `c' and `i'.
5799 * lisp.h (Foptimize_char_table): Adjust declaration.
5800 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
5801
58022008-05-30 Kenichi Handa <handa@m17n.org>
5803
5804 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
5805 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
5806 defined.
5807
58082008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
5809
5810 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
5811 (Fmake_variable_frame_local): Disallow mixing buffer-local and
5812 frame-local settings for the same variable.
5813
58142008-05-30 Kenichi Handa <handa@m17n.org>
5815
5816 * fontset.c (Ffont_info): Move to font.c.
5817 (syms_of_fontset): Delete defsubr of Sfont_info.
5818
5819 * font.c (font_style_to_value, font_score): Delete casting of the
5820 args to xstcasecmp.
5821 (register_font_driver): Increment num_font_drivers only when
5822 registering the driver globally.
5823 (Ffont_info): Move from fontset.c. Handle a font object too.
5824 (syms_of_font): Defsubr Sfont_info.
5825
58262008-05-29 Kenichi Handa <handa@m17n.org>
5827
5828 * coding.h (enum define_coding_utf8_arg_index): New enum.
5829 (enum coding_attr_index): Change coding_attr_utf_16_bom to
5830 coding_attr_utf_bom.
5831 (enum utf_bom_type): Rename from utf_16_bom_type.
5832 (struct utf_16_spec): Adjust for the above change.
5833 (struct coding_system): Add utf_8_bom in `spec' union.
5834
5835 * coding.c (CODING_UTF_8_BOM): New macro.
5836 (enum coding_category): Delete coding_category_utf_8, add
5837 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
5838 coding_category_utf_8_sig.
5839 (CATEGORY_MASK_UTF_8): Delete it.
5840 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
5841 (CATEGORY_MASK_UTF_8_SIG): New macros.
5842 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
5843 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
5844 CATEGORY_MASK_UTF_8_SIG.
5845 (CATEGORY_MASK_UTF_8): New macro.
5846 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
5847 (detect_coding_utf_8): Check BOM.
5848 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
5849 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
5850 (encode_coding_utf_16): Likewise.
5851 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
5852 (detect_coding, detect_coding_system): Handle utf-8-auto.
5853 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
5854 (syms_of_coding): Fix setting up of Vcoding_category_table.
5855
58562008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
5857
5858 * process.c (Faccept_process_output): If `millisec' is non-nil,
5859 `seconds' default to 0.
5860 (wait_reading_process_output): Also return non-nil if we read output
5861 from a non-running process.
5862
58632008-05-29 Jason Rumney <jasonr@gnu.org>
5864
5865 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
5866 `raster' specified.
5867 (add_font_entity_to_list): Allow non-opentype truetype fonts back
5868 in the uniscribe backend, but disallow any font that has no
5869 unicode subrange support.
5870
58712008-05-29 Juanma Barranquero <lekktu@gmail.com>
5872
5873 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
5874 Fix typos in docstrings.
5875
58762008-05-29 Kenichi Handa <handa@m17n.org>
5877
5878 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
5879 (Fx_family_fonts): Set frame correctly.
5880
58812008-05-28 Jason Rumney <jasonr@gnu.org>
5882
5883 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
5884
58852008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
5886
5887 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
5888 calling build_annotations.
5889
58902008-05-28 Juanma Barranquero <lekktu@gmail.com>
5891
5892 * coding.c (Fdecode_coding_region, Fencode_coding_region)
5893 (Fencode_coding_string):
5894 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
5895 <latin-extra-code-table>: Fix typos in docstrings.
5896 (syms_of_coding) <coding-system-alist>: Doc fix.
5897 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
5898
58992008-05-28 Kenichi Handa <handa@m17n.org>
5900
5901 * fontset.c (Ffont_info): Don't call font_close_object.
5902
5903 * font.c (font_parse_family_registry): Use Ffont_put to validate
5904 foundry and family.
5905 (font_delete_unmatched): Don't check spacing.
5906 (font_list_entities): Add spacing to the spec to list fonts.
5907
5908 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
5909 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
5910
5911 * coding.c (encode_coding_raw_text): Fix previous change.
5912 (encode_coding_object): When the dst_object is a buffer and is
5913 different from src_object, move gap to PT.
5914
59152008-05-27 Chong Yidong <cyd@stupidchicken.com>
5916
5917 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
5918
59192008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5920
5921 * coding.c (encode_coding_raw_text): Set coding->produced_char for
5922 all branches. Compute it differently.
5923
5924 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
5925
59262008-05-27 Juanma Barranquero <lekktu@gmail.com>
5927
5928 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
5929 into "else if () ... else ...".
5930
59312008-05-27 Jason Rumney <jasonr@gnu.org>
5932
5933 * w32font.c (w32font_open_internal): Determine if glyph indices
5934 are likely to work here.
5935
59362008-05-27 Chong Yidong <cyd@stupidchicken.com>
5937
5938 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
5939 draw overlap glyphs with appropriate highlighting.
5940
59412008-05-27 Kenichi Handa <handa@m17n.org>
5942
5943 * xfont.c (xfont_open): Fix calculation of font->average_width.
5944
59452008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
5946
5947 * casefiddle.c (casify_object): Try to guess better whether the
5948 argument is a byte or a char.
5949
59502008-05-26 Andreas Schwab <schwab@suse.de>
5951
5952 * xselect.c (x_reply_selection_request): Properly handle format == 32.
5953 Always send multiples of format size.
5954
5955 * xterm.c (x_set_frame_alpha): Fix type mismatch.
5956
59572008-05-26 Jason Rumney <jasonr@gnu.org>
5958
5959 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
5960 (compute_metrics): Don't set failure if we just cleared the cache.
5961 (w32_weight_table): Remove unused variable.
5962 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
5963 backwards compatibility.
5964
59652008-05-25 Kenichi Handa <handa@m17n.org>
5966
5967 * w32term.c (x_draw_glyph_string):
5968 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
5969
5970 * xfaces.c: Delete unused function prototypes.
5971 (xstrlwr, font_frame): Delete them.
5972 (clear_face_cache): Delete unused variable.
5973
5974 * xftfont.c (xftfont_open): Delete unused variable.
5975 If underline_thickness is not 1, adjust underline_position.
5976
5977 * ftxfont.c (ftxfont_open): Delete unused variable.
5978
5979 * fontset.c (face_for_char): Optimize for the case of no charset
5980 property.
5981
5982 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
5983 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
5984 (otf_open, font_otf_capability, generate_otf_features)
5985 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
5986 Comment out by surrounding "#if 0" and "#endif" for the moment.
5987 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
5988 (syms_of_font): Codes for accessing above commented out.
5989
59902008-05-24 Eli Zaretskii <eliz@gnu.org>
5991
5992 * w32proc.c: Include dispextern.h.
5993
5994 * w32.c: Include dispextern.h.
5995
59962008-05-23 Juanma Barranquero <lekktu@gmail.com>
5997
5998 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
5999 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
6000 Fix typos in docstrings.
6001
60022008-05-23 Jason Rumney <jasonr@gnu.org>
6003
6004 * xsmfns.c: Remove includes that are already included by config.h.
6005
60062008-05-23 Kenichi Handa <handa@m17n.org>
6007
6008 * charset.c (Qemacs, charset_emacs): New variables.
6009 (char_charset): Fix for non-Unicode characters.
6010 (syms_of_charset): Define charset_emacs.
6011
6012 * w32term.c (x_draw_glyph_string): Be sure to update
6013 s->underline_thickness and s->underline_position. Be sure to draw
6014 underline within the current line area.
6015
6016 * xterm.c (x_draw_glyph_string): Be sure to update
6017 s->underline_thickness and s->underline_position. Be sure to draw
6018 underline within the current line area.
6019
6020 * fontset.c: Delete unused variables and add casting for char *
6021 throughout the file.
6022 (fontset_font): Try the fallback fonts of the current fontset
6023 before consulting the default fontset.
6024
6025 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
6026
6027 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
6028
60292008-05-22 Jason Rumney <jasonr@gnu.org>
6030
6031 * font.c: Don't include strings.h.
6032
6033 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
6034
6035 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
6036 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
6037 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
6038 to call xstrcasecmp.
6039
6040 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
6041
6042 * fontset.c (fs_query_fontset): Use xstrcasecmp.
6043
6044 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
6045
6046 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
6047
60482008-05-22 Kenichi Handa <handa@m17n.org>
6049
6050 * puresize.h (BASE_PURESIZE): Increase to 1220000.
6051
6052 * font.c (font_prop_validate_style): Adjust for the format
6053 change of font_style_table.
6054
6055 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
6056 two args.
6057
6058 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
6059 two args.
6060
60612008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
6062
6063 * minibuf.c (keys_of_minibuf): Delete.
6064 * lisp.h (keys_of_minibuf): Delete.
6065 * emacs.c (main): Don't call keys_of_minibuf.
6066
60672008-05-22 Kenichi Handa <handa@m17n.org>
6068
6069 * ftfont.c (ftfont_resolve_generic_family): Rename from
6070 ftfont_list_generic_family. Return a single family for each
6071 generic family.
6072 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
6073 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
6074 Call font_add_log.
6075 (ftfont_match): Call font_add_log.
6076
6077 * font.h (Ffont_xlfd_name): EXFUN adjusted.
6078 (FONT_DEBUG): Define it.
6079 (font_add_log): Extern it.
6080 (font_assert): Rename from xassert.
6081
6082 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
6083 (xfont_list_family): Call font_add_log.
6084 (xfont_match): Likewise.
6085 (memq_no_quit): Delete.
6086
6087 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
6088 call of Ffont_xlfd_name.
6089
6090 * xfaces.c (struct table_entry, slant_table, weight_table)
6091 (swidth_table): Move to font.c.
6092
6093 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
6094 xassert are changed to font_assert. Delete many unused variables.
6095 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
6096 New variables.
6097 (struct table_entry): Move from xfaces.c and modified.
6098 (weight_table, slant_table, width_table): Move from xfaces.c and
6099 contents adjusted for the change of struct table_entry.
6100 (font_style_to_value, font_style_symbolic): Adjust for the
6101 format change of font_style_table.
6102 (font_parse_family_registry): Don't overwrite existing foundry and
6103 family of font_spec.
6104 (font_score): Fix calculation of diff for sizes.
6105 (font_sort_entites): Call font_add_log.
6106 (font_delete_unmatched): Return a newly created list.
6107 (font_list_entities): Fix previous change. Call font_add_log.
6108 (font_matching_entity, font_open_entity, font_close_entity):
6109 Call font_add_log.
6110 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
6111 (Finternal_set_font_style_table): Delete.
6112 (BUILD_STYLE_TABLE): New macro.
6113 (build_style_table): New function.
6114 (Vfont_log, font_log_env_checked): New variables.
6115 (font_add_log): New function.
6116 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
6117 Declare Lisp variables "font-weight-table", "font-slant-table",
6118 "font-width-table", and "font-log". Initialize font_style_table.
6119
61202008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
6121
6122 * xterm.c (x_set_frame_alpha): Move declarations before statements.
6123
61242008-05-21 Seiji Zenitani <zenitani@mac.com>
6125 Ryo Yoshitake <ryo@shiftmode.net>
6126
6127 * frame.c (Qalpha): Add a new frame parameter `alpha'.
6128 (Vframe_alpha_lower_limit): New variable.
6129 (x_set_alpha): New function.
6130
6131 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
6132
6133 * xfns.c (x-create-frame, Qalpha):
6134 Initialize the frame parameter `alpha'.
6135 * xterm.c (OPAQUE, OPACITY): New.
6136 (x_set_frame_alpha): New function.
6137 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
6138
6139 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
6140 * w32fns.c (w32_frame_parm_handlers): Likewise.
6141
61422008-05-20 Jason Rumney <jasonr@gnu.org>
6143
6144 * w32font.c (add_font_entity_to_list): Don't add non-opentype
6145 truetype fonts to opentype list.
6146
61472008-05-20 Juanma Barranquero <lekktu@gmail.com>
6148
6149 * fontset.c (Ffontset_info): Doc fix.
6150 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
6151 <ignore-relative-composition>: Fix typos in docstrings.
6152
6153 * font.c (syms-of-font) <font-encoding-alist>:
6154 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
6155 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
6156 (Ffont_otf_alternates): Doc fixes.
6157
61582008-05-20 Kenichi Handa <handa@m17n.org>
6159
6160 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
6161 font.h through out the file.
6162 (FONT_DRIVERS): Rename from FONTOBJ.
6163 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
6164 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
6165
6166 * emacs.c (main): Call syms_of_font unconditionally.
6167
6168 * font.h (find_font_encoding): Extern it.
6169
6170 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
6171 fontset.c.
6172 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1.
6173 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
6174 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
6175 only when HAVE_WINDOW_SYSTEM is defined.
6176 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
6177 when HAVE_WINDOW_SYSTEM is defined.
6178
6179 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
6180 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
6181
6182 * xfaces.c: Include font.h unconditionally.
6183 (merge_face_ref, merge_face_vectors)
6184 (Finternal_set_lisp_face_attribute): Cancel the previous change.
6185
61862008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
6187
6188 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
6189 indirect_variable.
6190 * eval.c (lisp_indirect_variable): New fun.
6191 (Fuser_variable_p): Use it.
6192
61932008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
6194
6195 * lisp.h (indirect_variable):
6196 * data.c (indirect_variable, let_shadows_buffer_binding_p):
6197 Use Lisp_Symbol pointers rather than Lisp_Object.
6198 Adjust callers.
6199 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
6200 To this end, change calling-convention.
6201
6202 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
6203 if some non-hidden buffers are selected by string&pred.
6204
62052008-05-19 Chong Yidong <cyd@stupidchicken.com>
6206
6207 * process.c (wait_reading_process_output): Always check status
6208 when in batch mode.
6209
62102008-05-19 Kenichi Handa <handa@m17n.org>
6211
6212 * font.c (font_list_entities): Fix handling of cache.
6213 (font_matching_entity): Likewise.
6214
6215 * ftfont.c (cs_iso8859_1): Delete.
6216 (ft_face_cache): New variable.
6217 (struct ftfont_info): New member fc_charset_idx.
6218 (ftfont_build_basic_charsets): Delete.
6219 (fc_charset_table): New variable.
6220 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
6221 . FC_CHARSET_IDX) as :font-entity property in the font entity.
6222 Callers changed.
6223 (ftfont_lookup_cache, ftfont_get_charset): New functions.
6224 (ftfont_spec_pattern): New argument fc_charset_idx.
6225 Check registry more rigidly. Change callers.
6226 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
6227 change of :font-entity property of the font.
6228
6229 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
6230 property of the font.
6231
62322008-05-18 Juanma Barranquero <lekktu@gmail.com>
6233
6234 * coding.c (Fcoding_system_p): Rename argument to match docstring.
6235 (Funencodable_char_position, Fcheck_coding_systems_region)
6236 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
6237 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
6238 (Ffind_operation_coding_system, Fset_coding_system_priority)
6239 (Fcoding_system_eol_type): Doc fixes.
6240
62412008-05-17 Glenn Morris <rgm@gnu.org>
6242
6243 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
6244
62452008-05-16 Eli Zaretskii <eliz@gnu.org>
6246
6247 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
6248 and st_gid.
6249
6250 * frame.c (Fdelete_frame): Don't call font_update_drivers if
6251 HAVE_WINDOW_SYSTEM is not defined.
6252
6253 * xfaces.c (merge_face_ref, merge_face_vectors)
6254 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
6255 HAVE_WINDOW_SYSTEM is defined.
6256 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
6257
62582008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
6259
6260 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
6261
62622008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6263
6264 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
6265
62662008-05-15 Kenichi Handa <handa@m17n.org>
6267
6268 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
6269 preference.
6270
62712008-05-15 Glenn Morris <rgm@gnu.org>
6272
6273 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
6274
62752008-05-15 Chong Yidong <cyd@stupidchicken.com>
6276
6277 * fns.c (init_fns): Don't initialize weak_hash_tables here.
6278 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
6279
6280 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
6281
62822008-05-15 Kenichi Handa <handa@m17n.org>
6283
6284 * ftfont.c (ftfont_list): Downcase family name to check generic
6285 families.
6286
6287 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
6288 font-spec for QCfont value.
6289
6290 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
6291 buffer. Check the return value of it.
6292
62932008-05-14 Jason Rumney <jasonr@gnu.org>
6294
6295 * w32term.c (w32_get_glyph_overhangs): Remove.
6296 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
6297
62982008-05-14 Kenichi Handa <handa@m17n.org>
6299
6300 * font.c (font_prop_validate): Make nil a valid value.
6301 (font_clear_cache): Check if the cached vector of entities is nil
6302 or not.
6303
63042008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6305
6306 * emacs.c (main_thread): Conditionalize on
6307 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6308 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
6309
6310 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
6311 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
6312 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
6313
63142008-05-14 Kenichi Handa <handa@m17n.org>
6315
6316 * coding.c (detect_coding_iso_2022): Ignore a coding category that
6317 has no corresponding coding system.
6318
63192008-05-14 Jason Rumney <jasonr@gnu.org>
6320
6321 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
6322
6323 * w32font.h (w32font_open_internal): Update declaration.
6324
6325 * w32font.c (w32font_open_internal): Change last argument from
6326 w32font_info struct to font object. Fill in font object from
6327 font_entity. Get Outline metrics if possible. Use them to
6328 calculate underline position and thickness. Use xlfd name as name
6329 property. Don't set codepage.
6330 (w32font_open): Pass font_object to w32font_open_internal. Don't
6331 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
6332 (w32font_draw): Use s->font.
6333 (clear_cached_metrics): Don't clear non-existent blocks.
6334
6335 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
6336 font was not found.
6337 (x_draw_glyph_string): Use underline position and thickness from font.
6338
6339 * w32uniscribe.c (uniscribe_open): Pass font_object to
6340 w32font_open_internal.
6341
63422008-05-14 Kenichi Handa <handa@m17n.org>
6343
6344 These changes are to delete all legacy font-handling codes, and
6345 make Emacs use only font-backends.
6346
6347 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
6348 (frame.o, image.o, print.o): Depend on $(FONTSRC).
6349
6350 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
6351
6352 * charset.h (Vcharset_non_preferred_head)
6353 (Vcurrent_iso639_language): Extern them.
6354
6355 * charset.c (Vcharset_non_preferred_head): New variable.
6356 (Vcurrent_iso639_language): New variable.
6357 (syms_of_charset): Declare it as a Lisp variable.
6358 (char_charset): Don't check non preferred charsets. As a last
6359 resort, return charset_unicode.
6360 (Fset_charset_priority): Update Vcharset_non_preferred_head.
6361
6362 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
6363 conditionals. Don't check enable_font_backend. Delete all codes
6364 used only when USE_FONT_BACKEND is not defined.
6365
6366 * dispextern.h (struct glyph_string): Change type of `font' to
6367 `struct font *'.
6368 (struct glyph_string): New member underline_position and
6369 underline_thickness.
6370 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
6371 (struct face): Change type of `font' to `struct font *'. Remove
6372 members `font_name', `font_info_id'.
6373 (per_char_metric, encode_char): Delete externs.
6374 (calc_pixel_width_or_height): Adjust the prototype.
6375
6376 * emacs.c (enable_font_backend): Delete extern.
6377 (main): Don't set enable_font_backend. Don't check the command
6378 line argument "-disable-font-backend".
6379
6380 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
6381 (enum font_property_index): New members FONT_DPI_INDEX,
6382 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
6383 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
6384 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
6385 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
6386 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
6387 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
6388 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
6389 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
6390 (struct font_spec, struct font_entity): New structs.
6391 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
6392 (struct font): Many members from old "struct font_info" moved to
6393 here. Members font and entity deleted.
6394 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
6395 the new font-related objects.
6396 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
6397 (CHECK_FONT_GET_OBJECT): Likewise.
6398 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
6399 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
6400 (struct font_driver): New members case_sensitive anc check. Type
6401 of the member list and open changed.
6402 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
6403 (font_symbolic_width, font_find_object, font_get_spec)
6404 (font_set_lface_from_name): Delete extern.
6405 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
6406
6407 * font.c: Include <strings.h>.
6408 (enable_font_backend): Delete it.
6409 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
6410 (CHECK_VALIDATE_FONT_SPEC): Delete it.
6411 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
6412 (null_string): Delete it.
6413 (null_vector): Make it static.
6414 (font_family_alist): Delete it.
6415 (Qnormal): Extern it.
6416 (QCextra, QClanguage): Delete it.
6417 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
6418 (font_make_spec, font_make_entity, font_make_object)
6419 (font_intern_prop): Renamed from intern_downcase. Don't downcase
6420 the string. Callers changed.
6421 (font_pixel_size): Adjusted for the format change of font-related
6422 objects.
6423 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
6424 (font_style_to_value, font_style_symbolic): New function.
6425 (build_font_family_alist): Delete it.
6426 (font_registry_charsets): Use Fassoc_string instead of
6427 assq_no_quit.
6428 (font_prop_validate_symbol): Don't return null_string.
6429 (font_prop_validate_style): Adjusted for the change of
6430 style-related values in a font vector.
6431 (font_property_table): Delete entries for QClanguage and
6432 QCantialias, add entries for QCavgwidth.
6433 (get_font_prop_index): Delete the 2nd argument FROM.
6434 (font_prop_validate): Arguments changed.
6435 (font_put_extra): Adjusted for the change of font-related objects.
6436 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
6437 (font_parse_fcname, font_unparse_fcname)
6438 (font_prepare_composition): Likewise.
6439 (font_parse_family_registry): Renamed from font_merge_old_spec.
6440 (otf_open): Delete the 1st arg entity.
6441 (font_otf_capability): Adjusted for the above change.
6442 (font_score): New arg alternate_families. Adjusted for the change
6443 of font-related objects.
6444 (font_sort_entites): New arg best_only.
6445 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
6446 Delete them.
6447 (font_match_p): Check alternate families.
6448 (font_find_object): Delete it.
6449 (font_check_object): New function.
6450 (font_clear_cache): Adjusted for the change of font-related objects.
6451 (font_delete_unmatched): New arg.
6452 (font_list_entities): Call font_driver->list with a spec that
6453 doesn't specify style-related properties.
6454 (font_matching_entity): Arguments changed. Caller changed.
6455 (font_open_entity): Adjusted for the change of font-related objects.
6456 (font_close_object, font_has_char, font_encode_char)
6457 (font_get_name, font_get_spec): Likewise.
6458 (font_spec_from_name, font_clear_prop, font_update_lface):
6459 New functions.
6460 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
6461 (font_prepare_for_face, font_done_for_face, font_open_by_name)
6462 (font_at): Adjusted for the change of font-related objects.
6463 (font_range): New function.
6464 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
6465 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
6466 (Fcopy_font_spec, Fmerge_font_spec): New function.
6467 (Ffont_family_list): Renamed from list-families.
6468 (Finternal_set_font_style_table): Arguments changed.
6469 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
6470 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
6471 change of font-related objects.
6472 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
6473
6474 * fontset.h (struct font_info): Delete it. Most members go to
6475 struct font.
6476 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
6477 (enum FONT_SPEC_INDEX): Delete it.
6478 (font_info, list_fonts_func, load_font_func, query_font_func)
6479 (set_frame_fontset_func, find_ccl_program_func)
6480 (get_font_repertory_func, new_fontset_from_font_name): Delete
6481 externs.
6482 (fontset_from_font_name): Extern it.
6483 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
6484 (FONT_INFO_FROM_FACE): Deleted.
6485 (face_for_font): Adjust prototype.
6486
6487 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
6488 conditionals. Don't check enable_font_backend. Delete all codes
6489 used only when USE_FONT_BACKEND is not defined.
6490 (get_font_info_func, list_font_func, load_font_func)
6491 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
6492 (get_font_repertory_func): Delete them.
6493 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
6494 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
6495 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
6496 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
6497 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
6498 (fontset_compare_rfontdef): New function.
6499 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
6500 rfont-defs by qsort. Adjusted for the change of font-group vector.
6501 (load_font_get_repertory): Deleted.
6502 (fontset_find_font): Use new macros to ref/set elements of
6503 font-def and rfont-def.
6504 (fontset_font): Fix the timing of remembering that no font for C.
6505 (free_face_fontset): Do nothing if the face has no fontset.
6506 (face_suitable_for_char_p): Use new macros to ref/set elements of
6507 rfont-def.
6508 (face_for_char): Likewise. Call face_for_char with font_object.
6509 (fs_load_font): Delete. Delete #pragma surrounding it.
6510 (fs_query_fontset): Use strcasecmp instead of strcmp.
6511 (generate_ascii_font_name): Adjusted for the format change of
6512 font-spec.
6513 (Fset_fontset_font): Likewise. Use new macros to set elements of
6514 font-def.
6515 (Fnew_fontset): Use font_unparse_xlfd to generate
6516 FONTSET_ASCII (fontset).
6517 (new_fontset_from_font_name): Deleted.
6518 (fontset_from_font): Renamed from new_fontset_from_font. Check if
6519 a fontset is already created for the font. FIx updating of
6520 Vfontset_alias_alist.
6521 (fontset_ascii_font): Deleted.
6522 (Ffont_info): Adjusted for the format change of font-spec.
6523 (Finternal_char_font): Likewise.
6524 (Ffontset_info): Likewise.
6525 (syms_of_fontset): Don't check load_font_func.
6526
6527 * fns.c (internal_equal): Handle PREV_FONT.
6528
6529 * frame.h: Delete USE_FONT_BACKEND conditional.
6530
6531 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
6532 conditionals. Don't check enable_font_backend. Delete all codes
6533 used only when USE_FONT_BACKEND is not defined.
6534 (x_set_font): Call x_new_font, not x_new_fontset2.
6535 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
6536 already set for the frame.
6537
6538 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
6539 a font-entity by font_make_entity. Use font_intern_prop instead
6540 of intern_downcase. Use FONT_SET_STYLE to set a style-related
6541 font property. If a font is scalable, set avgwidth property to 0.
6542 Set font-entity property by font_put_extra.
6543 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
6544 (ffont_driver): Adjusted for the change of struct font_driver.
6545 (ftfont_spec_pattern): New function.
6546 (ftfont_list): Return a list, not vector.
6547 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
6548 (ftfont_list_family): Don't downcase names.
6549 (ftfont_free_entity): Deleted.
6550 (ftfont_open): Return a font-object. Adjusted for the change of
6551 struct font. Get underline_thickness and underline_position from
6552 font property. Don't update dpyinfo->smallest_font_height and
6553 dpyinfo->smallest_char_width.
6554 (ftfont_close): Don't free `struct font'.
6555 (ftfont_has_char): Adjusted for the format change of font-entity.
6556 (ftfont_encode_char, ftfont_text_extents): Likewise.
6557
6558 * ftxfont.c (ftxfont_list): Return a list, not vector.
6559 (ftxfont_open): Return a font-object. Adjusted for the change of
6560 struct font. Get underline_thickness and underline_position from
6561 font property. Don't update dpyinfo->smallest_font_height and
6562 dpyinfo->smallest_char_width.
6563 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
6564 (ftxfont_draw): Adjusted for the change of struct font.
6565
6566 * image.c (image_ascent): Don't include "charset.h". Include
6567 "character.h" and "font.h".
6568
6569 * lisp.h (enum pvec_type): New member PREV_FONT.
6570 (Fassoc_string): EXFUN it.
6571
6572 * print.c: Include font.h.
6573 (print_object): Handle font-related objects.
6574
6575 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
6576 conditionals. Don't check enable_font_backend. Delete all codes
6577 used only when USE_FONT_BACKEND is not defined.
6578 (handle_auto_composed_prop): Do nothing if it->f is not on a
6579 window system. Check how many following characters can be
6580 displayed by the same font.
6581 (calc_pixel_width_or_height): Type of the 4th arg is changed to
6582 'struct font *'.
6583 (get_char_face_and_encoding): Assign the whole encoding task to
6584 the `encode-char' method of a font driver.
6585 (fill_composite_glyph_string): Adjusted for the change of `struct
6586 face' and `struct glyph_string'.
6587 (fill_glyph_string): Likewise.
6588 (get_per_char_metric): Arguments changed.
6589 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
6590 and `struct glyph_string'.
6591 (produce_stretch_glyph, calc_line_height_property)
6592 (x_produce_glyphs): Likewise.
6593
6594 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
6595 conditionals. Don't check enable_font_backend. Delete all codes
6596 used only when USE_FONT_BACKEND is not defined. Use
6597 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
6598 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
6599 (Qp): Extern them.
6600 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
6601 Deleted.
6602 (struct font_name): Deleted.
6603 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
6604 (compare_fonts_by_sort_order): New function.
6605 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
6606 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
6607 Deleted.
6608 (Fx_family_fonts): Use font_list_entities, and sort fonts by
6609 compare_fonts_by_sort_order.
6610 (Fx_font_family_list): Call Ffont_family_list.
6611 (face_numeric_value, face_numeric_weight, face_numeric_slant)
6612 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
6613 (face_symbolic_slant, face_symbolic_swidth)
6614 (split_font_name_into_vector, build_font_name_from_vector)
6615 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
6616 (font_rescale_ratio, split_font_name, build_font_name)
6617 (free_font_names, sort_fonts, x_face_list_fonts)
6618 (face_font_available_p, sorted_font_list, cmp_font_names)
6619 (font_list_1, concat_font_list, font_list, remove_duplicates):
6620 Deleted.
6621 (Fx_list_fonts): Use Ffont_list.
6622 (LFACE_AVGWIDTH): Deleted.
6623 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
6624 by FONTP.
6625 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6626 (set_lface_from_font_name): Delete it.
6627 (set_lface_from_font): Renamed from
6628 set_lface_from_font_and_fontset. Caller changed. Don't set
6629 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
6630 for face.
6631 (merge_face_vectors): Copy font-spec if necessary.
6632 Clear properties of the font-spec if necessary.
6633 (merge_face_ref): Clear properties of the font-spec if necessary.
6634 (Finternal_set_lisp_face_attribute): Likewise.
6635 (set_font_frame_param): Use font_load_for_lface to load a
6636 font-object, and call Fmodify_frame_parameters with it.
6637 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
6638 font name by Ffont_xlfd_name.
6639 (Finternal_lisp_face_attribute_values): Don't check QCweight,
6640 QCslant, and QCwidth.
6641 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
6642 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
6643 Compare fonts by EQ.
6644 (lookup_non_ascii_face): Deleted.
6645 (face_for_font): The 2nd argument changed.
6646 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
6647 Check atomic font properties by case insensitive.
6648 (realize_non_ascii_face): Set face->overstrike correctly.
6649 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
6650 (dump_realized_face): Get font name from
6651 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
6652
6653 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
6654 conditionals. Don't check enable_font_backend. Delete all codes
6655 used only when USE_FONT_BACKEND is not defined.
6656 (xic_create_xfontset): Original code deleted and renamed from
6657 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
6658 (x_make_gc): Don't set GCFont in GCs.
6659 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
6660 opened by "fixed".
6661 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
6662 find_ccl_program_func, query_font_func, set_frame_fontset_func,
6663 get_font_repertory_func.
6664
6665 * xfont.c: Include <stdlib.h> and "ccl.h".
6666 (struct xfont_info): New structure.
6667 (xfont_query_font): Deleted.
6668 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
6669 moved from xterm.c.
6670 (xfont_driver): Adjusted for the change of struct font_driver.
6671 (compare_font_names): New function.
6672 (xfont_list_pattern): Sort font names case insensitively. Make
6673 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
6674 (xfont_list): Return a list, not vector.
6675 (xfont_match): If the font doesn't have QCname property, generate
6676 a name from the other font properties.
6677 (xfont_open): Return a font-object. Adjusted for the change of
6678 struct font. Get underline_thickness and underline_position from
6679 font property. Don't update dpyinfo->smallest_font_height and
6680 dpyinfo->smallest_char_width.
6681 (xfont_close): Don't free struct font.
6682 (xfont_prepare_face): Adjusted for the change of struct font.
6683 (xfont_done_face): Deleted.
6684 (xfont_has_char): Adjusted for the change of struct font.
6685 (xfont_encode_char, xfont_draw): Likewise.
6686 (xfont_check): New function.
6687
6688 * xftfont.c (xftfont_list): Adjusted for the change of `list'
6689 callback function.
6690 (xftfont_match): Adjusted for the format change of font-entity.
6691 (xftfont_open): Adjusted for the format change of font-entity and
6692 font-object. Adjusted for the change of struct font. Return a
6693 font-object. Don't update dpyinfo->smallest_font_height and
6694 dpyinfo->smallest_char_width.
6695 (xftfont_close): Block input while calling XftFontClose.
6696 (xftfont_prepare_face): Don't block input while calling
6697 xftfont_get_colors. Adjusted for the change of struct font.
6698 (xftfont_shape): Return value of error case fixed.
6699
6700 * xrdb.c (x_load_resources): Don't setup a fontset resource.
6701
6702 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
6703 conditionals.
6704 (FONT_WIDTH): Return (f)->max_width.
6705 (struct x_display_info): Delete member `font'.
6706 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
6707 (x_find_ccl_program, x_get_font_repertory): Delete externs.
6708 (struct x_output): Change type of `font' to `struct font *'.
6709
6710 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
6711 conditionals. Don't check enable_font_backend. Delete all codes
6712 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
6713 (x_per_char_metric, x_encode_char): Deleted.
6714 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
6715 (x_compute_glyph_string_overhangs): Adjusted for the change of
6716 `struct face'.
6717 (x_draw_glyph_string_foreground)
6718 (x_draw_composite_glyph_string_foreground): Likewise.
6719 (x_draw_glyph_string): Likewise. Use font->underline_position and
6720 font->underline_thickness.
6721 (x_new_font): Renamed from x_new_fontset2.
6722 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
6723 (x_check_font): Call `check' method of a font driver.
6724 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
6725 (x_query_font, x_get_font_repertory): Deleted.
6726 (x_find_ccl_program): Renamed and moved to xfont.c.
6727 (x_redisplay_interface): Adjusted for the change of `struct
6728 redisplay_interface'.
6729
6730 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
6731 conditionals. Don't check enable_font_backend. Delete all codes
6732 used only when USE_FONT_BACKEND is not defined. Surround non-used
6733 code by "#ifdef OLD_FONT" and "endif".
6734 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
6735
6736 * w32font.h (struct w32font_info): New member.
6737 (FONT_COMPAT): New macro.
6738 (w32font_open_internal): Prototype adjusted.
6739
6740 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
6741 OLD_FONT" and "endif".
6742
6743 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
6744 conditionals. Don't check enable_font_backend. Delete all codes
6745 used only when USE_FONT_BACKEND is not defined.
6746 (w32font_open): Return a font-object. Make a font-object by
6747 font_make_object. Adjusted for the change of struct w32font_info.
6748 (w32font_close): Don't free struct font. Adjusted for the change
6749 of struct w32font_info.
6750 (w32font_encode_char, w32font_text_extents, w32font_draw):
6751 Adjusted for the change of struct w32font_info.
6752 (w32font_draw): Likewise.
6753 (w32font_list_internal): Return a list, not vector.
6754 (w32font_open_internal): Change the 4th arg to font-object.
6755 Adjusted for the change of struct w32font_info and font-object format.
6756 (add_font_name_to_list): Don't downcase names.
6757 (w32_enumfont_pattern_entity): Make a font-entity by
6758 font_make_entity. Adjusted for the format change of font-entity.
6759 Use FONT_SET_STYLE to set a style-related font property. If a
6760 font is scalable, set avgwidth property to 0. Set font-entity
6761 property by font_put_extra.
6762 (font_matches_spec): Adjusted for the format change of font-entity.
6763 (w32_weight_table, w32_decode_weight): New variables.
6764 (w32_encode_weight): New function.
6765 (fill_in_logfont): Adjusted for the format change of font-spec.
6766 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
6767 weight value.
6768 (w32font_driver): Adjusted for the change of struct font_driver.
6769
6770 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
6771 conditionals. Don't check enable_font_backend. Surround non-used
6772 code by "#ifdef OLD_FONT" and "endif".
6773 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
6774 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
6775
6776 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
6777 conditionals. Don't check enable_font_backend. Delete all codes
6778 used only when USE_FONT_BACKEND is not defined. Surround non-used
6779 code by "#ifdef OLD_FONT" and "endif".
6780
6781 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
6782 (uniscribe_open): Return value changed to font-object.
6783 Adjusted for the format change of font-object.
6784 (uniscribe_otf_capability): Adjusted for the change of struct font.
6785 (add_opentype_font_name_to_list): Don't downcase names.
6786 (uniscribe_font_driver): Adjusted for the change of struct
6787 font_driver.
6788
67892008-05-13 Chong Yidong <cyd@stupidchicken.com>
6790
6791 * dispnew.c (update_frame_1): Check if tty output is still valid
6792 before flushing it.
6793
67942008-05-13 Jan Djärv <jan.h.d@swipnet.se>
6795
6796 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
6797 to Gtk+ menus.
6798
67992008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
6800
6801 * dired.c (file_name_completion): Tweak the code so as to always do it
6802 in a single pass. Tighten the scope of some variables.
6803
6804 * dired.c (Qdefault_directory): New var.
6805 (file_name_completion): Use it instead of Fexpand_file_name.
6806 (syms_of_dired): Initialize it.
6807
68082008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
6809
6810 * fileio.c (double_dollars): Remove dead code.
6811
68122008-05-10 Eli Zaretskii <eliz@gnu.org>
6813
6814 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
6815 Mention w32-get-true-file-attributes in doc string.
6816
6817 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
6818
68192008-05-09 Glenn Morris <rgm@gnu.org>
6820
6821 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
6822 2008-04-23.
6823
68242008-05-09 Eli Zaretskii <eliz@gnu.org>
6825
6826 Support for reporting owner and group of each file on MS-Windows:
6827 * dired.c (stat_uname, stat_gname): New functions, with special
6828 implementation for w32.
6829 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
6830
6831 * w32.c: Rename the_passwd_* to dflt_passwd_*.
6832 (dflt_group_name): New static variable.
6833 (dflt_group): Rename from the_group.
6834 (init_user_info): Init dflt_group fields. Get user's group name
6835 from LookupAccountSid.
6836 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
6837 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
6838 New initialization states.
6839 (globals_of_w32): Initialize them to zero. Initialize the default
6840 group name to "None".
6841 (GetFileSecurity_Name): New global var, the name of the function
6842 to call for GetFileSecurity.
6843 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
6844 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
6845 (get_file_security, get_security_descriptor_owner)
6846 (get_security_descriptor_group, is_valid_sid)
6847 (get_file_security_desc, get_rid, get_name_and_id)
6848 (get_file_owner_and_group): New functions.
6849 (stat): Use get_file_security_desc and get_file_owner_and_group to
6850 report the owner and primary group of each file. Don't ignore the
6851 high 32 bits of file's size, now that st_size is 64-bit wide.
6852 Fix test when to get true file attributes.
6853 (init_user_info): Use get_rid instead of equivalent inline code.
6854 (fstat): Don't ignore the high 32 bits of file's size.
6855
68562008-05-09 Chong Yidong <cyd@stupidchicken.com>
6857
6858 * image.c (png_load): Use correct bit-depth for setting background
6859 color.
6860
68612008-05-08 Eli Zaretskii <eliz@gnu.org>
6862
6863 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
6864 epa-hook.elc.
6865
68662008-05-08 Juanma Barranquero <lekktu@gmail.com>
6867
6868 * font.c (Ffont_match_p): Don't use `iff' in docstring.
6869
68702008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
6871
6872 * macfns.c (Fx_create_frame): Make a copy of frame parameters
6873 because the original parameters are in pure storage now.
6874 (mac_window): Remove unused params. Update callers.
6875
68762008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
6877
6878 * lread.c (substitute_object_recurse): Use lower-level primitives.
6879 Don't signal errors when traversing sub-char-tables.
6880 Don't loop over all the possible characters when traversing char-tables.
6881
6882 * print.c (print_preprocess): Add sub-char-tables to the print-table,
6883 just like we do in print.c.
6884
68852008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
6886
6887 * minibuf.c (Ftry_completion): Remove code left over from when we used
6888 scmp instead of Fcompare_strings.
6889
68902008-05-04 Juanma Barranquero <lekktu@gmail.com>
6891
6892 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
6893
68942008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6895
6896 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
6897 Create bitmap context in native byte order.
6898
6899 * macterm.c (XDrawLine)
6900 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
6901 context in native byte order.
6902
69032008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6904
6905 * config.in: Regenerate.
6906
6907 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
6908 New definitions for Image I/O support.
6909 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
6910 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
6911 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6912 (mac_data_provider_release_data, image_load_image_io)
6913 [USE_MAC_IMAGE_IO]: New functions.
6914 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
6915 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
6916 (init_image_func_pointer) [MAC_OSX]: Remove function.
6917 (image_load_quartz2d) [MAC_OSX]: Check availability of
6918 CGImageCreateWithPNGDataProvider at compile time.
6919 Use lowercase `false' for boolean constant.
6920 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
6921 Use image_load_image_io.
6922 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
6923 Don't check MyCGImageCreateWithPNGDataProvider.
6924 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
6925 Don't call init_image_func_pointer.
6926
6927 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
6928
6929 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
6930 Make variable non-static.
6931 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
6932 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
6933
6934 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
6935 (RED_FROM_ULONG): Mask off higher bits.
6936 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
6937
6938 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
6939 Include AvailabilityMacros.h.
6940 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
6941 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
6942
69432008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
6944
6945 * chartab.c (Fset_char_table_range): If range is t, really set all
6946 chars to that value.
6947
69482008-05-03 Eli Zaretskii <eliz@gnu.org>
6949
6950 * dired.c (Ffile_attributes): Don't allow the device number become
6951 negative.
6952
69532008-05-02 Daiki Ueno <ueno@unixuser.org>
6954
6955 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
6956
69572008-05-02 Juri Linkov <juri@jurta.org>
6958
6959 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
6960 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
6961 DEFAULT argument as a list of default values in docstrings.
6962
69632008-05-01 Chong Yidong <cyd@stupidchicken.com>
6964
6965 * puresize.h (BASE_PURESIZE): Increase to 1210000.
6966
69672008-05-01 Martin Rudalics <rudalics@gmx.at>
6968
6969 * dispnew.c (change_frame_size_1): Preserve small windows when
6970 shrinking frames by calling set_window_height|width with third
6971 arg 2.
6972
6973 * window.h (struct window): Replace field too_small_ok by field
6974 resize_proportionally.
6975
6976 * window.c (make_window): Initialize resize_proportionally.
6977 (enlarge_window): Temporarily set resize_proportionally to make
6978 sure that shrink_windows does scale the window proportionally.
6979 (shrink_windows): When window has resize_proportionally set try
6980 to shrink it proportionally by stealing from other windows.
6981 (struct saved_window, Fset_window_configuration)
6982 (compare_window_configurations): Handle resize_proportionally.
6983 (WINDOW_TOTAL_SIZE): New macro.
6984 (window_min_size, shrink_windows, size_window): Use it.
6985 (check_min_window_sizes): Remove. Invalid values of
6986 window-min-height|width are handled by window_min_size_2 now.
6987 (size_window, Fsplit_window, enlarge_window)
6988 (adjust_window_trailing_edge, grow_mini_window): Don't call
6989 check_min_window_sizes.
6990 (window_min_size_2, window_min_size_1, window_min_size):
6991 New argument safe_p for retrieving "safe" minimum sizes.
6992 (Fdisplay_buffer, Fsplit_window, enlarge_window)
6993 (adjust_window_trailing_edge, grow_mini_window):
6994 Adjust arguments of window_min_size... functions.
6995 (shrink_windows): Argument min_size removed. New argument
6996 safe_p allows shrinking windows to their safe minimum sizes.
6997 Calculate minimum size and decide whether a window shall be
6998 deleted for each window individually.
6999 (size_window): When nodelete_p equals 2, tell shrink_windows to
7000 delete windows only if their new minimum size is no more safe.
7001 (shrink_window_lowest_first): Call window_min_size_1 to make
7002 sure to preserve modeline of bottom-most window when resizing
7003 the minibuffer.
7004 (Fset_window_configuration, Fcurrent_window_configuration)
7005 (compare_window_configurations): Do not handle
7006 window-min-height|width any more.
7007 (syms_of_window): Clarify window-min-height|width doc-strings.
7008
70092008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
7010
7011 * dired.c (file_name_completion): Fix up the encoding/decoding issue
7012 some more. Copy some of the code from Ftry_completions.
7013 Remove special case code that dates back to initial revision when the
7014 slash was only added when necessary and that can't trigger nowadays.
7015
70162008-04-27 Kenichi Handa <handa@m17n.org>
7017
7018 * font.c (font_prop_validate): Signal `error' instead of `font'.
7019
70202008-04-29 Jason Rumney <jasonr@gnu.org>
7021
7022 * w32fns.c (Fw32_battery_status): New defun.
7023 (syms_of_w32fns): Defsubr it.
7024
70252008-04-28 Andreas Schwab <schwab@suse.de>
7026
7027 * dired.c (file_name_completion): Fix another mixing of encoded
7028 and decoded names.
7029
70302008-04-28 Juanma Barranquero <lekktu@gmail.com>
7031
7032 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
7033
70342008-04-27 Juanma Barranquero <lekktu@gmail.com>
7035
7036 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
7037
70382008-04-27 Andreas Schwab <schwab@suse.de>
7039
7040 * dired.c (file_name_completion): Fix inappropriate mixing of
7041 encoded and decoded names.
7042
7043 * xterm.c (XTread_socket): Fix use of uninitialized variable.
7044
7045 * puresize.h (BASE_PURESIZE): Increase to 1200000.
7046
70472008-04-26 Eli Zaretskii <eliz@gnu.org>
7048
7049 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
7050 2008-03-31, it's not needed anymore with `struct stat' definition
7051 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
7052 for the same reasons.
7053
70542008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
7055
7056 * m/sparc.h: Additional redefinitions for GNU/Linux.
7057
70582008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7059
7060 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
7061 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
7062 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
7063 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
7064 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7065 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
7066 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7067 Likewise.
7068
7069 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
7070 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
7071 (mac_ax_number_of_characters): Add externs.
7072 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
7073 [USE_MAC_TSM]: Likewise.
7074 (mac_handle_text_input_event) [MAC_OSX]:
7075 Handle kEventTextInputOffsetToPos for no active input area case.
7076 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7077 (mac_handle_document_access_event)
7078 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
7079 (install_application_handler) [MAC_OSX]: Register handlers for
7080 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
7081 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
7082 Register mac_handle_document_access_event.
7083
7084 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
7085 Make functions non-static.
7086
70872008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
7088
7089 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
7090 (read_file_name_completion_ignore_case, insert_default_directory)
7091 (Qdefault_directory): Move to minibuffer.el.
7092 (Fread_file_name): Call the new `read-file-name' instead.
7093
70942008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7095
7096 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
7097 Make function non-static.
7098 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
7099 Remove function.
7100 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7101 Move to mactoolbox.c.
7102 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
7103
7104 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
7105 (mac_rect_make): New macro.
7106
7107 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
7108 instead of float.
7109 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7110 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
7111 (XSetBackground) [USE_CG_DRAWING]: Likewise.
7112 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
7113 CGRectMake.
7114 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
7115 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
7116 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
7117 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7118 instead of WindowRef in argument type.
7119 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
7120 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
7121 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
7122 instead of DISPLAY. All uses changed.
7123 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
7124 (x_calc_absolute_position): Simplify so as not to use
7125 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
7126
7127 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
7128 instead of WindowRef in argument type.
7129 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
7130 [TARGET_API_MAC_CARBON]: Remove externs.
7131 (create_apple_event, mac_event_parameters_to_lisp)
7132 [TARGET_API_MAC_CARBON]: Add externs.
7133
7134 * mactoolbox.c (Vmac_ts_script_language_on_focus)
7135 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
7136 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
7137 is clicked.
7138 (x_activate_menubar): Remove extern for saved_menu_event_location.
7139 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
7140 Move from mac.c.
7141
71422008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7143
7144 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
7145 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
7146
71472008-04-23 Jason Rumney <jasonr@gnu.org>
7148
7149 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
7150 attributes only for local files.
7151
7152 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
7153 default to Qlocal.
7154
71552008-04-22 Juri Linkov <juri@jurta.org>
7156
7157 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
7158 read-buffer-to-switch instead of using the letter "B".
7159
71602008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
7161
7162 * fileio.c (Qdefault_directory): New variable.
7163 (Fread_file_name): Use it to pass `dir' to the completion functions.
7164
71652008-04-20 Chong Yidong <cyd@stupidchicken.com>
7166
7167 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
7168
71692008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
7170
7171 * keyboard.c (Vpre_help_message): Remove.
7172 (show_help_echo): Remove default C code.
7173
7174 * dired.c (directory_files_internal, file_name_completion):
7175 Only call ENCODE_FILE if the string is indeed decoded.
7176
71772008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7178
7179 * Makefile.in (TOOLKIT_DEFINES): Remove.
7180 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
7181
71822008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7183
7184 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
7185 (mactoolbox.o): New target.
7186
7187 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
7188 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
7189
7190 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
7191 Use mac_set_frame_window_background instead of XSetWindowBackground.
7192 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
7193 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
7194 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
7195 instead of SetWindowTitleWithCFString.
7196 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
7197 Move function to mactoolbox.c.
7198 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
7199 Use mac_set_window_modified instead of SetWindowModified.
7200 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
7201 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
7202 (Fx_focus_frame): Use mac_front_non_floating_window instead of
7203 FrontNonFloatingWindow. Use mac_activate_window instead of
7204 ActivateWindow. Use mac_active_non_floating_window instead of
7205 ActiveNonFloatingWindow.
7206 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
7207 Use mac_show_hourglass and mac_hide_hourglass.
7208 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
7209 instead of GetGlobalMouse.
7210 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
7211 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
7212 Use mac_bring_window_to_front instead of BringToFront.
7213 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
7214 mactoolbox.c.
7215 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
7216 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
7217 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
7218 mactoolbox.c.
7219
7220 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
7221 (XtPointer): Move typedef from macmenu.c.
7222 (enum button_type): Move enum from macmenu.c.
7223 (widget_value): Move typedef from macmenu.c.
7224 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
7225 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7226 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7227 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7228 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7229 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7230 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7231 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
7232 (Selection): Move typedef from macselect.c.
7233 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
7234 macterm.c.
7235 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
7236 (mac_is_window_collapsed, mac_bring_window_to_front)
7237 (mac_send_window_behind, mac_hide_window, mac_show_window)
7238 (mac_collapse_window, mac_front_non_floating_window)
7239 (mac_active_non_floating_window, mac_activate_window)
7240 (mac_move_window_structure, mac_move_window, mac_size_window)
7241 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
7242
7243 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
7244 (enum mac_menu_kind): Move enum to mactoolbox.c.
7245 (min_menu_id): Move variable to mactoolbox.c.
7246 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
7247 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
7248 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
7249 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
7250 [TARGET_API_MAC_CARBON]: Likewise.
7251 (XtPointer): Move typedef to macgui.h.
7252 (enum button_type): Move enum to macgui.h.
7253 (widget_value): Move typedef to macgui.h.
7254 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
7255 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
7256 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
7257 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
7258 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
7259 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
7260 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
7261 (popup_activated_flag): Make variable non-static.
7262 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
7263 (add_menu_item, fill_menu, dispose_menus):
7264 Move functions to mactoolbox.c.
7265 (restore_show_help_function, menu_target_item_handler)
7266 (install_menu_target_item_handler, mac_handle_dialog_event)
7267 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
7268 [TARGET_API_MAC_CARBON]: Likewise.
7269 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
7270 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7271 (find_and_call_menu_selection, name_is_separator): Make function
7272 non-static.
7273 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
7274 to mactoolbox.c.
7275 (set_frame_menubar): Don't call install_menu_quit_handler.
7276 (menu_item_selection): New variable.
7277 (mac_menu_show): Use create_and_show_popup_menu.
7278 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
7279 selection but set variable menu_item_selection. All uses changed.
7280 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
7281 Call install_menu_quit_handler. Move to mactoolbox.c.
7282
7283 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
7284 (Selection): Move typedef to macgui.h.
7285 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
7286 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
7287 Make variables non-static.
7288 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7289 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
7290 Make functions non-static.
7291 (Vmac_service_selection) [MAC_OSX]: Likewise.
7292 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
7293 (mac_valid_selection_target_p, mac_clear_selection)
7294 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7295 (mac_put_selection_value, mac_selection_has_target_p)
7296 (mac_get_selection_value, mac_get_selection_target_list)
7297 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
7298 Move functions to mactoolbox.c.
7299 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
7300 Likewise.
7301 (copy_scrap_flavor_data, mac_handle_service_event)
7302 (install_service_handler) [MAC_OSX]: Likewise.
7303 (syms_of_macselect) <Vmac_dnd_known_types>:
7304 Use mac_dnd_default_known_types.
7305
7306 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
7307 Move to mactoolbox.c.
7308 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
7309 (Fx_selection_owner_p): Add EXFUN.
7310 (install_window_handler, remove_window_handler, XSetWindowBackground):
7311 Remove externs.
7312 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
7313 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
7314 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
7315 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
7316 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
7317 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
7318 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
7319 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
7320 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
7321 (create_and_show_popup_menu, mac_get_selection_from_symbol)
7322 (mac_valid_selection_target_p, mac_clear_selection)
7323 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
7324 (mac_put_selection_value, mac_selection_has_target_p)
7325 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
7326 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
7327 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
7328 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
7329 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
7330 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
7331 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
7332 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7333 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
7334
7335 * mactoolbox.c: New file.
7336
73372008-04-18 Jason Rumney <jasonr@gnu.org>
7338
7339 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
7340
73412008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
7342
7343 * character.c (Fmultibyte_char_to_unibyte):
7344 Return latin1 chars unchanged.
7345
7346 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
7347 relocated if it points to `name'.
7348
73492008-04-17 Kenichi Handa <handa@m17n.org>
7350
7351 * data.c (Faset): Allow setting a multibyte character in an
7352 ASCII-only unibyte string.
7353
7354 * lisp.h (STRING_SET_MULTIBYTE): New macro.
7355
73562008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
7357
7358 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
7359 done in config.h.
7360
73612008-04-16 Juanma Barranquero <lekktu@gmail.com>
7362
7363 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
7364 (Fchar_direction): Add usage in the docstring.
7365
73662008-04-15 Chong Yidong <cyd@stupidchicken.com>
7367
7368 * keyboard.c (read_key_sequence): Remove always-true checks.
7369
73702008-04-14 Jason Rumney <jasonr@gnu.org>
7371
7372 * w32font.c (w32font_open_internal): Set max_bounds.descent in
7373 compatibility struct, for better underline positioning.
7374
73752008-04-13 David Hansen <david.hansen@gmx.net>
7376
7377 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
7378 string.
7379
73802008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
7381
7382 * m/hp800.h (XUINT, XSET): Remove.
7383
73842008-04-12 Juanma Barranquero <lekktu@gmail.com>
7385
7386 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
7387 previous change.
7388
73892008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
7390
7391 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
7392 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
7393
73942008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7395
7396 * keymap.h (map_keymap_canonical): Declare.
7397 * xmenu.c (single_keymap_panes): Use it.
7398
73992008-04-11 Glenn Morris <rgm@gnu.org>
7400
7401 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
7402 set the target's value to that of the alias.
7403
74042008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
7405
7406 * term.c (set_tty_color_mode): Left over typo.
7407
74082008-04-10 Michael Albinus <michael.albinus@gmx.de>
7409
7410 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
7411 only after check for file name handler functions. Signal, when
7412 native functionality is not supported.
7413 (syms_of_fileio): Declare it unconditionally.
7414
74152008-04-10 Jason Rumney <jasonr@gnu.org>
7416
7417 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
7418 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
7419
7420 * w32.c (logon_network_drive): Also logon to remote drives that
7421 are mapped to drive letters.
7422
74232008-04-10 Glenn Morris <rgm@gnu.org>
7424
7425 * xdisp.c (truncate-partial-width-windows): Doc fix.
7426
74272008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
7428
7429 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
7430 Move functions to minibuffer.el.
7431 (syms_of_fileio): Don't declare them.
7432
74332008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7434
7435 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
7436 (syms_of_minibuf): Remove its initialization.
7437
7438 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
7439
74402008-04-09 Juanma Barranquero <lekktu@gmail.com>
7441
7442 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
7443
74442008-04-09 Jason Rumney <jasonr@gnu.org>
7445
7446 * makefile.w32-in (distclean): Delete makefile too.
7447 (maintainer-clean): New target.
7448
7449 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
7450
7451 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
7452 for new font backend and composite cases.
7453
74542008-04-09 Jan Djärv <jan.h.d@swipnet.se>
7455
7456 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
7457 Most of the code moved to run_timers.
7458 (do_pending_atimers): Call run_timers.
7459 (run_timers): New function.
7460
7461 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
7462 run atimers.
7463
7464 * process.c (wait_reading_process_output): The same as above.
7465
74662008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
7467
7468 * minibuf.c (last_exact_completion): Remove variable.
7469 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
7470 (complete_and_exit_1, complete_and_exit_2)
7471 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
7472 (Fdisplay_completion_list, display_completion_list_1)
7473 (Fminibuffer_completion_help, Fself_insert_and_exit)
7474 (Fexit_minibuffer, Fminibuffer_message): Move functions to
7475 minibuffer.el.
7476 (syms_of_minibuf): Remove corresponding initializations.
7477
7478 * keyboard.c (Qdeactivate_mark): New var.
7479 (command_loop_1): Use it to call `deactivate-mark'.
7480 (syms_of_keyboard): Initialize it.
7481
7482 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
7483 to another frame.
7484 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
7485 Don't call set_tty_color_mode.
7486 (store_frame_param): Reset previous_frame rather than call
7487 set_tty_color_mode.
7488 * term.c (set_tty_color_mode): Rewrite.
7489 * dispextern.h (set_tty_color_mode): New type.
7490 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
7491
74922008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
7493
7494 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
7495 for generic chars, which do not exist any more in emacs-unicode.
7496
74972008-04-08 Michael Albinus <michael.albinus@gmx.de>
7498
7499 * coding.c (detect_coding_emacs_mule)
7500 (Ffind_operation_coding_system): Fix typo.
7501
75022008-04-08 Jason Rumney <jasonr@gnu.org>
7503
7504 * w32uniscribe.c (SNAME): Extract only symbol name.
7505
7506 * w32font.h (struct w32_metric_cache): New struct.
7507 (w32font_info): Use it.
7508 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
7509 (CACHE_BLOCKSIZE): New constants.
7510
7511 * w32font.c (Qja, Qko, Qzh): New symbols.
7512 (syms_of_w32font): Initialise them.
7513 (font_matches_spec): Use them to filter by language.
7514 (recompute_cached_metrics): Remove function.
7515 (compute_metrics, clear_cached_metrics): New functions.
7516 (w32font_encode_char): Use them to manage metric cache.
7517 (w32font_text_extents): Cache metrics for all glyphs on demand.
7518 Delay converting glyph indices to WORD until needed.
7519 (w32font_open_internal): Initialize metric cache to empty.
7520 (registry_to_w32_charset): Charset should always be a symbol.
7521 (fill_in_logfont, list_all_matching_fonts): Family should
7522 always be a symbol.
7523
75242008-04-06 Jason Rumney <jasonr@gnu.org>
7525
7526 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
7527 Give up if glyph indices not supported. Use uniscribe obtained
7528 ABC widths for individual metrics. Map glyph clusters back to
7529 characters using fClusterStart flag. Return number of glyphs
7530 produced, not chars processed.
7531 (uniscribe_shape): Map char at FROM to current glyph.
7532
75332008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7534
7535 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
7536 Use SetMenuItemHierarchicalMenu.
7537
75382008-04-05 Jason Rumney <jasonr@gnu.org>
7539
7540 * image.c (pbm_load): Allow color values up to 65535.
7541 Throw an error if max_color_idx is outside the supported range.
7542 Report an error when image size is invalid.
7543 Read two bytes at a time when raw images have max_color_idx above 255.
7544
75452008-04-05 Eli Zaretskii <eliz@gnu.org>
7546
7547 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7548 cFileName a file name that includes `?' characters, use the 8+3
7549 alias in cAlternateFileName instead.
7550
75512008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
7552
7553 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
7554 append "CCL: Quitted" when the CCL program is quitted.
7555 (setup_ccl_program): Initialize ccl->quit_silently to zero.
7556
7557 * ccl.h (struct ccl_program): New member quit_silently.
7558
75592008-04-05 Chong Yidong <cyd@stupidchicken.com>
7560
7561 * search.c (compile_pattern_1): Treat non-nil and non-string of
7562 search-spaces-regexp as nil.
7563
7564 * minibuf.c (Fassoc_string): Tweak docstring.
7565
75662008-04-05 Eli Zaretskii <eliz@gnu.org>
7567
7568 * dired.c (Ffile_attributes): Support inode numbers wider than 32
7569 bits. Remove ugly WINDOWSNT-specific kludge introduced on
7570 2008-03-14 to force inode be positive.
7571
7572 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
7573 _S_* ones, since we now use our own sys/stat.h.
7574 (stat, fstat): Don't mangle the inode number.
7575 (init_user_info): Don't restrict UID and GID to 0-60000 range.
7576
75772008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
7578
7579 * frame.h (struct frame): Give one more bit to `visible' since we use
7580 values larger than 1 to indicate obscured frames on ttys.
7581
7582 * keymap.c (Qkeymap_canonicalize): New var.
7583 (Fmap_keymap_internal): New fun.
7584 (describe_map): Use keymap-canonicalize.
7585
7586 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
7587 (Fundo_boundary): Set them.
7588 (syms_of_undo): Initialize them.
7589 (record_point): Use them instead of last_point_position*.
7590 (last_undo_buffer): Change type.
7591
75922008-04-04 Jason Rumney <jasonr@gnu.org>
7593
7594 * w32font.c (w32font_text_extents): Use font's ascent and descent.
7595 (recompute_cached_metrics): Don't set ascent and descent per char.
7596
7597 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
7598 (uniscribe_check_otf): Add GC protection before consing.
7599 Rearrange loop for counting features.
7600
76012008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
7602
7603 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
7604 buffer with byte-size of source buffer.
7605
76062008-04-03 Chong Yidong <cyd@stupidchicken.com>
7607
7608 * callint.c (Fcall_interactively): Handle temporary region even
7609 when shift-select-mode is off.
7610
76112008-04-03 Jason Rumney <jasonr@gnu.org>
7612
7613 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
7614
76152008-04-03 Kenichi Handa <handa@m17n.org>
7616
7617 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
7618 (CATEGORY_MASK_UTF_16): Likewise.
7619 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
7620 binary file.
7621 (detect_coding): Add null-byte detection for a binary file.
7622 (detect_coding_system): Likewise.
7623
76242008-04-03 Jason Rumney <jasonr@gnu.org>
7625
7626 * w32uniscribe.c: New file.
7627
7628 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
7629
7630 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
7631
7632 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
7633 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
7634 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
7635 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
7636 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
7637 (Qphonetic): New symbols.
7638 (syms_of_w32font): Initialize them.
7639 (font_supported_scripts): Use them.
7640 (w32font_list_family): List all charsets.
7641 (w32font_text_extents, recompute_cached_metrics): Fix metric
7642 calculations.
7643 (w32_enumfont_pattern_entity): Make full_type a DWORD.
7644 Give opentype fonts their own format.
7645 (font_matches_spec): New arguments backend and logfont.
7646 Handle :otf spec for uniscribe backend.
7647 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
7648 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
7649
7650 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
7651 font backend.
7652 (globals_of_w32fns): Initialize uniscribe font backend.
7653
7654 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
7655 dependencies.
7656 (w32uniscribe.$(O)): New file to build.
7657 (FONT_OBJ): Include w32uniscribe.$(O).
7658 (LIBS): Add uniscribe libraries.
7659
7660 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
7661
76622008-04-02 Chong Yidong <cyd@stupidchicken.com>
7663
7664 * callint.c (Vshift_select_mode): New var.
7665 (Finteractive): Document new ^ spec.
7666 (Fcall_interactively): Call handle-shift-selection if the ^ spec
7667 is present.
7668
7669 * keyboard.c (Vthis_command_keys_shift_translated): New var.
7670 (command_loop_1): Avoid running the direct display versions of
7671 forward-char and backward-char if shift-selection may occur.
7672 (read_key_sequence): Set Vthis_command_keys_shift_translated if
7673 shift-translation takes place.
7674
7675 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
7676 avoid clobbering by define-minor-mode.
7677
7678 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
7679 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
7680
7681 * syntax.c (Fforward_word): Add ^ interactive spec.
7682
7683 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
7684 (Fscroll_right): Add ^ interactive spec.
7685
76862008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
7687
7688 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
7689
7690 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
7691
7692 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
7693
76942008-03-31 Juri Linkov <juri@jurta.org>
7695
7696 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
7697
76982008-03-30 Jan Djärv <jan.h.d@swipnet.se>
7699
7700 * gtkutil.c (xg_set_geometry): Fix indentation.
7701 (xg_resize_outer_widget): Remove.
7702 (x_wm_size_hint_off): Fix indentation.
7703 (xg_frame_set_char_size): Call flush_and_sync after
7704 gtk_window_resize.
7705 (x_wm_set_size_hint): Pass NULL as geometry window to
7706 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
7707 Add menu bar and tool bar height to base height.
7708 (xg_update_frame_menubar, free_frame_menubar)
7709 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
7710 (update_frame_tool_bar, free_frame_tool_bar):
7711 Change xg_resize_outer_widget to xg_frame_set_char_size.
7712
77132008-03-30 Michael Albinus <michael.albinus@gmx.de>
7714
7715 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
7716 (Fdbus_call_method): New parameter TIMEOUT.
7717 (dbus-send-signal): Optimize UNGCPRO call.
7718
77192008-03-29 Juri Linkov <juri@jurta.org>
7720
7721 * window.c (Fdisplay_buffer): Move call to
7722 Vsplit_window_preferred_function out of conditions that check
7723 if window is eligible for vertical splitting.
7724 When Vsplit_window_preferred_function is non-nil, call it and use
7725 its non-nil return value as window. Otherwise, continue doing
7726 vertical splitting using Fsplit_window with arg horflag=nil.
7727 (syms_of_window) <Vsplit_window_preferred_function>: Change the
7728 default value from `split-window' to nil.
7729
77302008-03-29 Juri Linkov <juri@jurta.org>
7731
7732 * callint.c (Fcall_interactively): Revert 2008-03-16 change
7733 for interactive code letters 'b' and 'B'.
7734
77352008-03-29 Eli Zaretskii <eliz@gnu.org>
7736
7737 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
7738 multibyte string.
7739
77402008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
7741
7742 * keyboard.c (pending_funcalls): New var.
7743 (timer_check): Run it.
7744 (syms_of_keyboard): Initialize it.
7745 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
7746 (Vdelete_terminal_functions): New vars.
7747 (syms_of_terminal): Initialize them.
7748 (Fdelete_terminal): Run delete-terminal-functions.
7749 * xdisp.c (safe_eval): Rewrite.
7750 (safe_call2): New fun.
7751 * frame.c (Qdelete_frame_functions): New var.
7752 (syms_of_frame): Initialize it.
7753 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
7754 * lisp.h (safe_call2, pending_funcalls): Declare.
7755
77562008-03-28 Andreas Schwab <schwab@suse.de>
7757
7758 * indent.c (Fmove_to_column): Move declaration before statements.
7759
77602008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
7761
7762 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
7763 (struct frame): Use bit fields for boolean vars.
7764
7765 * process.c (server_accept_connection): Simplify naming.
7766 (emacs_get_tty_pgrp): Use SDATA.
7767
7768 * coding.c (decode_coding_object): Fix last change.
7769
77702008-03-27 Jason Rumney <jasonr@gnu.org>
7771
7772 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
7773
77742008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
7775
7776 * charset.c (Fdefine_charset_internal): Change the way of
7777 registering charsets in Vcharset_order_list.
7778 (syms_of_charset): Make the charset `eight-bit' supplementary.
7779
77802008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
7781
7782 * regex.c (EXTEND_BUFFER): Change order of pointer addition
7783 operations, to avoid having the difference between pointers
7784 overflow.
7785
77862008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
7787
7788 * indent.c (check_display_width): New fun.
7789 (scan_for_column): Use it.
7790
7791 * data.c (syms_of_data): Mark most-positive-fixnum and
7792 most-negative-fixnum as constants.
7793
7794 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
7795
7796 * indent.c (scan_for_column): Extract from current_column_1.
7797 Merge with the same code from Fmove_to_column.
7798 (current_column_1, Fmove_to_column): Use it.
7799
78002008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
7801
7802 * keymap.c (map_keymap_internal): New fun.
7803 (map_keymap): Use it.
7804 (Fmap_keymap_internal): New fun.
7805 (Fmap_keymap): Remove left-out test from before make_save_value.
7806
7807 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
7808
7809 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
7810 Use XCAR/XCDR.
7811
7812 * process.h (struct Lisp_Process): Remove filter_multibyte.
7813 * process.c (QCfilter_multibyte): Remove.
7814 (setup_process_coding_systems): Don't use filter_multibyte.
7815 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
7816 (read_process_output): Don't adjust multibyteness to filter_multibyte.
7817 (Fset_process_filter_multibyte): Change the coding-system to
7818 approximate the previous behavior.
7819 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
7820 coding-system.
7821
7822 * coding.c (decode_coding_object): When not decoding into a buffer,
7823 obey the coding system's preference of (uni|multi)byte.
7824
78252008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
7826
7827 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
7828 every char is changed and has a different byte-length.
7829 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
7830 Fix int -> EMACS_INT.
7831
78322008-03-23 David Hansen <david.hansen@gmx.net>
7833
7834 * dbusbind.c (xd_read_message): Remove extra copying of message
7835 strings. Check for NULL `interface' or `member'.
7836
78372008-03-22 Eli Zaretskii <eliz@gnu.org>
7838
7839 * w32.c (readdir): If FindFirstFile/FindNextFile return in
7840 cFileName a file name that includes `?' characters, use the 8+3
7841 alias in cAlternateFileName instead.
7842
78432008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
7844
7845 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
7846
78472008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7848
7849 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
7850 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
7851 work on current_buffer only instead (that was already the case
7852 for some of the code anyway).
7853 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
7854 (temp_set_point, temp_set_point_both): Use EMACS_INT.
7855 (SET_PT, SET_PT_BOTH): Adjust.
7856 * intervals.h (set_point, temp_set_point, set_point_both)
7857 (temp_set_point_both): Remove redundant declarations.
7858
78592008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
7860
7861 * fileio.c (Finsert_file_contents):
7862 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
7863 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
7864 when buffer != current_buffer anyway.
7865
78662008-03-20 Andreas Schwab <schwab@suse.de>
7867
7868 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
7869 as default.
7870
78712008-03-19 Jason Rumney <jasonr@gnu.org>
7872
7873 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
7874 (syms_of_w32fns): Initialize them.
7875 (HOURGLASS_ID): New constant.
7876 (x_window_to_frame): Don't check hourglass_window.
7877 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
7878 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
7879 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
7880 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
7881 Only change the cursor if hourglass is not active.
7882 (Fx_create_frame): Initialize frame's current_cursor.
7883 (hourglass_atimer): Remove.
7884 (hourglass_started): New function.
7885 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
7886 (show_hourglass): Adapt to w32, changing argument to frame.
7887
7888 * w32term.h (struct w32_output): Remove hourglass_window.
7889 Add current_cursor.
7890
7891 * eval.c (call_debugger, Fsignal):
7892 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
7893 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
7894 (Fexecute_extended_command, cancel_hourglass_unwind):
7895 * minibuf.c (read_minibuf):
7896 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
7897
78982008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
7899
7900 * window.c (run_funs): New fun.
7901 (run_window_configuration_change_hook): Use it to run the buffer-local
7902 and the global part of the hook.
7903
7904 * xdisp.c (format_mode_line_unwind_data): Add window argument.
7905 (unwind_format_mode_line): Restore selected window.
7906 (x_consider_frame_title, Fformat_mode_line): Set selected window.
7907
79082008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
7909
7910 * editfns.c (Fchar_equal): Check they are valid characters.
7911
7912 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
7913
79142008-03-17 Andreas Schwab <schwab@suse.de>
7915
7916 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
7917 against a charset.
7918
7919 * lisp.h (Fbuffer_list): Declare.
7920
79212008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 7922
aac0c6e3
MR
7923 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
7924 handlebox_widget is != 0.
7925
79262008-03-16 Juri Linkov <juri@jurta.org>
7927
7928 * callint.c (Fcall_interactively): For interactive code letters
7929 'b' and 'B' put the buffer list into the list of default "future"
7930 values of the minibuffer.
7931
79322008-03-16 Andreas Schwab <schwab@suse.de>
7933
7934 * keyboard.c (read_key_sequence): Fix downcasing of letters with
7935 modifiers.
7936
7937 * regex.c (re_match_2_internal): Correct matching of a charset
7938 against latin-1 characters.
7939
79402008-03-16 Kenichi Handa <handa@m17n.org>
7941
7942 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
7943 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
7944 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
7945 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
7946 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
7947 CHAR_STRING_ADVANCE.
7948 (produce_chars): Fix for the case that the source and the
7949 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
7950 instead of CHAR_STRING_ADVANCE.
7951 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
7952 STRING_CHAR_ADVANCE.
7953
79542008-03-15 Andreas Schwab <schwab@suse.de>
7955
7956 * regex.c (re_match_2_internal): Correct matching of eight bit
7957 characters in unibyte strings.
7958
79592008-03-15 Martin Rudalics <rudalics@gmx.at>
7960
7961 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
7962 at end of range when it coincides with the end of the buffer.
7963
79642008-03-14 Eli Zaretskii <eliz@gnu.org>
7965
7966 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
7967
7968 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
7969
79702008-03-14 Jason Rumney <jasonr@gnu.org>
7971
7972 * editfns.c (initial_tz): New variable.
7973 (syms_of_editfns): Initialize it.
7974 (Fset_time_zone_rule): Set it when first called.
7975 Use it when TZSTRING is nil.
7976
7977 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
7978 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
7979 (monitor_from_point_fn, get_monitor_info_fn): New globals.
7980 (globals_of_w32fns): Initialize them.
7981 (compute_tip_xy): Use them to position tooltips.
7982
79832008-03-14 Glenn Morris <rgm@gnu.org>
7984
7985 * emacs.c (main): Revert previous change.
7986 (standard_args): Revert -internal-script back to -scriptload,
7987 and remove the long-option form.
7988
79892008-03-13 Glenn Morris <rgm@gnu.org>
7990
7991 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
7992 Remove option -enable-font-backend.
7993
79942008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
7995
7996 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
7997
79982008-03-11 Jan Djärv <jan.h.d@swipnet.se>
7999
8000 * xterm.c (x_connection_closed): For GTK: If this is the last
8001 terminal just exit without closing the display.
8002
80032008-03-11 Jason Rumney <jasonr@gnu.org>
8004
8005 * w32font.c (w32font_full_name): Use floor to round.
8006
f0131492 80072008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
8008
8009 * sound.c (alsa_configure): Declare vol at beginning of block.
8010
8011 * fontset.c (Ffontset_info): Remove extra semicolon.
8012
80132008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
8014
8015 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
8016 size of resulting string.
8017
80182008-03-10 Jason Rumney <jasonr@gnu.org>
8019
8020 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
8021
80222008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8023
8024 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
8025 Don't pretend as if characters with display property haven't been
8026 consumed for string-replacing-string case.
8027
80282008-03-08 Kim F. Storm <storm@cua.dk>
8029
8030 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
8031 (get_next_display_element, next_element_from_string)
8032 (next_element_from_ellipsis, next_element_from_buffer): Use it.
8033
80342008-03-08 Andreas Schwab <schwab@suse.de>
8035
8036 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
8037
80382008-03-06 Jason Rumney <jasonr@gnu.org>
8039
8040 * w32font.c (w32_registry): Take font_type argument. Use ANSI
8041 when charset not specified. Only translate ANSI to unicode when
8042 font_type is truetype.
8043 (w32font_coverage_ok): New function.
8044 (add_font_entity_to_list): Use it to filter unsuitable fonts.
8045
80462008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
8047
8048 * lread.c (Fread_char): Resolve modifiers.
8049 (Fread_char_exclusive): Likewise.
8050
8051 * character.c (char_resolve_modifier_mask): New function.
8052 (char_string): Use char_resolve_modifier_mask.
8053 (Fchar_resolve_modifiers): New function.
8054 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
8055 function.
8056
80572008-03-04 Jason Rumney <jasonr@gnu.org>
8058
8059 * makefile.w32-in: Always include w32font.c in the build.
8060 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
8061
80622008-03-04 Andreas Schwab <schwab@suse.de>
8063
8064 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
8065 (versionclean): Likewise.
8066
80672008-03-04 Juanma Barranquero <lekktu@gmail.com>
8068
8069 * .cvsignore: Add oo.
8070
80712008-03-03 Andreas Schwab <schwab@suse.de>
8072
8073 * coding.c (decode_coding_object): Inhibit gap shrinking while
8074 decoding in place.
8075
80762008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
8077
8078 * w32term.c: Remove unused include "gnu.h".
8079 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
8080
8081 * gnu.h: Rename to ...
8082 * emacs-icon.h: ... this.
8083 * xterm.c: Use emacs-icon.h instead of gnu.h.
8084 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
8085
80862008-03-03 Juanma Barranquero <lekktu@gmail.com>
8087
8088 * w32font.c: Include math.h.
8089
80902008-03-03 Jason Rumney <jasonr@gnu.org>
8091
8092 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
8093 Compute options separately.
8094 (w32font_open_internal): Set glyph_idx before caching metrics.
8095
8096 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
8097 Define if system headers don't.
8098 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
8099 (w32font_encode_char): Don't declare here.
8100
8101 * w32font.c (Quniscribe, QCformat): New symbols.
8102 (syms_of_w32font): Define them.
8103 (w32font_has_char): Indicate uncertainty.
8104 (w32font_encode_char): Encode as glyph point. Make static.
8105 (recompute_cached_metrics): New function.
8106 (w32font_open_internal): Use it. Set font to use glyph points
8107 initially. Set format based on type of font.
8108 (w32font_text_extents, w32font_draw): Optionally use glyph points.
8109 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
8110 on it. Set format based on information available here.
8111 (add_font_entity_to_list): Identify backend based on opentype_only.
8112
81132008-03-02 Andreas Schwab <schwab@suse.de>
8114
8115 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
8116
8117 * coding.c (decode_coding_big5, produce_chars):
8118 Fix typos in last change.
8119
81202008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
8121
8122 * gnu.h: New icon.
8123
81242008-03-02 Kenichi Handa <handa@m17n.org>
8125
8126 * coding.c (decode_coding_utf_8): When eol-type of CODING is
8127 `dos', don't decode '\r' if that is the last in the source.
8128 (decode_coding_utf_16, decode_coding_emacs_mule)
8129 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
8130 (decode_coding_raw_text, decode_coding_charset): Likewise.
8131 (produce_chars): Don't decode EOL here. Use EMACS_INT.
8132
81332008-03-01 Jason Rumney <jasonr@gnu.org>
8134
8135 * w32font.c (w32font_full_name): Report point size for scalable fonts.
8136
81372008-03-01 Kim F. Storm <storm@cua.dk>
8138
8139 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
8140
81412008-03-01 Jason Rumney <jasonr@gnu.org>
8142
8143 * w32font.c (w32font_full_name): New function.
8144 (w32font_open_internal): Use it.
8145
81462008-03-01 Kim F. Storm <storm@cua.dk>
8147
8148 * dispnew.c (line_draw_cost): Fix invalid glyph check.
8149
81502008-03-01 Jason Rumney <jasonr@gnu.org>
8151
8152 * font.c (font_unparse_fcname): Increase len when style is a symbol.
8153
81542008-03-01 Jan Djärv <jan.h.d@swipnet.se>
8155
8156 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
8157 xg_frame_resized when the event is for the edit widget.
8158
8159 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
8160
8161 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
8162 set_char_size.
8163 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
8164 operations on widgets here. Just set frame size if needed.
8165 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
8166 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
8167 (x_wm_set_size_hint): Set size hints on the edit widget only, not
8168 the whole frame.
8169 (xg_create_tool_bar): Move attachment of the tool bar to
8170 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
8171 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
8172
81732008-03-01 Jason Rumney <jasonr@gnu.org>
8174
8175 * w32fns.c (w32_msg_pump): Disable debug code.
8176
81772008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8178
8179 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
8180
81812008-02-29 Chong Yidong <cyd@stupidchicken.com>
8182
8183 * xdisp.c (next_overlay_string): Don't set
8184 overlay_strings_at_end_processed_p if we're currently reading from
8185 a display string.
8186
81872008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
8188
8189 * xdisp.c (get_overlay_strings_1): Fix typo.
8190
81912008-02-29 Chong Yidong <cyd@stupidchicken.com>
8192
8193 * xdisp.c (get_overlay_strings_1): Add missing argument type.
8194
81952008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
8196
8197 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
8198
8199 * xdisp.c (display_mode_element): Cancel the previous change.
8200 (decode_mode_spec): Likewise.
8201 (handle_auto_composed_prop): Don't make composition if it->string
8202 is a string.
8203
82042008-02-27 Kim F. Storm <storm@cua.dk>
8205
8206 * lisp.h (GLYPH): Change type from int to struct with separate char
8207 and face_id members.
8208 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
8209 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
8210 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
8211 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
8212 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
8213 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
8214 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
8215 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
8216 handle new Lisp glyph code encoding, either an integer or a cons.
8217
8218 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
8219 (GLYPH_ALIAS): Delete.
8220 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
8221 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
8222 (GLYPH_FROM_CHAR): Replace macro by ...
8223 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
8224
8225 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
8226 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
8227 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
8228 (GLYPH_INVALID_P): New macro.
8229 (spec_glyph_lookup_face): Update prototype.
8230
8231 * dispnew.c (line_draw_cost): Adapt to new glyph type.
8232 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
8233 new glyph code encoding.
8234 (spec_glyph_lookup_face): No return value; update passed glyph instead.
8235 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
8236
8237 * xdisp.c (get_next_display_element, next_element_from_display_vector):
8238 Adapt to new glyph type and new glyph code encoding.
8239
8240 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
8241
8242 * indent.c (current_column, current_column_1, Fmove_to_column)
8243 (compute_motion): Adapt to new glyph code encoding.
8244
8245 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
8246
82472008-02-27 Chong Yidong <cyd@stupidchicken.com>
8248
8249 * process.c (wait_reading_process_output): Check for window
8250 changes caused by timers.
8251 Suggested by Johan Bockgård.
8252
82532008-02-27 Glenn Morris <rgm@gnu.org>
8254
8255 * emacs.c (USAGE1): Add `--disable-font-backend'.
8256
82572008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
8258
8259 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
8260 is made to the buffer.
8261
82622008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
8263
8264 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
8265 (face_at_string_position):
8266 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
8267 (face_at_string_position):
8268 * xdisp.c (display_string, next_overlay_change):
8269 * buffer.h (overlays_at):
8270 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
8271 Update callers.
8272
82732008-02-26 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * editfns.c (Fformat): Doc fix.
8276
82772008-02-26 Juanma Barranquero <lekktu@gmail.com>
8278
8279 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
8280 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
8281 (Ffont_otf_alternates, Fquery_font): Doc fixes.
8282
82832008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8284
8285 * buffer.c (Fbuffer_swap_text): New function.
8286 (syms_of_buffer): Defsubr it.
8287
82882008-02-25 Chong Yidong <cyd@stupidchicken.com>
8289
8290 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
8291
82922008-02-25 Jason Rumney <jasonr@gnu.org>
8293
8294 * w32font.c (w32font_draw): Draw one character at a time when padding.
8295
82962008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
8297
8298 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
8299 Handle a nil arg. Use run_window_configuration_change_hook.
8300 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
8301 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
8302 Use run_window_configuration_change_hook.
8303
83042008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8305
8306 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
8307 1-pixel width.
8308
83092008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
8310
8311 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
8312 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
8313 if the glyph in the font is zero pixel with.
8314
8315 * dispextern.h (struct glyph_string): New member padding_p.
8316
8317 * w32font.c (w32font_draw): Pay attention to s->padding_p.
8318
8319 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
8320
8321 * xfont.c (xfont_draw): Pay attention to s->padding_p.
8322
8323 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
8324
8325 * font.c: If the font driver doesn't have `shape' function, return Qnil.
8326
83272008-02-25 Jason Rumney <jasonr@gnu.org>
8328
8329 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
8330
83312008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
8332
8333 Allow fine-grained image-cache flushing.
8334 * dispextern.h (struct image): Add `dependencies' field.
8335 (clear_image_caches): Change arg to Lisp_Object.
8336 * image.c (make_image): Initialize `dependencies' field.
8337 (clear_image_cache): Change arg to allow fine-grained flushing.
8338 Perform the flush even if image-cache-eviction-delay is nil.
8339 (clear_image_caches): Change arg to Lisp_Object.
8340 (Fclear_image_cache): Expand meaning of the argument.
8341 (mark_image): Mark `dependencies' field.
8342 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
8343 (lface_hash): Use XHASH rather than XFASTINT.
8344 (face_at_buffer_position): Fix int -> EMACS_INT position.
8345 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
8346 (select_frame_for_redisplay): Remove code duplication.
8347 (redisplay_internal): Adapt arg to call to clear_image_caches.
8348
83492008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
8350
8351 * s/vms4-0.h:
8352 * s/vms4-2.h:
8353 * s/vms4-4.h:
8354 * s/vms5-5.h: Remove, unused.
8355
8356 * s/irix5-2.h:
8357 * s/irix6-0.h:
8358 * s/riscos5.h:
8359 * s/mach-bsd4-3.h:
8360 * m/mips4.h: Remove files for obsolete systems.
8361
8362 * Makefile.in:
8363 * filelock.c:
8364 * unexmips.c:
8365 * m/hp9000s300.h:
8366 * m/iris4d.h:
8367 * s/aix3-1.h:
8368 * s/hpux.h:
8369 * s/msdos.h:
8370 * s/usg5-0.h:
8371 * s/usg5-2-2.h:
8372 * s/usg5-2.h:
8373 * s/usg5-3.h: Remove references to obsolete variables.
8374
8375 * s/irix5-0.h: Remove, move all the contents ...
8376 * s/irix6-5.h: ... here. Simplify.
8377 * config.in: Regenerate.
8378
83792008-02-24 Jason Rumney <jasonr@gnu.org>
8380
8381 * w32term.c (x_draw_glyph_string_background): Clear the background
8382 manually when cleartype is in use.
8383 (x_draw_glyph_string_foreground): Draw text transparently when
8384 cleartype is in use.
8385
8386 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
8387 a font into it unless we have to.
8388
83892008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8390
8391 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
8392 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 8393
aac0c6e3
MR
83942008-02-18 Jason Rumney <jasonr@gnu.org>
8395
8396 * w32fns.c (Fw32_shell_execute): Encode parameters.
8397
83982008-02-09 Eli Zaretskii <eliz@gnu.org>
8399
8400 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
8401
84022008-02-05 Juanma Barranquero <lekktu@gmail.com>
8403
8404 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
8405
84062008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
8407
8408 * xterm.c (x_set_offset): Don't change the gravity if
8409 CHANGE_GRAVITY is -1.
8410
84112008-02-23 Chong Yidong <cyd@stupidchicken.com>
8412
8413 * fileio.c (auto_save_error_occurred): New var.
8414 (auto_save_error): Set it.
8415 (Fdo_auto_save): Don't overwrite the error message if an auto-save
8416 error occurred.
8417
84182008-02-23 Eli Zaretskii <eliz@gnu.org>
8419
8420 * w32.c (globals_of_w32): Add initializations for
8421 g_b_init_get_sid_sub_authority and
8422 g_b_init_get_sid_sub_authority_count.
8423
84242008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
8425
8426 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
8427 (font_parse_xlfd): Use them for sanity check.
8428 (Finternal_set_font_style_table): Make sure the table is bijective.
8429
8430 Consolidate the image_cache to the terminal struct.
8431 * termhooks.h (P_): Remove redundant def.
8432 (struct terminal): New field `image_cache'.
8433 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
8434 of FRAME_X_IMAGE_CACHE.
8435 * xterm.h (struct x_display_info): Remove image_cache field.
8436 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8437 * w32term.h (struct w32_display_info): Remove image_cache field.
8438 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8439 * macterm.h (struct mac_display_info): Remove image_cache field.
8440 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
8441 * xterm.c (x_term_init):
8442 * w32term.c (w32_term_init):
8443 * macterm.c (mac_term_init): Set the image_cache in the terminal.
8444 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
8445 Remove declarations.
8446 (clear_image_caches, mark_image_cache): New declarations.
8447 * xfaces.c (clear_face_cache):
8448 * xdisp.c (redisplay_internal): Use clear_image_caches.
8449 * image.c (clear_image_cache): Don't check that a frame is on
8450 a window-system before checking if it shares the same cache.
8451 (clear_image_caches): New function.
8452 (Fclear_image_cache): Use it.
8453 (mark_image): Move from allo.c.
8454 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
8455 * alloc.c (mark_image, mark_image_cache): Move to image.c.
8456 (mark_object): Don't call mark_image_cache for frames.
8457 (mark_terminals): Call mark_image_cache.
8458
8459 * lisp.h (Fdelete_terminal): Declare.
8460
8461 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
8462 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
8463 wrong_type_argument.
8464
84652008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
8466
8467 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
8468 malayalam.el, and tamil.el. Add sinhala.el.
8469
84702008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
8471
8472 * xterm.c (x_connection_closed): Consolidate identical tests.
8473 (x_delete_terminal): Don't crash if called via x_connection_closed.
8474
84752008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
8476
8477 * xdisp.c (decode_mode_spec): New arg string.
8478 (display_mode_element): Adjust for the above change.
8479
84802008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
8481
8482 * callint.c (Fcall_interactively): Use AREF.
8483
84842008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
8485
8486 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
8487
84882008-02-18 Jan Djärv <jan.h.d@swipnet.se>
8489
8490 * xfns.c (Fx_show_tip): Set string to " " if empty.
8491
84922008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
8493
8494 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
8495 with Qt.
8496
84972008-02-17 Kenichi Handa <handa@m17n.org>
8498
8499 * ftfont.c (ftfont_shape): Return Lispy number.
8500
8501 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
8502 for GCs.
8503 (Finternal_set_font_selection_order): Call font_update_sort_order
8504 only when enable_font_backend is set.
8505 (realize_x_face): Set face->font_info to that of default face only
8506 when enable_font_backend is set.
8507
8508 * xdisp.c (handle_composition_prop): Set it->c to the fist
8509 character of the composed region.
8510 (fill_composite_glyph_string): Set base_face->font_info to
8511 s->font_info. Get a face for ascii from base_face->ascii_face.
8512 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
8513 with a face already decided.
8514 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
8515 non-negative.
8516 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
8517 call font_prepare_composition unconditionally.
8518
8519 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
8520
8521 * xterm.h (struct x_display_info): New member font.
8522
8523 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
8524 (x_set_mouse_face_gc, x_new_font): Likewise.
8525 (x_term_init): Setup display_info->font.
8526 (x_delete_terminal): Free display_info->font.
8527
8528 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
8529
8530 * ftxfont.c (ftxfont_default_fid): Delete it.
8531 (ftxfont_open): Set xfont->fid to 0.
8532 (ftxfont_end_for_frame): Clear data specific to the frame and the
8533 font-driver.
8534
8535 * xftfont.c (xftfont_default_fid): Delete it.
8536 (xftfont_open): Set xfont->fid to 0.
8537
8538 * fontset.c (FONTSET_OBJLIST): New macro.
8539 (fontset_find_font): Update font-object list of the fontset.
8540 (free_realized_fontset): New function.
8541 (free_face_fontset): Call free_realized_fontset.
8542 (Ffont_info): Call font_close_object only when enable_font_backend
8543 is set.
8544
8545 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
8546 [HAVE_NTGUI]: Include w32term.h.
8547 [MAC_OS]: Include macterm.ch.
8548 (font_otf_ValueRecord): Use make_number.
8549 (font_finish_cache): Fix handling of reference count.
8550 (font_clear_cache): Update num_fonts.
8551 (font_open_entity): Update smallest_char_width and
8552 smallest_font_height of the frame.
8553 (font_close_object): Update num_fonts.
8554 (Fclear_font_cache): Fix finding the target cache data.
8555
85562008-02-16 Glenn Morris <rgm@gnu.org>
8557
8558 * fontset.c (Finternal_char_font): Fix compilation warning.
8559
85602008-02-16 Eli Zaretskii <eliz@gnu.org>
8561
8562 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
8563 instead of char arrays. Enlarge the size of array passed to
8564 get_token_information.
8565
8566 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
8567 warnings.
8568
85692008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
8570
8571 * .gdbinit: Don't set `args', it breaks gdb --args.
8572
85732008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
8574
8575 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
8576 within a narrowed buffer.
8577
85782008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
8579
8580 * coding.c (decode_coding_object, encode_coding_object):
8581 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
8582
85832008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
8584
8585 * coding.c (coding_set_destination): Use BEG_BYTE rather than
8586 hardcoding 1.
8587 (detect_coding_system):
8588 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
8589 (string_char_to_byte, string_byte_to_char, insert_from_gap):
8590 * insdel.c (insert_from_gap):
8591 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
8592 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
8593 (string_to_multibyte):
8594 * character.c (chars_in_text, multibyte_chars_in_text):
8595 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
8596
8597 * character.h (FETCH_STRING_CHAR_ADVANCE)
8598 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
8599 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
8600 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
8601
8602 * casefiddle.c (casify_region): Only call after-change and composition
8603 functions on the part of the region that was changed.
8604
8605 * keyboard.c (read_avail_input):
8606 * frame.c (Fdelete_frame): Call Fdelete_terminal.
8607
86082008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8609
8610 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
8611 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
8612
86132008-02-11 Juanma Barranquero <lekktu@gmail.com>
8614
8615 * w32menu.c (push_submenu_start, push_submenu_end)
8616 (push_left_right_boundary, push_menu_pane, push_menu_item):
8617 * keyboard.c (read_key_sequence): Don't pass args with side effects
8618 to AREF, it fails when compiling with -DENABLE_CHECKING.
8619
86202008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
8621
8622 * Makefile.in (${lispsource}international/charprop.el):
8623 Delete this target.
8624
8625 * search.c (boyer_moore): Fix incorrect synching of the trunk and
8626 emacs-unicode-2.
8627
86282008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
8629
8630 * terminal.c (Fdelete_terminal): Clean up the `force' path.
8631
86322008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8633
8634 * frame.c (Qnoelisp): New symbol.
8635 (syms_of_frame): Initialize it.
8636 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
8637 harmless Elisp code, from a strong `force' from x_connection_closed.
8638 * frame.h (Qnoelisp): Declare.
8639 * xterm.c (x_connection_closed): Pass `noelisp'.
8640
8641 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
8642 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
8643 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
8644 rather than `int' for the type of `type'.
8645
86462008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
8647
8648 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
8649
8650 * Makefile.in (GNUC): Remove support for gcc-1.x.
8651
86522008-02-10 Richard Stallman <rms@gnu.org>
8653
8654 * lisp.h (ASET): Use AREF, not ASLOT.
8655
86562008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
8657
8658 * lisp.h (ASET): Check bounds.
8659
86602008-02-10 Glenn Morris <rgm@gnu.org>
8661
8662 * buffer.c (mode-name): Doc fix.
8663
86642008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8665
8666 * Makefile.in:
8667 * emacs.c:
8668 * gmalloc.c:
8669 * keyboard.c:
8670 * lisp.h:
8671 * m/ibm370aix.h:
8672 * process.c:
8673 * regex.c:
8674 * s/hpux.h:
8675 * sysdep.c:
8676 * sysselect.h:
8677 * systty.h:
8678 * unexec.c:
8679 * w32term.c:
8680 * xsmfns.c:
8681 * xterm.c: Remove code that deals with obsolete variables.
8682
8683 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
8684
8685 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
8686 nothing else needs it anymore.
8687
86882008-02-09 Eli Zaretskii <eliz@gnu.org>
8689
8690 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
8691 instead of unibyte_char_to_multibyte.
8692
86932008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
8694
8695 * s/gnu-linux.h: Remove commented out code.
8696
8697 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
8698
8699 * Makefile.in: Update what RMS says about using autoconf.
8700 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
8701 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
8702 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
8703 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
8704
87052008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
8706
8707 * keymap.c (Fkey_description): Move side effect outside of macro call.
8708
8709 * xfaces.c (Finternal_make_lisp_face):
8710 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
8711
8712 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
8713 (syms_of_fontset): Use ASET.
8714
8715 * fns.c (concat): Move side effect outside of macro call.
8716 (hash_clear): Use ASET.
8717
87182008-02-08 Richard Stallman <rms@gnu.org>
8719
8720 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
8721 If FORCE, and frame has a surrogate minibuffer for another frame,
8722 delete the other frame first.
8723
87242008-02-07 Timo Savola <timo.savola@iki.fi>
8725
8726 * xterm.c (x_detect_focus_change): Handle embed client message.
8727 (handle_one_xevent): Ditto.
8728 (handle_one_xevent): If embedded and we get a button press/release,
8729 request focus.
8730 (xembed_set_info, xembed_send_message): New functions.
8731 (x_make_frame_visible): Call xembed_set_info if embedded.
8732 (x_make_frame_invisible): Call xembed_set_info if embedded.
8733 (x_term_init): Initialize Xatom_XEMBED.
8734 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
8735 (x_iconify_frame): Ditto.
8736
8737 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
8738 (enum xembed_info, enum xembed_message, enum xembed_focus)
8739 (enum xembed_modifier, enum xembed_accelerator): New.
8740 (xembed_set_info, xembed_send_message): Declare.
8741 (FRAME_X_EMBEDDED_P): New.
8742
8743 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
8744 gtk_plug_new.
8745
8746 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
8747 window ID of a frame.
8748 (x_window): Reparent frame if embedded.
8749 (Fx_create_frame): Don't set border width if embedded.
8750
8751 * emacs.c (USAGE3): Add --parent-id.
8752 (standard_args): Ditto.
8753
87542008-02-07 Jan Djärv <jan.h.d@swipnet.se>
8755
8756 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
8757
87582008-02-07 Jim Meyering <meyering@redhat.com>
8759
8760 Use "do...while (0)", not "if (1)...else" in macro definitions.
8761 The latter provokes a warning from gcc about the empty else, when
8762 followed by ";". Also, without that trailing semicolon, it would
8763 silently swallow up any following statement.
8764 * syntax.h (SETUP_SYNTAX_TABLE)
8765 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
8766 * buffer.h (DECODE_POSITION): Likewise.
8767 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
8768 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
8769 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
8770 (FETCH_CHAR_ADVANCE): Likewise.
8771 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
8772
87732008-02-07 Jim Meyering <meyering@redhat.com>
8774
8775 * lread.c [lint]: Don't include <sys/inode.h>.
8776
87772008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
8778
8779 * xselect.c (x_handle_dnd_message):
8780 * xmenu.c (digest_single_submenu, xmenu_show):
8781 * xdisp.c (with_echo_area_buffer_unwind_data)
8782 (format_mode_line_unwind_data, unwind_format_mode_line)
8783 (display_menu_bar):
8784 * eval.c (Ffetch_bytecode):
8785 * doc.c (store_function_docstring):
8786 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
8787 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
8788 * buffer.c (add_overlay_mod_hooklist): Use ASET.
8789
87902008-02-07 Kenichi Handa <handa@m17n.org>
8791
8792 * ftxfont.c (ftxfont_open): Don't set
8793 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
8794
8795 * ftfont.c (ftfont_open): Fix previous change.
8796
87972008-02-06 Jason Rumney <jasonr@gnu.org>
8798
8799 * w32font.c (w32font_text_extents): Fill in lbearing metric.
8800 Use cached metrics for ASCII characters.
8801 (w32font_open_internal): Don't set font's owning_frame.
8802 Cache metrics for ASCII characters.
8803
8804 * w32font.h (struct w32font_info): Add ascii_metrics.
8805 Remove owning_frame.
8806
88072008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
8808
8809 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
8810 to negative value.
8811
8812 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
8813
8814 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
8815
8816 * charset.c (syms_of_charset): Set QCtest and Qeq.
8817
88182008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
8819
8820 * process.c (Fstart_process):
8821 * callproc.c (Fcall_process): Handle the case where
8822 Funhandled_file_name_directory returns nil.
8823
8824 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
8825 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
8826 * font.c (check_gstring): Use them and AREF to access the vector before
8827 we know it's really a gstring.
8828 (Ffont_shape_text): Fix typo.
8829 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Oject mixups.
8830
8831 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
8832 Declare.
8833
8834 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
8835
88362008-02-05 Jason Rumney <jasonr@gnu.org>
8837
8838 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
8839 Set smallest_font_height and smallest_char_width in display info.
8840
88412008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
8842
8843 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
8844
88452008-02-05 Miles Bader <miles@gnu.org>
8846
8847 * xfaces.c (get_lface_attributes, merge_named_face)
8848 (lookup_named_face, lookup_derived_face, realize_named_face):
8849 Revert 2008-02-01 change by cyd@stupidchicken.com.
8850
88512008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
8852
8853 * fontset.c (Ffontset_info): Handle the case of inhibitting the
8854 fallback fonts.
8855 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
8856
88572008-02-04 Jason Rumney <jasonr@gnu.org>
8858
8859 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
8860 set full_name.
8861 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
8862
88632008-02-03 Jason Rumney <jasonr@gnu.org>
8864
8865 * makefile.w32-in (OBJ1): Include font.o here.
8866 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
8867
88682008-02-02 Jason Rumney <jasonr@gnu.org>
8869
8870 * makefile.w32-in (temacs): Bump EMHEAP to 21.
8871
88722008-02-01 Jason Rumney <jasonr@gnu.org>
8873
8874 * s/cygwin.h: Define VIRT_ADDR_VARIES.
8875
8876 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
8877
88782008-02-01 Andreas Schwab <schwab@suse.de>
8879
8880 * Makefile.in (shortlisp, lisp): Update for rename of
8881 ../lisp/language/myanmar.el.
8882
88832008-02-01 Chong Yidong <cyd@stupidchicken.com>
8884
8885 * xfaces.c (get_lface_attributes): Delete function.
8886 (merge_named_face, lookup_named_face, lookup_derived_face)
8887 (realize_named_face): Call lface_from_face_name directly, and use
8888 the fact that merge_face_vectors does not alter its FROM argument.
8889
88902008-02-01 Jason Rumney <jasonr@gnu.org>
8891
8892 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
8893 input in the default locale. Handle non-Unicode multibyte input.
8894
88952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8896
8897 * fontset.c (reorder_font_vector): Exclude nil elements from the
8898 font group. Don't try multiple fonts.
8899 (fontset_font): Adjust for the above change.
8900 (Finternal_char_font): Return nil if the found font doesn't
8901 contain the character ch.
8902
8903 * Makefile.in (lisp, shortlisp): Add cham.el.
8904
89052008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8906
8907 * font.h (FONTP): Make it return 1 also for a font-object.
8908
8909 * .gdbinit (xfontset): New function.
8910
8911 * font.c (font_find_for_lface): Check if the character C is
8912 supported or not only for the first font.
8913
8914 * fontset.c (reorder_font_vector): Fix typo.
8915 (fontset_find_font): Don't add a font-spec specifying a script.
8916 Use 0 (not Qt) for the indication of empty font-group. Change the
8917 format of RFONT-DEF. Return Qt if no font in the font-group
8918 support the character.
8919 (fontset_font): Adjust for the above change. If no font was
8920 found the character, remember that.
8921 (face_for_char): Adjust for the change of RFONT-DEF.
8922 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
8923 no font for the target.
8924 (Finternal_char_font): Adjust for the change of RFONT-DEF.
8925
89262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8927
8928 * font.c (font_load_for_face): Handle the case that the font in
8929 face->lface is a string.
8930
89312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8932
8933 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
8934
89352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8936
8937 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
8938 Fix previous change. If the frame is not on a window system,
8939 signal an error.
8940
89412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8942
8943 * coding.c (decode_coding_object, encode_coding_object): Adjust
8944 marker positions after conversion.
8945
8946 * lisp.h (struct Lisp_Marker): New member need_adjustment.
8947
89482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8949
8950 * font.c (font_find_for_lface): Fix the handling of the return
8951 value of font_has_char.
8952 (Ffont_shape_text): Fix previous change.
8953
8954 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
8955 (fontset_ref_and_range): Delete it.
8956 (fontset_find_font): Call char_table_ref_and_range instead of
8957 FONTSET_REF_AND_RANGE.
8958 (make_fontset): Don't setup font groups of Latin here.
8959 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
8960 (new_fontset_from_font): Make the specified font the default for
8961 all Latin characters.
8962
89632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8964
8965 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
8966 is on a window system before accessing the fontset of the frame.
8967
89682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8969
8970 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
8971
8972 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
8973 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
8974
8975 * font.c (Ffont_shape_text): If the font driver doesn't have a
8976 shaper function, make zero-width glyphs to have at least one-pixel
8977 width. Fix setting of `to' field of glyphs.
8978
89792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
8980
8981 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
8982 glyphs.
8983
8984 * font.h (struct font_driver): Improve docstring of member `shape'.
8985
89862008-02-01 Kenichi Handa <handa@m17n.org>
8987
8988 * composite.c (syms_of_composite): Fix docstring of
8989 auto-composition-function.
8990
8991 * font.h (LGLYPH_SIZE): New macro.
8992
8993 * font.c (Ffont_fill_gstring): Stop filling when a character not
8994 supported by the font is found.
8995 (Ffont_shape_text): When a shape callback function returns nil,
8996 try at most two more times with larger gstring.
8997 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
8998
8999 * xdisp.c (handle_auto_composed_prop): Change the argument to
9000 auto-composition-function.
9001
9002 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
9003 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
9004 Lispy glyph and store it in the lgstring.
9005
9006 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
9007
9008 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
9009
90102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9011
9012 * font.c (Ffont_shape_text): Avoid unnecessary composition.
9013
9014 * fontset.c (Vfont_encoding_charset_alist): New variable.
9015 (syms_of_fontset): DEFVAR it.
9016 (reorder_font_vector, fontset_find_font): Optimize for the case of
9017 no need of reordering.
9018 (face_for_char): Map the charset property by
9019 Vfont_encoding_charset_alist.
9020
90212008-02-01 Jason Rumney <jasonr@gnu.org>
9022
9023 * w32font.c (logfonts_match): Don't check adstyle here.
9024 (font_matches_spec): Check here against physical font instead.
9025 (add_font_entity_to_list): Avoid some substitutions.
9026
9027 * font.c (font_parse_fcname): Default weight and slant to normal.
9028 (font_score): Prefer normal fonts if weight or slant unspecified.
9029 (font_score) [WINDOWSNT]: Scale weight difference down to closer
9030 match freetype scores.
9031
90322008-02-01 Jason Rumney <jasonr@gnu.org>
9033
9034 * w32font.c (w32font_text_extents): Don't use the frame stored in the
9035 font, as it may have been deleted.
9036 (w32_enumfont_pattern_entity): Map generic family to adstyle using
9037 most common hyphenless variation.
9038 (logfonts_match): Check generic family.
9039 (font_matches_spec): Don't check generic family here.
9040 (fill_in_logfont): Set generic family based on adstyle.
9041
9042 * w32font.h (w32font_get_cache): Update declaration.
9043
90442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9045
9046 * ftfont.c (ftfont_get_cache): Adjust the argument type.
9047
9048 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
9049 If none of the new drivers are available, call font_update_drivers
9050 with the old drivers.
9051
9052 * w32font.c (w32font_get_cache): Adjust the argument type.
9053
9054 * xfont.c (xfont_get_cache): Adjust the argument type.
9055
9056 * font.h (struct font_driver): Change argument type of get_cache.
9057
9058 * xftfont.c (xftfont_start_for_frame): Delete prototype.
9059
9060 * font.c (Ffont_get): Fix arguments to Fassoc.
9061 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
9062 (font_clear_cache): New function.
9063 (font_list_entities, font_matching_entity): Use font_get_cache.
9064 (font_update_drivers): Call font_clear_cache when finishing a driver.
9065
9066 * fontset.c (fontset_find_font): Fix previous change.
9067
90682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9069
9070 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
9071 dpyinfo->font_table.
9072 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
9073 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
9074
9075 * font.c (font_at): Handle the case that the arg C is negative.
9076 Handle the unibyte case.
9077 (Ffont_at): Call font_at with the arg C -1.
9078
9079 * xdisp.c (handle_auto_composed_prop): Don't get a character at
9080 the position here, and call font_at with the arg C -1.
9081 Don't check the range of the existing composition at the point.
9082
90832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9084
9085 * fontset.c (fontset_add): New args charset_id and family.
9086 Change caller.
9087 (load_font_get_repertory, fontset_find_font): Assume that
9088 font_spec is always a font-spec object.
9089 (Fset_fontset_font): Always store a font-spec object in a fontset.
9090
9091 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
9092 instead of get_property_and_range.
9093
90942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9095
9096 * xftfont.c (struct xftfont_info): Delete the member ft_face.
9097 (xftfont_open): Don't keep locking face.
9098 (xftfont_close): Don't unlock face.
9099 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
9100
9101 * fontset.c (fontset_find_font): Don't prefer a font of
9102 supplementary charset.
9103
91042008-02-01 Kenichi Handa <handa@m17n.org>
9105
9106 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
9107 script, langsys_tag to langsys, new member script.
9108 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 9109 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
9110 listing to the script specified in that property. Fix arg to
9111 OTF_check_features.
9112
91132008-02-01 Jason Rumney <jasonr@gnu.org>
9114
9115 * w32font.h: New file.
9116
9117 * w32font.c: Include it.
9118 (struct w32font_info): Add owning_frame field. Move to w32font.h.
9119 (w32font_open): Set owning_frame.
9120 (w32font_text_extents): Use owning_frame.
9121 (struct font_callback_data): Add opentype_only field.
9122 (add_font_entity_to_list): Use it to filter fonts.
9123 Don't check against full name.
9124 (w32font_list_internal): New function.
9125 (w32font_list): Use it.
9126 (w32font_match_internal): New function.
9127 (w32font_match): Use it.
9128 (w32font_open_internal): New function.
9129 (w32font_open): Use it.
9130 (w32font_get_cache, w32font_close, w32font_has_char)
9131 (w32font_encode_char, w32font_text_extents, w32font_draw):
9132 Make non-static.
9133
9134 * makefile.w32-in (w32font.o): Depend on w32font.h.
9135
91362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9137
9138 * charset.c (Fdefine_charset_internal): Record a supplementary
9139 charset at the tail of Vcharset_order_list.
9140
9141 * font.c (Ffont_shape_text): Fix the return value.
9142
9143 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
9144
9145 * xdisp.c (handle_auto_composed_prop): Fix previous change.
9146
91472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9148
9149 * ftfont.c (struct OpenTypeSpec): New struct.
9150 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
9151 (ftfont_get_open_type_spec): New function.
9152 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
9153
9154 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
9155
91562008-02-01 Jason Rumney <jasonr@gnu.org>
9157
9158 * w32font.c (add_font_entity_to_list): Compare only the beginning
9159 of full name.
9160
91612008-02-01 Kenichi Handa <handa@m17n.org>
9162
9163 * xdisp.c (handle_auto_composed_prop): Simplify the code.
9164 Never return HANDLED_RECOMPUTE_PROPS.
9165
91662008-02-01 Kenichi Handa <handa@m17n.org>
9167
9168 * font.c (font_gstring_produce): Delete it.
9169
9170 * composite.h (COMPOSITION_METHOD):
9171 Handle COMPOSITION_WITH_GLYPH_STRING.
9172
91732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9174
9175 * xfont.c (Qx): Delete.
9176 (syms_of_xfont): Don't initialize Qx.
9177
9178 * composite.h (enum composition_method):
9179 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
9180
91812008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9182
9183 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
9184 (choose_face_font): Accept new form of font-spec.
9185
9186 * frame.h (font_driver_list): Declare it unconditionally.
9187 (struct frame): Define members font_driver_list and font_data_list
9188 unconditionally.
9189
9190 * fontset.c: Include "font.h" unconditionally.
9191 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
9192 (Fset_fontset_font): Accept a font-spec object.
9193
9194 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
9195 PIXEL_SIZE part a wild card.
9196
9197 * dispextern.h (struct glyph_string): Define members clip and
9198 num_clips unconditionally.
9199 (struct face): Define members font_info and extra unconditionally.
9200
9201 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
9202 ftfont_info only when HAVE_LIBOTF is defined.
9203
92042008-02-01 Andreas Schwab <schwab@suse.de>
9205
9206 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
9207 and end.
9208
92092008-02-01 Jason Rumney <jasonr@gnu.org>
9210
9211 * w32font.c (w32font_driver): Add new fields.
9212
92132008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9214
9215 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
9216 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
9217 (LIBES): Add @M17N_FLT_CFLAGS@.
9218
9219 * composite.c (compose_text): Don't treat the new style
9220 composition specially.
9221
9222 * emacs.c (main): Call syms_of_font unconditionally.
9223
9224 * font.h (FONT_ENTITY_NOT_LOADABLE)
9225 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
9226 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
9227 (struct font_driver): New member shape.
9228 (font_registry_charsets): Extern it.
9229 (font_find_for_lface, font_prepare_composition): Adjust prototype.
9230 (font_otf_capability, font_drive_otf): Delete their externs.
9231
9232 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
9233 (font_charset_alist, font_registry_charsets): Move from xfont.c
9234 and rename.
9235 (font_prop_validate_otf): New function.
9236 (font_property_table): Register it for QCotf.
9237 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
9238 (font_drive_otf): Delete.
9239 (font_prepare_composition): New arg F. Adjust for the change of
9240 lispy gstring.
9241 (font_find_for_lface): New arg C.
9242 (font_load_for_face): Adjust for the change of font_find_for_lface.
9243 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
9244 lispy gstring.
9245 (Ffont_shape_text): New function.
9246 (Fopen_font): If the font size is not given, use 12-pixel.
9247 (Ffont_at): New arg STRING.
9248 (syms_of_font): Initalize font_charset_alist.
9249 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
9250 conditionally.
9251
9252 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
9253 fonts of the same font-spec. Change the format of RFONT-DEF.
9254 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
9255 Adjust for the change of RFONT-DEF.
9256 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
9257
9258 * ftfont.h: New file.
9259
9260 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
9261 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9262 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9263 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
9264 font_otf_capability and font_drive_otf, set ftfont_shape.
9265 (ftfont_list): Adjust for the change of :otf property value.
9266 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
9267 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
9268 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
9269 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9270 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
9271 (otf_gstring, gstring, m17n_flt_initialized): New variables.
9272
9273 * w32term.c (x_draw_composite_glyph_string_foreground):
9274 Adjust for the change of lispy gstring.
9275
9276 * xdisp.c (handle_composition_prop): Adjust for the change of
9277 lispy gstring. Call a function for auto-composition with the
9278 third arg it->window.
9279 (fill_composite_glyph_string): Adjust for the change of lispy string.
9280 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
9281
9282 * xfaces.c (set_font_frame_param): Adjust for the change of
9283 font_find_for_lface.
9284
9285 * xfont.c (x_font_charset_alist): Move to font.c and rename.
9286 (xfont_registry_charsets): Likewise. Change caller.
9287 (syms_of_xfont): Don't handle x_font_charset_alist.
9288
9289 * xftfont.c: Include "ftfont.h".
9290 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
9291 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
9292 (xftfont_close) [HAVE_LIBOTF]: Close otf.
9293 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
9294 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
9295 Set xftfont_driver.shape to xftfont_shape.
9296
9297 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
9298 the change of lispy gstring.
9299
93002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9301
9302 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
9303
93042008-02-01 Jason Rumney <jasonr@gnu.org>
9305
9306 * w32font.c (w32font_draw): Fill background manually.
9307
93082008-02-01 Jason Rumney <jasonr@gnu.org>
9309
9310 * font.c (Qfontp): Remove unused symbol.
9311 (QCantialias): New symbol.
9312 (syms_of_font): Define it.
9313 (font_property_table): Set a validator for QCantialias.
9314
9315 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
9316 Define if not already.
9317 (QCfamily): Share with xfaces.c.
9318 (Qstandard, Qsubpixel, Qnatural): New symbols.
9319 (syms_of_w32font): Define them. Don't define QCfamily here.
9320 (w32_antialias_type, lispy_antialias_type): New functions.
9321 (w32_enumfont_pattern_entity): New arg requested_font.
9322 Set antialias parameter if non-default was requested.
9323 (fill_in_logfont): Fill in lfQuality if :antialias specified.
9324
93252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9326
9327 * lread.c (read1): Undo the previous change.
9328
93292008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
9330
9331 * frame.c (Fdelete_frame): Call font_update_drivers only when
9332 USE_FONT_BACKEND is defined.
9333
93342008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9335
9336 * font.h (struct font_bitmap): New member bits_per_pixel.
9337 (struct font_driver): New members start_for_frame and end_for_frame.
9338 (struct font_data_list): New struct.
9339 (font_put_frame_data, font_get_frame_data): Extern them.
9340
9341 * frame.h (struct frame): New member font_data_list.
9342
9343 * font.c (font_update_drivers): Call driver->start_for_frame and
9344 driver->end_for_frame at proper timings.
9345 (font_put_frame_data, font_get_frame_data): New functions.
9346 (Ffont_spec): Add usage in the docstring.
9347
9348 * frame.c (make_frame): Initialize f->font_data_list to NULL.
9349 (Fdelete_frame): Call font_update_drivers.
9350
9351 * xftfont.c (struct xftface_info): Delete the member xft_draw.
9352 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
9353 (xftfont_get_xft_draw): New function.
9354 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
9355 (xftfont_end_for_frame): New function.
9356 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
9357
9358 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
9359 Change argument. Cache GCs in the per-frame data.
9360 (struct ftxfont_frame_data): New struct.
9361 (ftxfont_draw_bitmap): New arg gc_fore and flush.
9362 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
9363 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
9364 (ftxfont_end_for_frame): New function.
9365 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
9366
9367 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
9368
93692008-02-01 Kenichi Handa <handa@m17n.org>
9370
9371 * xselect.c (Vselection_coding_system)
9372 (Vnext_selection_coding_system): Delete them.
9373 (syms_of_xselect): Don't declare selection-coding-system and
9374 next-selection-coding-system. They are declared in select.el.
9375
93762008-02-01 Jason Rumney <jasonr@gnu.org>
9377
9378 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
9379
9380 * w32fns.c: Include imm.h.
9381 (get_composition_string_fn, get_ime_context_fn): New optional
9382 system functions.
9383 (globals_of_w32fns): Load them from imm32.dll.
9384 (ignore_ime_char): New flag.
9385 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
9386 WM_IME_ENDCOMPOSITION messages.
9387
9388 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
9389 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
9390
93912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9392
9393 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
9394 (READCHAR_REPORT_MULTIBYTE): New macro.
9395 (readchar): New 2nd arg MULTIBYTE.
9396 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
9397 Make symbol's name multibyte according to the multibyteness of the
9398 source.
9399
94002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9401
9402 * xfaces.c (face_for_overlay_string): Call lookup_face with
9403 correct arguments (fix of synching with the trunk).
9404
94052008-02-01 Kenichi Handa <handa@m17n.org>
9406
9407 * font.c (font_prop_validate_symbol, font_prop_validate_style)
9408 (font_prop_validate_non_neg, font_prop_validate_spacing):
9409 Delete argument prop_index.
9410 (font_property_table): Change arguments to validater. Change Callers.
9411 (font_lispy_object): Delete.
9412 (font_at): Use font_find_object instead fo font_lispy_object.
9413
94142008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
9415
9416 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
9417 and file names.
9418
94192008-02-01 Jason Rumney <jasonr@gnu.org>
9420
9421 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
9422 (font_matches_spec): Remove debug output.
9423 (add_font_entity_to_list): Avoid using substituted fonts.
9424
94252008-02-01 Jason Rumney <jasonr@gnu.org>
9426
9427 * doc.c (Fsnarf_documentation):
9428 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
9429
94302008-02-01 Miles Bader <miles@gnu.org>
9431
9432 * dispextern.h (struct glyph_row): Only define "clip" field if
9433 HAVE_WINDOW_SYSTEM is defined.
9434
94352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9436
9437 Fix up multi-tty merge.
9438
9439 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
9440 and indentation.
9441
9442 * xfaces.c (free_realized_face, clear_face_gcs):
9443 Include font_done_for_face in the input_blocked section, just in case.
9444
9445 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
9446 (get_char_face_and_encoding): Undo last change and remove the *other*
9447 duplicate definition (i.e. keep the one that's better scoped and that
9448 includes code for the font-backend).
9449
9450 * terminal.c (create_terminal): Default keyboard_coding to
9451 `no-conversion' and terminal_coding to `undecided'.
9452
9453 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
9454
9455 * fontset.c (free_realized_fontsets): Check that the table entry does
9456 contain a fontset before trying to compare it to `base'.
9457
9458 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
9459 syms_of_charset, and syms_of_coding earlier because init_window_once
9460 now needs Vcoding_system_hash_table to be setup.
9461
9462 * coding.h (default_buffer_file_coding): Remove.
9463
9464 * coding.c (default_buffer_file_coding): Remove.
9465 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
9466 than ->symbol, and use the terminal-local coding system.
9467 (syms_of_coding): Don't setup the coding-systems that are not
9468 terminal-local.
9469 (Fdefine_coding_system_internal): Use XCAR/XCDR.
9470
9471 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
9472 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
9473
9474 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
9475 in chartab.c and were re-added here by mistake.
9476 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
9477
9478 * doc.c (Fsnarf_documentation):
9479 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
9480 src to etc.
9481
9482 * ChangeLog.10: Add mistakenly removed entry.
9483
94842008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
9485
9486 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
9487
94882008-02-01 Miles Bader <miles@gnu.org>
9489
9490 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
9491 Add extra args to FACE_FOR_CHAR.
9492
94932008-02-01 Kenichi Handa <handa@m17n.org>
9494
9495 * keymap.c (where_is_internal_1): If key is a cons, store the copy
9496 in sequence.
9497
9498 * chartab.c (map_sub_char_table, map_char_table): If the range
9499 contains just one character, call the function with that character
9500 even if the depth is not 3.
9501
95022008-02-01 Jason Rumney <jasonr@gnu.org>
9503
9504 * w32font.c (w32font_text_extents): Calculate metrics for the
9505 whole string.
9506
95072008-02-01 Jason Rumney <jasonr@gnu.org>
9508
9509 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
9510
95112008-02-01 Jason Rumney <jasonr@gnu.org>
9512
9513 * w32term.c (x_set_glyph_string_clipping): Use
9514 get_glyph_string_clip_rects.
9515 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9516 Adjust for the change of struct glyph_string.
9517
9518 * w32font.c (w32font_draw): Do clipping here.
9519
95202008-02-01 Kenichi Handa <handa@m17n.org>
9521
9522 * xftfont.c (xftfont_draw): Adjust for the change of struct
9523 glyph_string.
9524
9525 * xterm.c (x_set_glyph_string_clipping): Use
9526 get_glyph_string_clip_rects.
9527 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
9528 Adjust for the change of struct glyph_string.
9529
9530 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
9531 the resulting clip(s}.
9532 (expose_overlaps): Add arg r. Change callers. Set it to
9533 row->clip temporarily.
9534 (expose_window): Redraw rows overlapping the exposed area.
9535
9536 * dispextern.h (struct glyph_row): New member clip.
9537 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
9538 clip_height, new member clip, and num_clips.
9539
95402008-02-01 Kenichi Handa <handa@m17n.org>
9541
9542 * data.c (Fchar_or_string_p): Fix docstring.
9543
95442008-02-01 Kenichi Handa <handa@m17n.org>
9545
9546 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
9547 create a temporary XftDraw object.
9548
95492008-02-01 Kenichi Handa <handa@m17n.org>
9550
9551 * font.c (Ffontp): Fix docstring.
9552
9553 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
9554 strong evidence of ISO-2022.
9555
95562008-02-01 Kenichi Handa <handa@m17n.org>
9557
9558 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
9559 SYNTAX_ENTRY_FOLLOW_PARENT.
9560
95612008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
9562
9563 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
9564 its type.
9565 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
9566 Update to the new type of weak_hash_tables and next_weak.
9567
9568 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
9569 a plain C pointer to Lisp_Hash_Table.
9570
9571 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
9572 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
9573 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
9574 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
9575 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
9576 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
9577 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
9578 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
9579 (GC_EQ): Remove since they've been identical to their non-GC_
9580 alter-egos ever since the markbit was eradicated.
9581
9582 * alloc.c:
9583 * buffer.c:
9584 * buffer.h:
9585 * data.c:
9586 * fileio.c:
9587 * filelock.c:
9588 * fns.c:
9589 * frame.h:
9590 * lisp.h:
9591 * macterm.c:
9592 * print.c:
9593 * process.c:
9594 * w32fns.c:
9595 * w32menu.c:
9596 * w32term.c:
9597 * xfns.c:
9598 * xmenu.c:
9599 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
9600
96012008-02-01 Kenichi Handa <handa@m17n.org>
9602
9603 * chartab.c (map_sub_char_table): Make it work for the top-level
9604 char-table. Fix handling of parent char-table.
9605 (map_char_table): Adjust for the above change.
9606
96072008-02-01 Jason Rumney <jasonr@gnu.org>
9608
9609 * w32font.c (Qgdi): Rename from Qw32.
9610
96112008-02-01 Jason Rumney <jasonr@gnu.org>
9612
9613 * w32bdf.c (get_quoted_string): Make function static.
9614
96152008-02-01 Kenichi Handa <handa@m17n.org>
9616
9617 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
9618 bigger ascent and descent than those of the font, use them as
9619 font's ascent and descent.
9620
96212008-02-01 Kenichi Handa <handa@m17n.org>
9622
9623 * Makefile.in (${lispsource}international/charprop.el): Move this
9624 target within "#ifdef HAVE_UNIDATA" and "#endif".
9625
96262008-02-01 Kenichi Handa <handa@m17n.org>
9627
9628 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
9629 (shortlisp): Add ../lisp/language/tai-viet.el.
9630
96312008-02-01 Ulrich Mueller <ulm@gentoo.org>
9632
9633 * Makefile.in (${lispsource}international/charprop.el): Depend on
9634 temacs${EXEEXT}.
9635
96362008-02-01 Jason Rumney <jasonr@gnu.org>
9637
9638 * w32font.c (w32font_close): Delete the GDI font object.
9639
9640 * w32menu.c: Include character.h.
9641
9642 * w32proc.c: Likewise.
9643
9644 * w32select.c: Likewise.
9645
9646 * makefile.w32-in (w32proc.o): Depend on character.h.
9647
96482008-02-01 Jason Rumney <jasonr@gnu.org>
9649
9650 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
9651
9652 * w32menu.c (syms_of_w32menu): Likewise.
9653
9654 * w32proc.c (syms_of_ntproc): Likewise.
9655
9656 * w32select.c (syms_of_w32select): Likewise.
9657
9658 * w32term.c (syms_of_w32term): Likewise.
9659
96602008-02-01 Jason Rumney <jasonr@gnu.org>
9661
9662 * w32font.c (w32font_draw): Delete brush after using it.
9663
96642008-02-01 Jason Rumney <jasonr@gnu.org>
9665
9666 * w32font.c (w32font_open): Don't set font_idx.
9667 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
9668 to font settings.
9669 (w32font_draw): Fill background explicitly.
9670
96712008-02-01 Jason Rumney <jasonr@gnu.org>
9672
9673 * w32term.c (w32_initialize): Don't call w32font_initialize.
9674
9675 * w32font.c (w32font_info): Remove subranges.
9676 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
9677 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
9678 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
9679 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
9680 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
9681 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
9682 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
9683 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
9684 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
9685 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
9686 New symbols.
9687 (font_callback_data): New struct.
9688 (w32font_list, w32font_match): Use it.
9689 (w32font_open): Don't populate subranges.
9690 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
9691 (w32font_encode_char): Always return unicode code-point as-is.
9692 (w32font_text_extents): Supply a transformation matrix to
9693 GetGlyphOutline. Never look up by glyph index. Avoid looping
9694 twice. Use unicode version of GetTexExtentPoint32 instead of
9695 glyph index version.
9696 (set_fonts_frame): Remove.
9697 (w32_enumfont_pattern_entity): Add frame parameter, use it to
9698 set frame parameter. Use backward compatible fake foundries.
9699 Save generic family in extra slot under QCfamily. Make width slot
9700 constant. Save QCspacing value. Save list of scripts instead of
9701 binary subranges.
9702 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
9703 (add_font_entity_to_list): Use font_callback_data struct. Filter
9704 unwanted fonts.
9705 (add_one_font_entity_to_list): Use font_callback_data struct.
9706 (w32_registry): Default to iso10646_1.
9707 (fill_in_logfont): Use dpi from extra slot. Don't bother with
9708 string font registries. Don't fill in font name if it is a generic
9709 family name, fill family instead. Use spacing, family and script
9710 extra info to fill pitch, family and charset fields.
9711 (list_all_matching_fonts): Use font_callback_data struct.
9712 (unicode_range_for_char): Remove.
9713 (font_supported_scripts): New function.
9714 (w32font_initialize): Remove.
9715 (syms_of_w32font): Update which symbols are defined.
9716
97172008-02-01 Jason Rumney <jasonr@gnu.org>
9718
9719 * font.c (font_pixel_size): Reverse assq_no_quit args.
9720
9721 * w32term.h (FONT_WIDTH): Report max width, not average.
9722 (FONT_MAX_WIDTH): Remove.
9723 (FONT_AVG_WIDTH): New macro.
9724
9725 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
9726 redefinition of FONT_WIDTH.
9727
9728 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
9729 (w32_cache_char_metrics): Use FONT_WIDTH.
9730
9731 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
9732
97332008-02-01 Jason Rumney <jasonr@gnu.org>
9734
9735 * w32font.c (w32font_open): Make lfHeight negative.
9736
9737 * w32fns.c (x_default_font_parameter): Use new style font name.
9738 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
9739
97402008-02-01 Jason Rumney <jasonr@gnu.org>
9741
9742 * w32font.c (QCsubranges): New symbol.
9743 (w32font_open, w32font_has_char): Get subranges from subproperty
9744 of extra.
9745 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
9746 (syms_of_w32font): Define :subranges symbol.
9747
9748 * font.c (font_put_extra): Expose externally.
9749
9750 * font.h (font_put_extra): Move declaration from font.c.
9751
9752 * font.c (Ffont_get): Use font driver to determine otf capability.
9753 (adjust_anchor): Check if driver defines anchor_point before using.
9754
9755 * w32font.c (w32font_open): Handle size, height and pixel_size better.
9756 (w32font_draw): Use options.
9757 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
9758 Fix detection of truetype fonts.
9759 (registry_to_w32_charset): Handle charsets other than iso8859-1
9760 expressed as lisp symbols.
9761 (w32_registry): Express charset as lisp symbol.
9762 (fill_in_logfont): Reverse pixel and point height logic.
9763 Don't set width here. Set quality to default.
9764
9765 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
9766 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
9767
9768 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9769 Remove redundant loop and allocation.
9770
9771 * makefile.w32-in (font.o, w32font.o): New objects.
9772 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
9773 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
9774
9775 * xdisp.c (fill_composite_glyph_string): Make the first arg to
9776 STORE_XCHARB a valid l-value.
9777
9778 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
9779 calculations for non-Truetype fonts.
9780 (x_draw_glyph_string): Sync with xterm.c.
9781 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
9782 Remove redundant code.
9783 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
9784
9785 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
9786 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
9787
9788 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
9789 (x_to_w32_charset, w32_to_x_charset): Expose externally.
9790
9791 * w32font.c: New file for w32 font backend.
9792
97932008-02-01 Kenichi Handa <handa@m17n.org>
9794
9795 * term.c: Don't include "buffer.h" twice.
9796
97972008-02-01 Kenichi Handa <handa@m17n.org>
9798
9799 * character.c (Funibyte_string): New function.
9800 (syms_of_character): Defsubr it.
9801
98022008-02-01 Jason Rumney <jasonr@gnu.org>
9803
9804 * w32term.c [USE_FONT_BACKEND]:
9805 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
9806 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
9807 (x_draw_glyph_string, x_draw_glyph_string_foreground)
9808 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
9809 (x_free_frame_resources): Sync with xterm.c.
9810
98112008-02-01 Andreas Schwab <schwab@suse.de>
9812
9813 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
9814 char-table size.
9815
98162008-02-01 Kenichi Handa <handa@m17n.org>
9817
9818 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
9819
98202008-02-01 Kenichi Handa <handa@m17n.org>
9821
9822 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
9823 font_otf_gpos, add font_drive_otf.
9824
9825 * fontset.c (fontset_find_font): Pay attention to font size
9826 specified for a font.
9827 (reorder_font_vector): Check contents of font_def.
9828
9829 * font.c (struct otf_list): Delete it.
9830 (otf_list): Make it a lisp variable.
9831 (otf_open): Use lispy otf_list.
9832 (generate_otf_features): Rename from parse_gsub_gpos_spec.
9833 (check_otf_features): New function.
9834 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
9835 New functions.
9836 (font_drive_otf): New function merging font_otf_gsub and
9837 font_otf_gpos.
9838 (font_open_for_lface): New arg spec. Change argument order.
9839 (font_load_for_face): Adjust for the change of font_open_for_lface.
9840 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
9841 Ffont_otf_gpos.
9842 (syms_of_font): Staticpro otf_list. Delete defsubr of
9843 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
9844
9845 * xfaces.c (set_font_frame_param): Adjust for the change of
9846 font_open_for_lface.
9847
9848 * font.h (font_open_for_lface): Adjust prototype.
9849 (struct font_driver): Delete members otf_gsub and otf_gpos, add
9850 member otf_drive.
9851 (font_otf_gsub, font_otf_gpos): Delete externs.
9852 (font_drive_otf): Extern it.
9853
98542008-02-01 Kenichi Handa <handa@m17n.org>
9855
9856 * font.c (font_at): If the window W is not on a window system,
9857 return Qnil.
9858
9859 * coding.c (produce_chars, encode_coding): Don't call
9860 insert_from_gap if no characters to produce.
9861
98622008-02-01 Kenichi Handa <handa@m17n.org>
9863
9864 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
9865 Fclear_face_cache.
9866
9867 * xfaces.c (face_for_font): Check also face->font==font->font.font.
9868
98692008-02-01 Miles Bader <miles@gnu.org>
9870
9871 * emacs.c (main): Change default value of `enable_font_backend' to 1.
9872 Parse "--disable-font-backend" option.
9873 (standard_args): Add "--disable-font-backend" option.
9874
98752008-02-01 Kenichi Handa <handa@m17n.org>
9876
9877 * fontset.c (fontset_find_font): New function.
9878 (fontset_font): Use fontset_find_font.
9879 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
9880 Register the specified font for all Latin characters.
9881 (new_fontset_from_font): Register the specified font for all Latin
9882 characters.
9883 (dump_fontset): For a realized fontset, include the base fontset
9884 name in the returned vector.
9885
98862008-02-01 Kenichi Handa <handa@m17n.org>
9887
9888 * character.h (CHAR_STRING): Cast C to unsigned on calling
9889 char_string.
9890
9891 * character.c (char_string): Type of arg C changed to unsigned.
9892 Signal an error if C is an invalid character code.
9893
9894 * editfns.c (general_insert_function, Fchar_to_string):
9895 Use CHARACTERP, not INTEGERP.
9896
98972008-02-01 Kenichi Handa <handa@m17n.org>
9898
9899 * character.h (MIN_MULTIBYTE_LEADING_CODE)
9900 (MAX_MULTIBYTE_LEADING_CODE): New macros.
9901
9902 * regex.c (analyse_first): Fix for multibyte characters in "case
9903 charset:" and "case categoryspec:".
9904
99052008-02-01 Andreas Schwab <schwab@suse.de>
9906
9907 * Makefile.in (LIBES): Move standard libraries to the end.
9908
99092008-02-01 Kenichi Handa <handa@m17n.org>
9910
9911 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
9912 nonzero, don't shrink the buffer nextb.
9913
9914 * buffer.h (struct buffer_text): New member inhibit_shrinking.
9915
9916 * coding.c (coding_alloc_by_making_gap): New arg offset.
9917 (alloc_destination): Call coding_alloc_by_making_gap with the arg
9918 offset.
9919 (decode_coding_iso_2022): Update coding->safe_charsets.
9920 (decode_coding_gap): Temporarily set
9921 current_buffer->text->inhibit_shrinking to 1.
9922
99232008-02-01 Kenichi Handa <handa@m17n.org>
9924
9925 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
9926 indexing into elements of s->cmp and s->char2b.
9927
99282008-02-01 Juanma Barranquero <lekktu@gmail.com>
9929
9930 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
9931
99322008-02-01 Kenichi Handa <handa@m17n.org>
9933
9934 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
9935 target_multibyte instead of multibyte.
9936 (re_match_2_internal): Call bcmp_translate with target_multibyte.
9937 (bcmp_translate): Change the argument name from multibyte to
9938 target_multibyte.
9939
99402008-02-01 Kenichi Handa <handa@m17n.org>
9941
9942 These changes are to compile a regexp into a pattern that can be
9943 used both for multibyte and unibyte targets.
9944
9945 * Makefile.in (search.o): Depend on charset.h.
9946
9947 * character.c (multibyte_char_to_unibyte_safe): New function.
9948
9949 * search.c: Include "charset.h".
9950 (compile_pattern_1): Delete argument multibyte. Don't set
9951 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
9952 (compile_pattern): Don't compare cp->buf.target_multibyte.
9953 Compare cp->buf.charset_unibyte.
9954 (compile_pattern): Set cp->buf.target_multibyte.
9955
9956 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
9957
9958 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
9959
9960 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
9961 multibyte. Change callers.
9962 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
9963 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
9964 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
9965 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
9966 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
9967 (regex_compile): Make the compiled pattern usable both for
9968 multibyte and unibyte targets.
9969 (analyse_first): Make the fastmap usable both for multibyte and
9970 unibyte targets.
9971 (TRANSLATE_VIA_MULTIBYTE): Delete.
9972 (re_match_2_internal): Pay attention to the case that the
9973 multibyteness of bufp and target may be different.
9974
99752008-02-01 Kenichi Handa <handa@m17n.org>
9976
9977 * xdisp.c (x_produce_glyphs): When a font is not found, make the
9978 empty box occupy at least one column width.
9979
99802008-02-01 Miles Bader <miles@gnu.org>
9981
9982 * Makefile.in: Remove redundant HAVE_XFT clause.
9983
99842008-02-01 Kenichi Handa <handa@m17n.org>
9985
9986 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
9987
99882008-02-01 Kenichi Handa <handa@m17n.org>
9989
9990 * fontset.c (Finternal_char_font): Fix for the case of POSITION
9991 being nil.
9992
99932008-02-01 Kenichi Handa <handa@m17n.org>
9994
9995 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
9996
99972008-02-01 Kenichi Handa <handa@m17n.org>
9998
9999 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
10000
100012008-02-01 Kenichi Handa <handa@m17n.org>
10002
10003 * search.c (simple_search): Fix previous change.
10004
100052008-02-01 Kenichi Handa <handa@m17n.org>
10006
10007 * xftfont.c (ftfont_font_format): Extern declaration.
10008
10009 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
10010
10011 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
10012 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
10013
10014 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
10015 (ftfont_font_format): Fix previous change.
10016
10017 * font.h (Ffont_xlfd_name): EXFUN it.
10018
10019 * font.c (font_parse_xlfd): Fix the array size of `f'.
10020 (register_font_driver): Use EQ to compare driver->type.
10021
10022 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
10023 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
10024 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
10025
100262008-02-01 Kenichi Handa <handa@m17n.org>
10027
10028 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
10029 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
10030
100312008-02-01 Kenichi Handa <handa@m17n.org>
10032
10033 * xfont.c (xfont_open): Set font->format.
10034
10035 * xftfont.c (xftfont_open): Set font->format.
10036
10037 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
10038 (ftfont_list): Include FC_FONTFORMAT in FcObject.
10039 (ftfont_open): Set font->format.
10040 (ftfont_font_format): New function.
10041
10042 * font.h (struct font): New member format.
10043
10044 * font.c (Qopentype): New variable.
10045 (syms_of_font): Defsym it.
10046 (Fquery_font): Change the format of the last element of the return
10047 value.
10048
100492008-02-01 Kenichi Handa <handa@m17n.org>
10050
10051 * xfns.c (xic_create_xfontset): Try the default fontset name as a
10052 last resort.
10053
100542008-02-01 Kenichi Handa <handa@m17n.org>
10055
10056 * coding.c (detect_coding_charset): Fix detection of multi-byte
10057 charset.
10058
100592008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
10060
10061 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
10062
100632008-02-01 Kenichi Handa <handa@m17n.org>
10064
10065 * xdisp.c (get_next_display_element): Set it->face_id for the
10066 first component of a composition.
10067 (x_produce_glyphs): Check if the font is changed or not for composition.
10068
100692008-02-01 Kenichi Handa <handa@m17n.org>
10070
10071 * fontset.c (Qlatin): New variable.
10072 (syms_of_fontset): Define it as a lisp symbol.
10073 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
10074
100752008-02-01 Kenichi Handa <handa@m17n.org>
10076
10077 * font.c (font_unparse_fcname): Pay attention to the case that
10078 some of font property is a null string.
10079
100802008-02-01 Kenichi Handa <handa@m17n.org>
10081
10082 * term.c: Include "composite.h".
10083 (encode_terminal_code): Output all components of composition.
10084 Check the size of encode_terminal_src.
10085 (produce_glyphs): For composition, call produce_composite_glyph.
10086 (append_composite_glyph, produce_composite_glyph): New functions.
10087
10088 * xdisp.c (x_produce_glyphs): In handling composition, if a font
10089 is not found, get font_info from the current ascii face.
10090
100912008-02-01 Kenichi Handa <handa@m17n.org>
10092
10093 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
10094 buffer-file-name to Qnil before calling insert_from_buffer.
10095
10096 * font.c (font_unparse_fcname): Pay attention to the case that
10097 foundry is a null string.
10098
100992008-02-01 Kenichi Handa <handa@m17n.org>
10100
10101 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
10102
10103 * font.c (Qunicode_sip): New variable.
10104 (syms_of_font): Declare it as a Lisp symbol.
10105
10106 * font.h (Qunicode_sip): Extern it.
10107
101082008-02-01 Kenichi Handa <handa@m17n.org>
10109
10110 * composite.c (get_composition_id): Pay attention to TAB component.
10111
10112 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
10113 TAB. Adjust for the change of s->char2b which always points to
10114 the first element of allocated memory.
10115
10116 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
10117
10118 * xdisp.c (handle_composition_prop): Set it->c to the first
10119 non-TAB component.
10120 (fill_composite_glyph_string): Change argument.
10121 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
10122 (x_produce_glyphs): Fix handling of left/right padding.
10123
101242008-02-01 Kenichi Handa <handa@m17n.org>
10125
10126 * coding.c (detect_coding_system): Fix for handling off
10127 inhibit_iso_escape_detection. Fix for the case that no coding
10128 system is defined for a specific coding category.
10129
101302008-02-01 Kenichi Handa <handa@m17n.org>
10131
10132 * font.c (font_matching_entity): Delete unused local var.
10133
10134 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
10135 opening a font.
10136
10137 * fileio.c (Finsert_file_contents): On recovering a file, assume
10138 Unix-like eol.
10139 (choose_write_coding_system): On auto-saving a file, force
10140 Unix-like eol.
10141
10142 * coding.c (setup_coding_system): Fix setting of
10143 coding->common_flags based on eol_type.
10144 (coding_inherit_eol_type): If PARENT is not nil, be sure to
10145 inherit from it.
10146
101472008-02-01 Kenichi Handa <handa@m17n.org>
10148
10149 * alloc.c (NSTATICS): Increas to 0x600.
10150
101512008-02-01 Kenichi Handa <handa@m17n.org>
10152
10153 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
10154 (ftfont_list): Don't check :name property.
10155 (ftfont_match): New function.
10156 (ftfont_pattern_entity): If the pattern doesn't contain
10157 FC_SPACING, don't assume FC_MONO.
10158
10159 * font.h (struct font_driver): New member `match'.
10160 (font_update_drivers): Adjust prototype.
10161
10162 * font.c (font_parse_fcname, font_parse_name): Don't change :name
10163 property of FONT.
10164 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
10165 them unconditionally.
10166 (font_matching_entity): New function.
10167 (font_open_by_name): Try font_matching_entity if exact match is
10168 not found.
10169 (font_update_drivers): Delete the arg FONT. Return a list of
10170 actually used backends. Don't free faces, font caches here.
10171 Don't store data in frame parameters. Don't call x_set_font.
10172 (Ffont_spec): Store :name property as is.
10173 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
10174 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
10175 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
10176 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
10177 Call font->driver->otf_gsub instead of font_otf_gsub.
10178
10179 * frame.c (x_set_font_backend): Do more works that were done in
10180 font_update_drivers before.
10181
10182 * xfont.c (xfont_match): New function.
10183 (xfont_driver): Set xfont_driver.match to xfont_match.
10184 (xfont_draw): Set font in GC if necessary.
10185
10186 * ftxfont.c (ftxfont_match): New function.
10187 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
10188
10189 * xftfont.c (xftfont_match): New function.
10190 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
10191
101922008-02-01 Kenichi Handa <handa@m17n.org>
10193
10194 * font.h (struct font): New member scalable.
10195 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
10196 (font_otf_gsub): Adjust prototype.
10197
10198 * font.c (font_otf_capability): Fix handling of the default langsys.
10199 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
10200 Check the contents of SPEC.
10201 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
10202 (check_gstring): New function.
10203 (REPLACEMENT_CHARACTER): New macro.
10204 (font_otf_gsub): New arg alternate_subst. Be sure to set all
10205 glyph codes of GSTRING.
10206 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
10207 (font_prepare_composition): Set cmp->glyph_len.
10208 (font_open_entity): Set font->scalable.
10209 (Ffont_get): Handle :otf property.
10210 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
10211 functions.
10212 (Fquery_font): Use font->font.full_name.
10213 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
10214 Sfont_otf_alternates.
10215
10216 * ftfont.c (ftfont_open): Set font->font.full_name and
10217 font->font.name properly. Fix calculation of font->font.height
10218 and font->min_width.
10219
10220 * ftxfont.c (ftxfont_create_gcs): New function.
10221 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
10222 (ftxfont_draw_backgrond): Fix filling region.
10223 (ftxfont_default_fid): New function.
10224 (ftxfont_open): Set xfont->fid to the return value of
10225 ftxfont_default_fid.
10226 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
10227 (ftxfont_done_face): Free only GCs that are created by
10228 ftxfont_create_gcs.
10229 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
10230
10231 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
10232 Clip to src->width, etc (not src->clip_XXX).
10233
10234 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
10235 FontBackend frame parameter.
10236
102372008-02-01 Kenichi Handa <handa@m17n.org>
10238
10239 * font.h (struct font_driver_list): New member `on'.
10240 (Fclear_font_cache): EXFUN it.
10241 (font_update_drivers): Extern it.
10242
10243 * font.c (font_unparse_fcname): Fix typo (swidth->width).
10244 (font_list_entities): Check driver_list->on.
10245 (register_font_driver): Initalize `on' member to 0.
10246 (font_update_drivers): New function.
10247 (Fclear_font_cache): Check driver_list->on.
10248
10249 * frame.h (Qfont_backend): Extern it.
10250 (x_set_font_backend): Extern it.
10251
10252 * frame.c (Qfont_backend): New variable.
10253 (frame_parms): New element for font-backend.
10254 (x_set_font_backend): New function.
10255
10256 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
10257 FontBackend frame parameter.
10258 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
10259 x_set_font_backend.
10260
10261 * xfont.c (xfont_list): Don't try listing by :name property if the
10262 name is not for XLFD.
10263
102642008-02-01 Kenichi Handa <handa@m17n.org>
10265
10266 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
10267 (LGLYPH_SET_TO): New macros.
10268 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
10269 element of G is vector or not.
10270 (font_at): Extern it.
10271
10272 * font.c: Include window.h.
10273 (font_lispy_object): New function.
10274 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
10275 end of valid glyph.
10276 (font_close_object): Fix getting (struct font *).
10277 (font_at): New function.
10278 (Ffont_get): If FONT is a font-object, get entity from it.
10279 (Ffont_make_gstring): Initialize elements of glyphs with nil.
10280 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
10281 range check.
10282 (Ffont_at): New function.
10283 (syms_of_font): Defsubr Sfont_at.
10284
10285 * xdisp.c (it_props): Move the entry for Qauto_composed to just
10286 before the entry for Qcomposition.
10287 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
10288 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
10289 the font in gstring.
10290 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
10291 LGLYPH_FORM (g) to detect the end of valid glyph.
10292 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
10293 we are composing with gstring.
10294
10295 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
10296 Check if adjustment is vector or not.
10297
10298 * Makefile.in (font.o): Make it depends on window.h.
10299
103002008-02-01 Kenichi Handa <handa@m17n.org>
10301
10302 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
10303 adjustment is vector or not.
10304
103052008-02-01 Miles Bader <miles@gnu.org>
10306
10307 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
10308
103092008-02-01 Kenichi Handa <handa@m17n.org>
10310
10311 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
10312 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
10313 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
10314
10315 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
10316 (DEVICE_DELTA): Fix typo.
10317 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
10318 LGLYPH format.
10319
10320 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
10321 the change of LGLYPH format.
10322
103232008-02-01 Kenichi Handa <handa@m17n.org>
10324
10325 * ftfont.c (ftfont_list): Fix typo.
10326 (ftfont_build_basic_charsets): Don't include letters with diacritics.
10327
103282008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10329
10330 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
10331
10332 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
10333 xftface_info is non-NULL.
10334
103352008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10336
10337 * ftfont.c (ftfont_list): Move misplaced #endif.
10338
103392008-02-01 Kenichi Handa <handa@m17n.org>
10340
10341 * ftfont.c (ftfont_list): Pay attention to the case that
10342 FC_CAPABILITY is not defined.
10343
103442008-02-01 Kenichi Handa <handa@m17n.org>
10345
10346 * xftfont.c (xftfont_open): Set charset related members to -1.
10347
10348 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
10349 QCname.
10350 (ftfont_open): Set charset related members to -1.
10351
10352 * fontset.c (Votf_script_alist): New variable.
10353 (syms_of_fontset): Initialize it.
10354 (fontset_font): Delete unused variable.
10355
10356 * fontset.h (Votf_script_alist): Extern it.
10357
10358 * font.c (font_find_for_lface): Optimize code.
10359
10360 * font.h (font_close_object, font_merge_old_spec): Extern them.
10361
103622008-02-01 Kenichi Handa <handa@m17n.org>
10363
10364 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
10365 (syms_of_font): Initialize them.
10366 (font_pixel_size): Allow float value in dpi.
10367 (font_prop_validate_type): Delete.
10368 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
10369 Change caller.
10370 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
10371 (font_prop_validate_extra): Delete.
10372 (font_prop_validate_spacing): New function.
10373 (font_property_table): Add elements for all known properties.
10374 (get_font_prop_index): Rename from check_font_prop_name. New
10375 argument FROM. Change caller.
10376 (font_prop_validate): Validate all known properties.
10377 (font_put_extra): Delete argument force. Change caller.
10378 (font_expand_wildcards): Make it static. Fix the way of shrinking
10379 the possible range.
10380 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
10381 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
10382 Change caller.
10383 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
10384 (font_parse_fcname): Delete argument merge. Fix parsing of point
10385 size. Don't validate properties values here. Change caller.
10386 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
10387 (font_open_by_name): Delete unused variable.
10388 (Ffont_spec): Likewise. Validate property values.
10389 (Ffont_match_p): New function.
10390
10391 * font.h (QCscalable): Extern it.
10392 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
10393
10394 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
10395
10396 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
10397 (xfont_list_pattern): New function.
10398 (xfont_list): Use xfont_list_pattern.
10399
104002008-02-01 Kenichi Handa <handa@m17n.org>
10401
10402 * font.h (Flist_fonts): EXFUN it.
10403
104042008-02-01 Jason Rumney <jasonr@gnu.org>
10405
10406 * w32term.c (w32_initialize): Add back smoothing_type and
10407 smoothing_enabled definitions.
10408
104092008-02-01 Kenichi Handa <handa@m17n.org>
10410
10411 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
10412 s->face->font on determining underline position.
10413
104142008-02-01 Kenichi Handa <handa@m17n.org>
10415
10416 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
10417 (font_has_char): Accept font-object too.
10418 (font_find_for_lface): Try at first with a size specified in face.
10419
104202008-02-01 Kenichi Handa <handa@m17n.org>
10421
10422 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
10423 font_open_by_name.
10424
104252008-02-01 Kenichi Handa <handa@m17n.org>
10426
10427 * font.h (QCspacing, QCdpi): Extern them.
10428 (enum font_spacing): New enum.
10429 (FONT_PIXEL_SIZE_QUANTUM): New macro.
10430
10431 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
10432 (QCspacing, QCdpi): New variables.
10433 (syms_of_font): Initialize them.
10434 (font_pixel_size): New function.
10435 (font_put_extra): New function.
10436 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
10437 in FONT_EXTRA.
10438 (font_parse_fcname): Handle enumerated values (e.g. bold).
10439 Fix handling font size. Add QCname property that contains only
10440 unknown properties.
10441 (font_score): Change argument. Change caller. Pay attention to
10442 FONT_PIXEL_SIZE_QUANTUM.
10443 (font_sort_entites, font_list_entities, font_find_for_lface)
10444 (font_open_for_lface, font_open_by_name): Fix handling of font size.
10445 (Ffont_spec): Add QCname property that contains only unknown properties.
10446
10447 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
10448 include weight in listing pattern, instead check weight of each
10449 listed font. Don't include scalable in pattern. Pay attention to
10450 FONT_PIXEL_SIZE_QUANTUM.
10451
104522008-02-01 Kenichi Handa <handa@m17n.org>
10453
10454 * font.c (font_parse_fcname): Fix parsing of point-size.
10455 (font_unparse_fcname): Produce symbolic names for style properties.
10456 (font_list_entities): Handle float size correctly.
10457 (font_open_by_name): Prefer `normal' property values if the name
10458 doesn't specify them.
10459
10460 * fontset.c (Finternal_char_font): Use font_get_name, not
10461 Ffont_xlfd_name.
10462
10463 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
10464 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
10465 pattern. Don't force scalable.
10466
10467 * xftfont.c (xftfont_open): For generating a name, start from
10468 96-byte buffer.
10469
104702008-02-01 Jan Djärv <jan.h.d@swipnet.se>
10471
10472 * frame.h (x_new_fontset2): Fix prototype.
10473
104742008-02-01 Kenichi Handa <handa@m17n.org>
10475
10476 * font.h (struct font_driver): Delete member parse_name.
10477 (font_match_p, font_get_spec, font_parse_fcname)
10478 (font_unparse_fcname): Extern them.
10479 (font_get_name): Adjust prototype.
10480
10481 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
10482 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
10483 (font_expand_wildcards): Fix handling ENCODING field. Avoid
10484 unnecessary checks for weight, slant, and swidth.
10485 (font_parse_fcname): New function.
10486 (font_unparse_fcname): New function.
10487 (font_parse_name): New function.
10488 (font_match_p): New function.
10489 (font_get_name): Change return value to Lisp string.
10490 (font_get_spec): New function.
10491 (Qunspecified, Qignore_defface): Don't extern them.
10492 (font_find_for_lface): Assume that LFACE is fully specified.
10493 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
10494 object, use it for FACE.
10495 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
10496 driver->parse_name.
10497 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
10498
10499 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
10500 prototype.
10501
10502 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
10503 argument F. Don't call Fnew_fontset. Instead, directly call
10504 make_fontset.
10505
10506 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
10507
10508 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
10509 of x_new_fontset2.
10510
10511 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
10512 (Qsans__serif): New variables.
10513 (ftfont_generic_family_list): New variable.
10514 (syms_of_ftfont): Initialize the above variables.
10515 (ftfont_pattern_entity): Delete argument NAME.
10516 (ftfont_list_generic_family): New function.
10517 (ftfont_parse_name): Delete this function.
10518 (ftfont_list): Try generic family only when FcFontList found no font.
10519 (ftfont_list_family): Fix args to FcObjectSetBuild.
10520
10521 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
10522 object in attrs[LFACE_FONT_INDEX].
10523 (set_lface_from_font_name): Cancel all changes for font-backend.
10524 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
10525 function.
10526 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
10527 font object in QCfont attribute.
10528 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
10529 (realize_default_face) [USE_FONT_BACKEND]: Call
10530 set_lface_from_font_and_fontset.
10531
10532 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
10533 "fixed", and signal error here if no suitable font was found.
10534
10535 * xfont.c (xfont_parse_name): Delete this function.
10536
10537 * xftfont.c (xftfont_open): Change coding style of error
10538 handling. Generate fontconfig's fontname pattern.
10539
10540 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
10541 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
10542
10543 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
10544 Both args FONTSET and FONT_OBJECT must be existing ones.
10545
105462008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10547
10548 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
10549
105502008-02-01 Kenichi Handa <handa@m17n.org>
10551
10552 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
10553
10554 * font.h (struct font): Fix typo.
10555
10556 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
10557 XLFD_XXX_INDEX.
10558 (enum xlfd_field_mask): New enum.
10559 (intern_font_field): Changed argument. Change caller. If digits
10560 are followed by non-digits, return a symbol.
10561 (font_expand_wildcards): New function.
10562 (font_parse_xlfd): Fix wildcard handling.
10563 (Ffont_spec): If :name is specified, reflect the info in the other
10564 properties.
10565
10566 * ftfont.c (ftfont_pattern_entity): Fix typo.
10567 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
10568 locale.
10569
105702008-02-01 Kenichi Handa <handa@m17n.org>
10571
10572 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
10573
10574 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
10575 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
10576 registry doesn't specify encoding part.
10577 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
10578 (font_open_by_name): At first try parsing the name.
10579 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
10580 as Lisp symbols.
10581
10582 * fontset.c (reorder_font_vector): Pay attention to the case that
10583 the 3rd element of font_def is nil.
10584 (fontset_font): For the default fontset, append one more fontset
10585 elements for a script-based font specification. Don't add script
10586 attribute on finding a font.
10587 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
10588 font name.
10589 (fontset_ascii_font): If a font can't be opened, return nil.
10590
10591 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
10592 (ftfont_pattern_entity): New function.
10593 (ftfont_get_cache): Assume that freetype_font_cache is already
10594 initialized.
10595 (ftfont_list): Handle the case that a file is specified in font
10596 name. Use ftfont_pattern_entity to generate entities.
10597 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
10598 (syms_of_ftfont): Initialize freetype_font_cache.
10599
10600 * xftfont.c (xftfont_open): Make the font name fontconfig's
10601 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
10602 (xftfont_close): Free font->font.name if not NULL.
10603
10604 * xfont.c (xfont_list): If script is specified for a font, return
10605 null_vector.
10606 (xfont_list_family): Declare argument type.
10607
10608 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
10609 name, set LFACE_FONT (lface) to nil.
10610
10611 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
10612 return Qnil.
10613
106142008-02-01 Kenichi Handa <handa@m17n.org>
10615
10616 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
10617 (standard_args): Add "-enable-font-backend".
10618
106192008-02-01 Kenichi Handa <handa@m17n.org>
10620
10621 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
10622 (struct xftdraw_list, xftdraw_list): Delete them.
10623 (register_xftdraw, check_xftdraw): Delete them.
10624 (xftfont_prepare_face): Don't call register_xftdraw.
10625 (xftfont_done_face): Don't call check_xftdraw.
10626 (xftfont_draw): Get background color only when with_background is
10627 nonzero.
10628
10629 * xfont.c (xfont_encode_char): Fix calculation of char2b.
10630
106312008-02-01 Kenichi Handa <handa@m17n.org>
10632
10633 These changes are for the new font handling codes.
10634
10635 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
10636 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
10637 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
10638 (FONTSRC, FONTOBJ): New variables.
10639 (obj): Add $(FONTOBJ).
10640 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
10641 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
10642 @LIBOTF_LIBS@.
10643 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
10644 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
10645
10646 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
10647
10648 * character.h (Vscript_representative_chars): Extern it.
10649
10650 * character.c (Vscript_representative_chars): New variable.
10651 (syms_of_character): Declare it as a Lisp variable.
10652
10653 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
10654 enable_font_backend is nonzero, accept the composition method
10655 COMPOSITION_WITH_GLYPH_STRING.
10656
10657 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
10658 enumeration COMPOSITION_WITH_GLYPH_STRING.
10659
10660 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
10661 members clip_x, clip_y, clip_width, and clip_height.
10662 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
10663
10664 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
10665 --enable-font-backend. Call syms_of_font.
10666
10667 * fns.c (assoc_no_quit): New function.
10668
10669 * fontset.h (FONT_INFO_FROM_FACE): New macro.
10670 (face_for_font, new_fontset_from_font)
10671 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
10672
10673 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
10674 (fontset_font, fontset_ascii, face_for_char)
10675 (make_fontset_for_ascii_face, Ffont_info)
10676 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
10677 is nonzero, use font-backend mechanism.
10678 (find_font_encoding): Make it non-static.
10679 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
10680 New functions.
10681
10682 * frame.h (struct frame): New members resx and resy.
10683 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
10684 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
10685
10686 * frame.c [USE_FONT_BACKEND]: Include "font.h".
10687 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
10688
10689 * lisp.h (assoc_no_quit): Extern it.
10690
10691 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
10692 Through out the file, use FONT_INFO_FROM_FACE instead of
10693 FONT_INFO_FROM_ID, use get_per_char_metric instead of
10694 rif->per_char_metric.
10695 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
10696 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
10697 (get_glyph_face_and_encoding, fill_composite_glyph_string)
10698 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
10699 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
10700 nonzero, use font-backend mechanism.
10701 (get_per_char_metric): New function.
10702
10703 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
10704 (set_lface_from_font_name)
10705 (set_font_frame_param, free_realized_face)
10706 (prepare_face_for_display, clear_face_gcs)
10707 (Finternal_set_font_selection_order, realize_x_face)
10708 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
10709 font-backend mechanism.
10710 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
10711 (load_face_font) [USE_FONT_BACKEND]: Abort.
10712 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
10713 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
10714
10715 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
10716 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
10717 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
10718 nonzero, register all available font drivers. Call
10719 x_default_font_parameter for deciding a font.
10720 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
10721
10722 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
10723 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
10724 (x_set_glyph_string_clipping_exactly)
10725 (x_compute_glyph_string_overhangs)
10726 (x_draw_glyph_string_foreground)
10727 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
10728 (x_free_frame_resources) [USE_FONT_BACKEND]: If
10729 enable_font_backend is nonzero, use font-backend mechanism.
10730 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
10731
107322008-02-01 Kenichi Handa <handa@m17n.org>
10733
10734 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
10735 system_eol_type.
10736 (syms_of_coding): Initialize system_eol_type.
10737
10738 * process.c (Fset_process_coding_system): Inherit system's eol
10739 format if necessary.
10740
107412008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10742
10743 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
10744
107452008-02-01 Kenichi Handa <handa@m17n.org>
10746
10747 * coding.c (decode_eol): Pay attention to buffer relocation in
10748 del_range_2.
10749 (decode_coding): Call decode_eol before restoring undo_list.
10750
107512008-02-01 Kenichi Handa <handa@m17n.org>
10752
10753 * charset.c (Fdefine_charset_internal): Fix setting of
10754 emacs_mule_bytes.
10755
107562008-02-01 Kenichi Handa <handa@m17n.org>
10757
10758 * keyboard.c (read_char): Check if C is a character or not before
10759 looking up Vkeyboard_translate_table.
10760
107612008-02-01 Kenichi Handa <handa@m17n.org>
10762
10763 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
10764 condition to terminate the loop.
10765
107662008-02-01 Kenichi Handa <handa@m17n.org>
10767
10768 * coding.c (produce_composition): Compare charbuf[i] instead of
10769 args[i] against 0.
10770 (Fterminal_coding_system): Use EQ to compare Lisp objects.
10771
107722008-02-01 Kenichi Handa <handa@m17n.org>
10773
10774 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
10775 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
10776 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
10777 detect_coding.
10778 (emacs_mule_char): Handle old style (Emacs 20) component character
10779 of a composition.
10780 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
10781 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
10782 composition rule.
10783 (decode_coding_emacs_mule): Handle invalid bytes correctly.
10784
107852008-02-01 Kenichi Handa <handa@m17n.org>
10786
10787 * coding.c (encode_coding_ccl): Allocate destination dynamically
10788 when necessary.
10789
107902008-02-01 Kenichi Handa <handa@m17n.org>
10791
10792 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
10793 the loop. When quitted, show a proper error message.
10794
107952008-02-01 Kenichi Handa <handa@m17n.org>
10796
10797 * xterm.c (x_set_glyph_string_clipping_exactly): Set
10798 src->clip_head and src->clip_tail temporarily instead of src->hl.
10799
10800 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
10801 character sequence.
10802 (Fccl_execute_on_string): Use ASET, not XSET.
10803
108042008-02-01 Kenichi Handa <handa@m17n.org>
10805
10806 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
10807
108082008-02-01 Kenichi Handa <handa@m17n.org>
10809
10810 * coding.c (decode_coding): Fix the condition of terminating the
10811 decoding loop.
10812
108132008-02-01 Kenichi Handa <handa@m17n.org>
10814
10815 * data.c (Faset): On setting a character bigger than 255 in a
10816 unibyte string, signal an error instead of make the string multibyte.
10817
108182008-02-01 Kenichi Handa <handa@m17n.org>
10819
10820 * charset.c (map_charset_chars): Fix for ascii-compatible charset
10821 made by a mapping table.
10822
108232008-02-01 Kenichi Handa <handa@m17n.org>
10824
10825 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
10826 not.
10827 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
10828 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
10829
10830 * xterm.c (x_draw_composite_glyph_string_foreground): Check
10831 s->face is NULL or not.
10832
108332008-02-01 Kenichi Handa <handa@m17n.org>
10834
10835 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
10836 (x_draw_glyph_string): Fix drawing of right_overhang and
10837 left_overhang around/on cursor.
10838
10839 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
10840
108412008-02-01 Kenichi Handa <handa@m17n.org>
10842
10843 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
10844
108452008-02-01 Kenichi Handa <handa@m17n.org>
10846
10847 * coding.c (Fdefine_coding_system_internal)
10848 (Fdefine_coding_system_alias): Avoid a duplicated element in
10849 Vcoding_system_alist.
10850
108512008-02-01 Kenichi Handa <handa@m17n.org>
10852
10853 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
10854
10855 * coding.c (Qcoding_system_define_form): New variable.
10856 (syms_of_coding): Intern and staticpro it.
10857 (Fcoding_system_p): Check Qcoding_system_define_form.
10858 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
10859
10860 * coding.h (CODING_SYSTEM_P): If ID is not available, call
10861 Fcoding_system_p.
10862 (CHECK_CODING_SYSTEM): If ID is not available, call
10863 Fcheck_coding_system.
10864 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
10865 Try also Fcheck_coding_system.
10866
108672008-02-01 Kenichi Handa <handa@m17n.org>
10868
10869 * coding.c (code_conversion_restore): GCPRO arg.
10870
108712008-02-01 Kenichi Handa <handa@m17n.org>
10872
10873 * character.c (lisp_string_width): Check multibyteness of STRING.
10874
108752008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10876
10877 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
10878 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
10879 (decode_mac_font_name): Use decode_coding_c_string instead of
10880 decode_coding.
10881 (x_load_font): Initialize fontp->fontset to -1. Set
10882 fontp->encoding_type.
10883
108842008-02-01 Kenichi Handa <handa@m17n.org>
10885
10886 * search.c (search_buffer): Give up BM search on case-fold-search
10887 if one of a target character has a case-equivalence of different
10888 byte length even if that target charcter is an ASCII.
10889 (simple_search): Fix calculation of byte length of matched text.
10890 (boyer_moore): Fix handling of case-equivalent multibyte characters.
10891
108922008-02-01 Kenichi Handa <handa@m17n.org>
10893
10894 * coding.c (decode_coding): Fix handling of invalid bytes.
10895
108962008-02-01 Kenichi Handa <handa@m17n.org>
10897
10898 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
10899 Unicode characters.
10900
109012008-02-01 Kenichi Handa <handa@m17n.org>
10902
10903 * coding.c (encode_coding_object): If a pre-write-conversion
10904 function makes a new buffer, kill it.
10905
109062008-02-01 Kenichi Handa <handa@m17n.org>
10907
10908 * coding.c (QCascii_compatible_p): New variable.
10909 (syms_of_coding): Initialize it.
10910 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
10911 calling string_char.
10912 (record_conversion_result): Add `default:' case.
10913 (coding_charset_list): Delete unused variable `coding_type'.
10914 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
10915 property in the plist of the coding system.
10916 (Fcoding_system_put): Check QCascii_compatible_p.
10917
109182008-02-01 Miles Bader <miles@gnu.org>
10919
10920 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
10921 removed calculation of frame `f', as it's now used.
10922
109232008-02-01 Kenichi Handa <handa@m17n.org>
10924
10925 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
10926 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
10927 (UNIDATA): New variable.
10928 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
10929 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
10930 $(RUN_TEMACS) unconditionally.
10931
109322008-02-01 Kenichi Handa <handa@m17n.org>
10933
10934 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
10935 (admindir): New variable.
10936 ($(lispsource)international/charprop.el): New target.
10937
109382008-02-01 Miles Bader <miles@gnu.org>
10939
10940 * character.c (chars-in-region): Remove obsolete function.
10941 (syms_of_character): Remove its initialization.
10942
109432008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
10944
10945 * w32select.c (validate_coding_system)
10946 (setup_windows_coding_system): New functions.
10947 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
10948 setup_windows_coding_system.
10949 (setup_config, Fw32_get_clipboard_data): Use
10950 validate_coding_system.
10951 (Fx_selection_exists): Move call to setup_config to a place
10952 where signals are allowed.
10953
10954 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
10955 (Fcheck_coding_system): Add declarations.
10956
109572008-02-01 Kenichi Handa <handa@m17n.org>
10958
10959 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
10960
109612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10962
10963 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
10964 string as the second argument for x_new_fontset.
10965
109662008-02-01 Kenichi Handa <handa@m17n.org>
10967
10968 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
10969 (encode_coding_object): Use safe_call instead of call2.
10970
109712008-02-01 Kenichi Handa <handa@m17n.org>
10972
10973 * fontset.c (Fset_fontset_font): Check family element of a given vector.
10974
10975 * Makefile.in (lisp): Include charprop.el.
10976
109772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10978
10979 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
10980 Not sure if it's unnecessary.
10981
109822008-02-01 Steven Tamm <steventamm@mac.com>
10983
10984 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
10985 some possibly unnecessary fontset checking code that crashed
10986 when creating a new frame.
10987
109882008-02-01 Kenichi Handa <handa@m17n.org>
10989
10990 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
10991 lookup_face.
10992
10993 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
10994
10995 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
10996
109972008-02-01 Kenichi Handa <handa@m17n.org>
10998
10999 * coding.c: Cancel the change done in HEAD on 2008-02-01.
11000 (coding_charset_list): New function.
11001
11002 * coding.h (coding_charset_list): Extern it.
11003
110042008-02-01 Kenichi Handa <handa@m17n.org>
11005
11006 * fontset.c (Fset_fontset_font): Call find_font_encoding with
11007 concatenation of family and registry.
11008
110092008-02-01 Kenichi Handa <handa@m17n.org>
11010
11011 * character.h (BYTE8_STRING): Fix typo.
11012
11013 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
11014 string to multibyte (sync to HEAD).
11015
11016 * casefiddle.c (casify_region): Handle changes in byte-length
11017 using replace_range_2 (sync to HEAD).
11018
110192008-02-01 Andreas Schwab <schwab@suse.de>
11020
11021 * chartab.c (map_char_table): GCPRO table and arg.
11022
110232008-02-01 Kenichi Handa <handa@m17n.org>
11024
11025 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
11026 already at limit.
11027
110282008-02-01 Kenichi Handa <handa@m17n.org>
11029
11030 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
11031 instead of fast_c_string_match_ignore_case.
11032 (find_font_encoding): Change argument to Lisp_Object. Use
11033 fast_string_match_ignore_case instead of
11034 fast_c_string_match_ignore_case. Change caller.
11035
110362008-02-01 Kenichi Handa <handa@m17n.org>
11037
11038 * xdisp.c (get_next_display_element): In unibyte case, decide to
11039 display in octal form by checking a character by
11040 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
11041
11042 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
11043
11044 * character.c (unibyte_has_multibyte_table): New variable.
11045
11046 * character.h (unibyte_has_multibyte_table): Extern it.
11047 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
11048
110492008-02-01 Kenichi Handa <handa@m17n.org>
11050
11051 * coding.c (encode_coding_iso_2022): Fix handling of charset
11052 annotation.
11053
110542008-02-01 Kenichi Handa <handa@m17n.org>
11055
11056 * coding.c (setup_coding_system): If coding_system is nil, use
11057 Qundecided.
11058 (Fterminal_coding_system): Return nil if terminal coding system is
11059 `undecided'.
11060 (syms_of_coding): Define coding-system `undecided' here. Setup
11061 terminal_coding as `undecided'.
11062
110632008-02-01 Kenichi Handa <handa@m17n.org>
11064
11065 * xdisp.c (message_dolog, set_message_1): Call
11066 unibyte_char_to_multibyte with arg type int.
11067
11068 * lread.c (read1): Fix reading of a char-table.
11069
11070 * print.c (print_object): Include sub char-table in circularities
11071 detection.
11072
110732008-02-01 Kenichi Handa <handa@m17n.org>
11074
11075 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
11076 Append the found sequences in car of ARGS instead of prepending.
11077
110782008-02-01 Kenichi Handa <handa@m17n.org>
11079
11080 * fileio.c (report_file_error): Make a unibyte string from
11081 strerror (errorno).
11082 (Fsubstitute_in_file_name): Fix the arg to
11083 unibyte_char_to_multibyte. It is evaluated twice.
11084
110852008-02-01 Kenichi Handa <handa@m17n.org>
11086
11087 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
11088
110892008-02-01 Kenichi Handa <handa@m17n.org>
11090
11091 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
11092 BOM is not found.
11093 (detect_coding, detect_coding_system): Optimization for ISO-2022
11094 when no 8-bit data is found.
11095
110962008-02-01 Jason Rumney <jasonr@gnu.org>
11097
11098 * w32fns.c (x_to_w32_font): Update to use new coding struct.
11099
111002008-02-01 Kenichi Handa <handa@m17n.org>
11101
11102 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
11103 CHARS.
11104
111052008-02-01 Steven Tamm <steventamm@mac.com>
11106
11107 * macterm.c (mac_encode_char): Add charset argument and update
11108 to use encoding_type.
11109 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
11110 switch to pure fontset.
11111 (decode_mac_font_name): Temporarily remove decoding.
11112 (x_font_name_to_mac_font_name): Temporarily remove encoding.
11113 (x_load_font): Temporarily remove encoding.
11114
111152008-02-01 Kenichi Handa <handa@m17n.org>
11116
11117 * xfaces.c (Fface_font): If frame is not on a window system,
11118 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
11119 refer to face->font.
11120 (split_font_name_into_vector, build_font_name_from_vector)
11121 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
11122 when HAVE_WINDOW_SYSTEM is defined.
11123
111242008-02-01 Kenichi Handa <handa@m17n.org>
11125
11126 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
11127 (x_produce_glyphs): Fix setting of members of cmp in case
11128 cmp->glyph_len is zero.
11129
11130 * fontset.c (Fset_fontset_font): Fix docstring.
11131 (Ffontset_info): Make it backward compatible. New arg ALL.
11132
111332008-02-01 Kim F. Storm <storm@cua.dk>
11134
11135 * process.c (read_process_output): Grow decoding_buf when needed;
11136 this could cause a crash in allocate_string and compact_small_strings.
11137
111382008-02-01 Kenichi Handa <handa@m17n.org>
11139
11140 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
11141
111422008-02-01 Kenichi Handa <handa@m17n.org>
11143
11144 * coding.c (setup_coding_system): Set coding->common_flags
11145 correctly for raw-text.
11146 (consume_chars): On encoding unibyte text by raw-text, don't check
11147 multibyte form.
11148 (encode_coding): On encoding by raw-text, never use translation tables.
11149
11150 * fileio.c (e_write): Short cut for the case of no encoding.
11151
111522008-02-01 Kenichi Handa <handa@m17n.org>
11153
11154 * coding.c (detect_coding, detect_coding_system): Delete unused
11155 variables.
11156
111572008-02-01 Kenichi Handa <handa@m17n.org>
11158
11159 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
11160 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
11161
111622008-02-01 Kenichi Handa <handa@m17n.org>
11163
11164 * coding.c (Ffind_coding_systems_region_internal): Include
11165 raw-text and no-conversion in the result.
11166
111672008-02-01 Kenichi Handa <handa@m17n.org>
11168
11169 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
11170 (load_font_get_repertory): Delete unnecessary check of ENCODING of
11171 FONT_DEF.
11172 (font_def_arg, add_arg, from_arg, to_arg): New args.
11173 (set_fontset_font): Change argument.
11174 (Fset_fontset_font): Fix for the case that TARGET is a script
11175 name and charset name.
11176 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
11177
111782008-02-01 Kenichi Handa <handa@m17n.org>
11179
11180 * fontset.c (fontset_font): Rename from fontset_face. Change return
11181 value.
11182 (face_suitable_for_char_p, face_for_char): Adjust for the change
11183 of fontset_font.
11184 (make_fontset_for_ascii_face): Fix setting of the fontset element
11185 for ASCII.
11186 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
11187 to get a font name.
11188 (Ffontset_info): Adjust for the change of fontset_font.
11189
11190 * coding.c (emacs_mule_char): Check invalid code more rigidly.
11191
11192 * character.h (LEADING_CODE_LATIN_1_MIN)
11193 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
11194
111952008-02-01 Kenichi Handa <handa@m17n.org>
11196
11197 * editfns.c (check_translation): New function.
11198 (Ftranslate_region_internal): Handle M:N mapping.
11199
112002008-02-01 Kenichi Handa <handa@m17n.org>
11201
11202 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
11203
112042008-02-01 Kenichi Handa <handa@m17n.org>
11205
11206 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
11207 goto invalid_code.
11208 (decode_coding_iso_2022): Fix handling of invalid designation.
11209
11210 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
11211 after calling code_conversion_save.
11212
112132008-02-01 Kenichi Handa <handa@m17n.org>
11214
11215 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
11216
11217 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
11218
11219 * fontset.c: Include "intervals.h".
11220 (fontset_face): Fix comparing of Lisp_Objects.
11221 (free_face_fontset, new_fontset_from_font_name): Fix
11222 Lisp_Object/int mixup.
11223
11224 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
11225
11226 * coding.c: Add many prototypes for static functions.
11227 (get_translation_table): Allow max_lookup to be NULL.
11228 (decode_coding, Ffind_coding_systems_region_internal)
11229 (Funencodable_char_position, Fcheck_coding_systems_region): Call
11230 get_translation_table with max_lookup NULL.
11231
112322008-02-01 Kenichi Handa <handa@m17n.org>
11233
11234 * coding.c (get_translation_table): Declare it as Lisp_Object.
11235 (LOOKUP_TRANSLATION_TABLE): New macro.
11236 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
11237 instead of CHAR_TABLE_REF.
11238
112392008-02-01 Kenichi Handa <handa@m17n.org>
11240
11241 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
11242 annotation data format.
11243 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
11244 Change arguments FROM and TO to single argument NCHARS. Change caller.
11245 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
11246 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
11247 (decode_coding_ccl, decode_coding_charset): Pay attention to
11248 coding->charbuf_used.
11249 (get_translation): New function.
11250 (produce_chars): New arguments translation_table and last_block.
11251 Translate characters here. Return number of carryover chars.
11252 Change caller.
11253 (produce_composition): New argument pos. Change caller.
11254 Adjust for the change of annotation data format.
11255 (produce_charset, produce_annotation): Likewise.
11256 (decode_coding, encode_coding): Don't call translate_chars.
11257 (consume_chars): New arg translation_table. Change caller.
11258 (translate_chars): Delete.
11259 (syms_of_coding): Make translation-table's number of extra slots 2.
11260
112612008-02-01 Kenichi Handa <handa@m17n.org>
11262
11263 * search.c (simple_search): Fix setting this_pos_byte in backward
11264 search.
11265
11266 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
11267 byte sequence.
11268 (detect_coding_ccl): Fix setting of the variable valids.
11269
112702008-02-01 Kenichi Handa <handa@m17n.org>
11271
11272 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
11273
11274 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
11275
11276 * editfns.c (Ftranslate_region_internal): Rename from
11277 Ftranslate_region. Accept a char-table in TABLE.
11278 (syms_of_editfns): Defsubr Stranslate_region_internal.
11279
11280 * xfaces.c (set_lface_from_font_name): If a font is specified for
11281 a frame, generate a fontset from the font.
11282 (build_scalable_font_name): If the scalable font is requested for
11283 a specific size, don't change that size.
11284 (try_font_list): Try a scalable font also in the case that a
11285 pattern string is specified.
11286
112872008-02-01 Kenichi Handa <handa@m17n.org>
11288
11289 * xfaces.c (Fface_font): New optional arg CHARACTER.
11290
112912008-02-01 Kenichi Handa <handa@m17n.org>
11292
11293 * charset.h (CHARSET_OFFSET): New macro.
11294
112952008-02-01 Kenichi Handa <handa@m17n.org>
11296
11297 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
11298
11299 * fontset.c (fontset_face): Handle the case that repertory is a
11300 char-table.
11301 (find_font_encoding): Return nil for unknown encoding.
11302 (Fset_fontset_font): Ignore a font of unknown encoding.
11303
113042008-02-01 Kenichi Handa <handa@m17n.org>
11305
11306 * keymap.c (describe_vector): Handle default value of a char table.
11307
11308 * fontset.c (fontset_face): Handle fallback fonts correctly.
11309 (Ffontset_info): Return infomation about fallback fonts.
11310
113112008-02-01 Kenichi Handa <handa@m17n.org>
11312
11313 * fontset.c (FONTSET_DEFAULT): New macro.
11314 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
11315 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
11316 the case that it is nil.
11317 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
11318 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
11319
11320 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
11321 subset or superset.
11322
113232008-02-01 Kenichi Handa <handa@m17n.org>
11324
11325 * emacs.c (main): Call init_charset after syms_of_XXX.
11326
11327 * charset.c (Vcharset_map_directory): Delete.
11328 (Vcharset_map_path): New variable.
11329 (load_charset_map_from_file): Use Vcharset_map_path instead.
11330 (init_charset): Initialize Vcharset_map_path.
11331 (syms_of_charset): Delete declaration of "charset-map-directory",
11332 add declaration of "charset-map-path".
11333
113342008-02-01 Kenichi Handa <handa@m17n.org>
11335
11336 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
11337 ASCII only string.
11338
11339 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
11340
11341 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
11342 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
11343
113442008-02-01 Kenichi Handa <handa@m17n.org>
11345
11346 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
11347
11348 * coding.c (QCmnemonic, QCdefalut_char)
11349 (QCdecode_translation_table, QCencode_translation_table)
11350 (QCpost_read_conversion, QCpre_write_conversion): New variables.
11351 (get_translation_table): Return a list of translation tables if
11352 necessary.
11353 (decode_coding): Call get_translation_table with ENCODEP 0.
11354 (char_encodable_p): If translation_table is non-nil, always call
11355 translate_char.
11356 (Fdefine_coding_system_internal): Accept list of translation
11357 tables as :encode-translation-table and :decode-translation-table.
11358 (Fcoding_system_put): New function.
11359 (syms_of_coding): Declare new symbols. Defsubr
11360 Scoding_system_put.
11361 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
11362 typically JISX0212.
11363
11364 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
11365 when the charset is superset type.
11366
11367 * character.c (translate_char): Accept list of translation tables.
11368
113692008-02-01 Kenichi Handa <handa@m17n.org>
11370
11371 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
11372 (CODING_ATTR_TRANS_TBL): New macro.
11373
11374 * coding.c (get_translation_table): New function.
11375 (translate_chars): Fix the bug of skipping annotation data.
11376 (decode_coding, encode_coding): Utilize get_translation_table.
11377 (char_encodable_p, Funencodable_char_position): Translate char if
11378 necessary.
11379 (Ffind_coding_systems_region_internal)
11380 (Fcheck_coding_systems_region): Setup translation table for encode
11381 in a coding system attribute vector in advance.
11382 (Fdefine_coding_system_internal): Allow a symbol as translation
11383 table. For shift-jis type coding system, allow 4th charset.
11384
113852008-02-01 Kenichi Handa <handa@m17n.org>
11386
11387 * coding.c (decode_coding_sjis): Check the first byte rigidly.
11388
11389 * xdisp.c (get_next_display_element): Pass -1 as POS to
11390 FACE_FOR_CHAR if displaying a C-string.
11391
113922008-02-01 Kenichi Handa <handa@m17n.org>
11393
11394 * composite.c (get_composition_id): Handle xoff and yoff in a
11395 composition rule.
11396
11397 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
11398 (struct composition): New member lbearing and rbearing.
11399
11400 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
11401 (x_get_glyph_overhangs): Handle a composition glyph.
11402 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
11403
11404 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
11405 composition glyph.
11406
114072008-02-01 Kenichi Handa <handa@m17n.org>
11408
11409 * print.c: Include charset.h.
11410 (Vprint_charset_text_property): New variable.
11411 (Qdefault): Extern it.
11412 (PRINT_STRING_NON_CHARSET_FOUND)
11413 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
11414 (print_check_string_result): New variable.
11415 (print_check_string_charset_prop): New function.
11416 (print_prune_charset_plist): New variable.
11417 (print_prune_string_charset): New function.
11418 (print_object): Call print_prune_string_charset if
11419 Vprint_charset_text_property is not t.
11420 (print_interval): Print nothing if interval->plist is nil.
11421 (syms_of_print): Declare Vprint_charset_text_property as a lisp
11422 variable. Init and staticpro print_prune_charset_plist.
11423
114242008-02-01 Kenichi Handa <handa@m17n.org>
11425
11426 * fontset.c (new_fontset_from_font_name): Use the specified font
11427 for all characters in the new fontset.
11428
11429 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11430 OBJECT args.
11431
11432 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
11433 OBJECT args for composition too.
11434
11435 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
11436 OBJECT args.
11437
114382008-02-01 Kenichi Handa <handa@m17n.org>
11439
11440 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
11441
11442 * fontset.c (reorder_font_vector): Adjust for the change of
11443 FONT_DEF format.
11444 (fontset_face): New arg id. Change caller.
11445 (face_for_char): New args pos and object.
11446 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
11447 (fs_query_fontset): Check NAME by Fassoc too.
11448 (Fset_fontset_font): Allow non-XLFD font name.
11449 (Ffontset_info): Adjust for the change of FONT_DEF format.
11450
11451 * fontset.h (face_for_char): Adjust prototype.
11452
11453 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
11454 (append_space, extend_face_to_end_of_line)
11455 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
11456 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
11457
11458 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
11459 POS and OBJECT args.
11460
11461 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
11462 POS and OBJECT args.
11463
114642008-02-01 Jason Rumney <jasonr@gnu.org>
11465
11466 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
11467 of GlobalAlloc'ed memory.
11468
114692008-02-01 Kenichi Handa <handa@m17n.org>
11470
11471 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
11472
11473 * charset.h (charset_table_used): Delete extern.
11474
11475 * charset.c (charset_table_used): Make it static.
11476 (map_charset_chars): Fix args to c_function with.
11477
11478 * chartab.c (map_sub_char_table_for_charset): Fix args to
11479 c_function with.
11480
11481 * coding.h (enum coding_result_code): Delete
11482 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
11483
11484 * coding.c (Qinsufficient_source, Qinconsistent_eol)
11485 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
11486 (Vlast_code_conversion_error): New variables.
11487 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
11488 (ONE_MORE_BYTE): Record error if any instead of signaling an
11489 error. If non-ASCII multibyte char is found, return the negative
11490 value of the code. All callers changed to check it.
11491 (ONE_MORE_BYTE_NO_CHECK): Likewise.
11492 (record_conversion_result): New function. Change all codes setting
11493 coding->result to call this function.
11494 (detect_coding_utf_8, decode_coding_utf_8)
11495 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
11496 Don't use the local variable incomplete.
11497 (emacs_mule_char): Change the second arg to `const'.
11498 (decode_coding): Fix of flushing out unprocessed data.
11499 (make_conversion_work_buffer): Fix making of a work buffer.
11500 (decode_coding_object): Return coding->dst_object.
11501
11502 * fontset.c (set_fontset_font): Fix args.
11503
11504 * lisp.h (CHARACTERBITS): Define as 22.
11505
11506 * process.c (send_process): Be sure to set coding->src_multibyte.
11507
11508 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
11509
115102008-02-01 Kenichi Handa <handa@m17n.org>
11511
11512 * xdisp.c (handle_auto_composed_prop): Give limit to
11513 Fnext_single_char_property_change.
11514
115152008-02-01 Kenichi Handa <handa@m17n.org>
11516
11517 * composite.c (syms_of_composite): Don't make the composition hash
11518 table weak.
11519
11520 * fontset.c (Fset_fontset_font): Fix docstring.
11521
11522 * lisp.h (detect_coding_system): Adjust prototype.
11523
11524 * fileio.c (kill_workbuf_unwind): Delete this function.
11525 (Finsert_file_contents): Adjust the call of detect_coding_system.
11526 Get conversion_buffer by code_conversion_save. Use the macro
11527 CODING_MAY_REQUIRE_DECODING. After decoding, update
11528 coding_system.
11529
11530 * coding.h (make_conversion_work_buffer): Delete extern.
11531 (code_conversion_save): Extern it.
11532
11533 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
11534 (CODING_GET_INFO): Delete argument eol_type. Change callers.
11535 (decode_coding_utf_8): Don't do eol converion.
11536 (detect_coding_utf_16): Check coding->src_chars, not
11537 coding->src_bytes. Add heuristics for those that have no signature.
11538 (decode_coding_emacs_mule, decode_coding_iso_2022)
11539 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
11540 Don't do eol converion.
11541 (adjust_coding_eol_type): Return a new coding system.
11542 (detect_coding): Don't detect eol. Fix for utf-16 detection.
11543 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
11544 each change.
11545 (decode_coding): Pay attention to undo_list. Do eol conversion for
11546 all types of coding-systems (if necessary).
11547 (Vcode_conversion_work_buf_list): Delete it.
11548 (Vcode_conversion_reused_workbuf): Rename from
11549 Vcode_conversion_reused_work_buf.
11550 (Vcode_conversion_workbuf_name): New variable.
11551 (reused_workbuf_in_use): New variable.
11552 (make_conversion_work_buffer): Delete the arg DEPTH.
11553 (code_conversion_restore): Change argument to cons.
11554 (code_conversion_save): Delete the argument BUFFER. Change callers.
11555 (detect_coding_system): New argument src_chars. Change callers.
11556 Fix for utf-16 detection.
11557 (init_coding_once): Don't use ISO_carriage_return.
11558 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
11559 reused_workbuf_in_use.
11560
115612008-02-01 Kenichi Handa <handa@m17n.org>
11562
11563 * keymap.c (store_in_keymap): Pay attention to the case that idx
11564 is a cons specifying a character range.
11565
115662008-02-01 Kenichi Handa <handa@m17n.org>
11567
11568 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
11569 HANDLED_RECOMPUTE_PROPS.
11570
11571 * coding.c (Fdefine_coding_system_internal): Fix checking of
11572 ascii compatibility.
11573
115742008-02-01 Kenichi Handa <handa@m17n.org>
11575
11576 * charset.c (find_charsets_in_text): Delete unused locale variable.
11577 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
11578
11579 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
11580 Resync charset_list to Vemacs_mule_charset_list.
11581
11582 * keymap.c (store_in_keymap): Pay attention to the case that idx
11583 is a cons specifying a character range.
11584
115852008-02-01 Kenichi Handa <handa@m17n.org>
11586
11587 * composite.c (update_compositions): Bind inhibit-read-only, etc
11588 to t before calling remove-list-of-text-properties.
11589
11590 * print.c (print_object): Always print ASCII chars as is.
11591
115922008-02-01 Kenichi Handa <handa@m17n.org>
11593
11594 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
11595
11596 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
11597 is a char table.
11598
115992008-02-01 Kenichi Handa <handa@m17n.org>
11600
11601 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
11602
116032008-02-01 Kenichi Handa <handa@m17n.org>
11604
11605 * xfaces.c (set_lface_from_font_name): Fix for the case that
11606 FONTNAME is not fontset name.
11607
116082008-02-01 Kenichi Handa <handa@m17n.org>
11609
11610 * fns.c (base64_encode_1): Fix previous change.
11611
116122008-02-01 Kenichi Handa <handa@m17n.org>
11613
11614 * fontset.c (set_fontset_font): New function.
11615 (Fset_fontset_font): If a font is specified for a charset, use
11616 map_charset_chars to store the font spec in a fontset.
11617
116182008-02-01 Kenichi Handa <handa@m17n.org>
11619
11620 * fontset.c (fontset_face): Create a fallback fontset on demand.
11621 (make_fontset): Don't create a fallback fontset here.
11622 (free_face_fontset): Free a fallback fontset (if any) too.
11623 (n_auto_fontsets): Delete this variable.
11624 (auto_fontset_alist): New variable.
11625 (new_fontset_from_font_name): Check auto_fontset_alist.
11626 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
11627 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
11628 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
11629 Defsubr Sfontset_list_all.
11630
116312008-02-01 Kenichi Handa <handa@m17n.org>
11632
11633 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11634
116352008-02-01 Kenichi Handa <handa@m17n.org>
11636
11637 * fontset.c (Fnew_fontset): Check NAME more rigidly.
11638
116392008-02-01 Kenichi Handa <handa@m17n.org>
11640
11641 * editfns.c (Fgoto_char): Fix docstring.
11642
116432008-02-01 Kenichi Handa <handa@m17n.org>
11644
11645 * insdel.c (insert_from_gap): Adjust intervals correctly.
11646
116472008-02-01 Jason Rumney <jasonr@gnu.org>
11648
11649 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
11650 (pfnGetFontUnicodeRanges): New dynamically loaded function.
11651 (w32_initialize): Try to load it.
11652 (x_get_font_repertory): Use it if available.
11653 (w32_encode_char): Add shortcut for unicode output.
11654
11655 * w32fns.c (w32_load_system_font): Default charset to -1.
11656 (x_to_w32_charset): Match all fonts for unicode.
11657 (w32_to_x_charset): New parameter matching. Don't return partial
11658 or wildcard charsets.
11659 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
11660 (w32_codepage_for_font): Return CP_UNICODE for unicode.
11661 (w32_to_x_font): Match charset to real charset.
11662 (enum_font_cb2): Always list unicode versions.
11663
11664 * makefile.w32-in (temacs): Increase EMHEAP.
11665
116662008-02-01 Jason Rumney <jasonr@gnu.org>
11667
11668 * w32term.c (w32_encode_char): New charset parameter.
11669 font_info.encoding becomes encoding_type.
11670 (x_get_font_repertory): New function. Warning: stub only!
11671 (x_new_font): Return quickly if font already set.
11672 (x_new_fontset): fontsetname parameter is Lisp_Object.
11673 Use new fs_query_fontset. Try new_fontset_from_font_name.
11674 Use fontset_name for return value.
11675
11676 * w32term.h: Declare x_get_font_repertory.
11677
11678 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
11679 place of find_charset_in_text. Use encode_coding_object in place
11680 of encode_coding.
11681 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
11682 decode_coding.
11683
11684 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
11685 of x_new_fontset.
11686 (w32_load_system_font): Initialize charset as unicode.
11687 font_info.encoding becomes encoding_type.
11688 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
11689 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
11690 (syms_of_w32fns): Set get_font_repertory_func.
11691
11692 * w32console.c: Include character.h. Use terminal_encode_buffer
11693 from term.c.
11694 (write_glyphs): Use new version of encode_terminal_code. Use
11695 encode_coding_object in place of encode_coding.
11696
11697 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
11698 encoding becomes encoding_type.
11699
11700 * term.c (terminal_encode_buffer): Make externally visible.
11701
11702 * makefile.w32-in: Add character.h dependancies.
11703 (character.o, chartab.o): New targets.
11704
117052008-02-01 Kenichi Handa <handa@m17n.org>
11706
11707 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
11708 CODING_ID_EOL_TYPE.
11709
117102008-02-01 Andreas Schwab <schwab@suse.de>
11711
11712 * coding.c (produce_chars): Revert last change.
11713
117142008-02-01 Kenichi Handa <handa@m17n.org>
11715
11716 * charset.h (charset_unicode): Extern it.
11717
11718 * charset.c (string_xstring_p): Check by (C >= 0x100).
11719 (find_charsets_in_text): Change format of the arc CHARSETS. New
11720 arg MULTIBYTE.
11721 (Ffind_charset_region, Ffind_charset_string): Adjust for the
11722 change of find_charsets_in_text.
11723 (Fsplit_char): Fix doc. Never return unknown.
11724
11725 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
11726
11727 * coding.c (Fdefine_coding_system_alias): Update
11728 Vcoding_system_list.
11729
11730 * fontset.c (load_font_get_repertory): Pay attention to the case
11731 that ENCODING of a font is specified by a char-table.
11732
11733 * xterm.c (x_get_font_repertory): Handle the case that the
11734 encoding of font is other than Unicode.
11735
117362008-02-01 Kenichi Handa <handa@m17n.org>
11737
11738 * term.c (encode_terminal_code): Don't handle glyph-table. Check
11739 if a character is encodable by the terminal coding system. If
11740 not, produces proper number of `?'s. Update
11741 terminal_encode_buffer and terminal_encode_buf_size if necessary.
11742 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
11743
117442008-02-01 Kenichi Handa <handa@m17n.org>
11745
11746 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
11747 variables.
11748 (encode_terminal_code): Change argument. Encode multiple
11749 characters at once. Store the result of encoding in
11750 terminal_encode_buffer.
11751 (write_glyphs, insert_glyphs): Adjust for the change of
11752 encode_terminal_code.
11753 (term_init): Initialize terminal_encode_buffer and
11754 terminal_encode_buf_size.
11755
11756 * coding.c (consume_chars): If coding->src_object is nil, don't
11757 check annotation.
11758
117592008-02-01 Kenichi Handa <handa@m17n.org>
11760
11761 * character.c (char_string): Use ASCII_CHAR_P instead of
11762 SINGLE_BYTE_CHAR_P.
11763
117642008-02-01 Kenichi Handa <handa@m17n.org>
11765
11766 * xdisp.c (handle_auto_composed_prop): Check if the last
11767 characters of auto-composed region is newly composed with the
11768 following characters.
11769 (handle_composition_prop): Fix checking of point being inside
11770 composition.
11771
117722008-02-01 Kenichi Handa <handa@m17n.org>
11773
11774 * fns.c (concat): Don't change multibyteness of the result by
11775 concatenating an 8-bit character.
11776
11777 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
11778 multibyteness of the result when newelt is an 8-bit character.
11779
117802008-02-01 Dave Love <fx@gnu.org>
11781
11782 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
11783 EMACS_INT.
11784
11785 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
11786
11787 * xfaces.c (face_numeric_value): Declare dim size_t.
11788 (Finternal_lisp_face_equal_p): Remove unused f.
11789
11790 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
11791 (MATRIX_ROW): Remove unused vars.
11792 (draw_glyphs, x_insert_glyphs, fast_find_position)
11793 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
11794 byte/char counts.
11795
11796 * regex.c (regex_compile): Remove unused var.
11797
11798 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
11799
11800 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
11801 (Faccessible_keymaps, where_is_internal): Remove unused vars.
11802
11803 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
11804
11805 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
11806
11807 * fileio.c (Fwrite_region): Remove unused var.
11808
11809 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
11810 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
11811
11812 * composite.c (Fremove_list_of_text_properties): Declare.
11813
11814 * coding.c (inhibit_pre_post_conversion): Remove (unused).
11815 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
11816 (coding_inherit_eol_type): Remove unused attrs.
11817 (detect_coding): Cast arg of detect_eol.
11818
11819 * charset.c (syms_of_charset): Remove unused var p.
11820 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
11821 byte/char counts.
11822
11823 * casetab.c (set_case_table): Remove unused var.
11824
11825 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
11826 unused vars.
11827
118282008-02-01 Dave Love <fx@gnu.org>
11829
11830 * xterm.c (x_bitmap_mask): Declare.
11831
118322008-02-01 Dave Love <fx@gnu.org>
11833
11834 * xterm.c (x_term_init): Fix type error.
11835
11836 * lisp.h: Add Funibyte_char_to_multibyte.
11837
11838 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
11839 (Fset_coding_system_priority): Doc fix.
11840
11841 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
11842
11843 * indent.c (check_composition): Make start and end EMACS_INT.
11844
11845 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
11846
11847 * xdisp.c (handle_composition_prop, check_point_in_composition):
11848 Make buffer positions EMACS_INT.
11849
11850 * composite.c (find_composition, run_composition_function)
11851 (update_compositions, Ffind_composition_internal): Make buffer
11852 positions EMACS_INT.
11853
11854 * composite.h (find_composition, update_compositions): Make
11855 position args EMACS_INT.
11856
11857 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
11858
11859 * intervals.c (get_property_and_range):
11860 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
11861
11862 * unexalpha.c: Don't include varargs.h.
11863
118642008-02-01 Dave Love <fx@gnu.org>
11865
11866 * coding.h (ENCODE_UTF_8): New.
11867
11868 * Makefile.in (gtkutil.o): Depend on coding.h.
11869
11870 * coding.c (Fset_coding_system_priority): Doc fix.
11871
118722008-02-01 Kenichi Handa <handa@m17n.org>
11873
11874 * fileio.c (Finsert_file_contents): Call setup_coding_system in
11875 the case of auto saving.
11876
118772008-02-01 Andreas Schwab <schwab@suse.de>
11878
11879 * chartab.c (map_char_table, map_char_table_for_charset): Protect
11880 `range' from GC.
11881
118822008-02-01 Kenichi Handa <handa@m17n.org>
11883
11884 * coding.c (decode_coding_sjis): Check bytes more rigidly.
11885
118862008-02-01 Kenichi Handa <handa@m17n.org>
11887
11888 * fileio.c (choose_write_coding_system): Return a decided coding system.
11889 (Fwrite_region): Set Vlast_coding_system_used to the return value
11890 of choose_write_coding_system.
11891
118922008-02-01 Kenichi Handa <handa@m17n.org>
11893
11894 * charset.c (Fset_charset_priority): Pay attention to duplicated
11895 arguments.
11896
11897 * coding.c (QCcategory): New variable.
11898 (syms_of_coding): Defsym it. Set all elements of
11899 Vcoding_category_table and their symbol values.
11900 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
11901 coding-category-XXX, and coding-category-list.
11902 (Fdefine_coding_system_internal): Add category in the plist.
11903
119042008-02-01 Kenichi Handa <handa@m17n.org>
11905
11906 * callproc.c (Fcall_process): Handle carryover correctly.
11907
11908 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
11909 (raw_text_coding_system): Check NILP (coding_system).
11910 (coding_inherit_eol_type): Check NILP (coding_system) and
11911 NILP (parent).
11912 (consume_chars): Fix for the case of raw-text.
11913
11914 * process.c (read_process_output): Handle carryover correctly.
11915
119162008-02-01 Dave Love <fx@gnu.org>
11917
11918 * regex.c (re_search_2): Fix last change.
11919
119202008-02-01 Kenichi Handa <handa@m17n.org>
11921
11922 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
11923 target_multibyte. Even in a unibyte case, return a converted
11924 multibyte char.
11925 (GET_CHAR_AFTER): New macro.
11926 (PATFETCH): Translate via multibyte char.
11927 (HANDLE_UNIBYTE_RANGE): Delete this macro.
11928 (SETUP_MULTIBYTE_RANGE): New macro.
11929 (regex_compile): Setup compiled code so that its multibyteness
11930 matches that of a target. Fix the handling of "[X-YZ]" using
11931 SETUP_MULTIBYTE_RANGE.
11932 (analyse_first) <charset>: For filling fastmap for all multibyte
11933 characters, don't check by BASE_LEADING_CODE_P.
11934 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
11935 the same as RE_MULTIBYTE_P (bufp) now.
11936 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
11937 (TARGET_CHAR_AND_LENGTH): Delete this macro.
11938 (TRANSLATE_VIA_MULTIBYTE): New macro.
11939 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
11940 It is the same as RE_MULTIBYTE_P (bufp) now.
11941 <exactn>: Translate via multibyte.
11942 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
11943 translate it.
11944 <charset, charset_not>: Fetch a character by
11945 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
11946 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
11947 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
11948 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
11949 by GET_CHAR_AFTER.
11950 (bcmp_translate): Likewise.
11951
11952 * search.c (compile_pattern): Check the member target_multibyte,
11953 not the member multibyte of buf.
11954
11955 * lread.c (read1): While reading a string, set force_singlebyte
11956 and force_multibyte correctly.
11957
11958 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
11959 up of unibyte_to_multibyte_table.
11960
119612008-02-01 Kenichi Handa <handa@m17n.org>
11962
11963 * coding.c (setup_coding_system): If coding has
11964 post-read-conversion or pre-write-conversion, set
11965 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
11966 respectively.
11967 (decode_coding_gap): Run post-read-conversion if any.
11968
11969 * fileio.c (Finsert_file_contents): Even if we read into a
11970 unibyte buffer, check if we must decode the result or not.
11971
119722008-02-01 Kenichi Handa <handa@m17n.org>
11973
11974 * coding.c (make_conversion_work_buffer): Change the work buffer
11975 name to the same one as that of Emacs 21.
11976
119772008-02-01 Kenichi Handa <handa@m17n.org>
11978
11979 * coding.h (make_conversion_work_buffer): Adjust prototype.
11980 (code_conversion_restore): Don't extern it.
11981
11982 * coding.c (detected_mask): Delete unused variable.
11983 (decode_coding_iso_2022): Pay attention to the byte sequence of
11984 CTEXT extended segment, and retain those bytes as is.
11985 (decode_coding_ccl): Delete unused variable `valids'.
11986 (setup_coding_system): Delete unused variable `category'.
11987 (consume_chars): Delete unused variable `category'. Make it work
11988 for non-multibyte case.
11989 (make_conversion_work_buffer): Change argument.
11990 (saved_coding): Delete unused variable.
11991 (code_conversion_restore): Don't check saved_coding->destination.
11992 (code_conversion_save): New function.
11993 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
11994 instead of record_unwind_protect.
11995 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
11996 (detect_coding_system): Delete unused variable `mask'.
11997 (Fdefine_coding_system_internal): Delete unused variable id.
11998
11999 * fileio.c (kill_workbuf_unwind): New function.
12000 (Finsert_file_contents): On replacing, call
12001 make_conversion_work_buffer with correct args, and call
12002 record_unwind_protect with the first arg kill_workbuf_unwind.
12003
12004 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
12005
120062008-02-01 Kenichi Handa <handa@m17n.org>
12007
12008 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
12009 (fontset_add): Fix for the case that TO is less than TO1.
12010 (Ffontset_info): Don't use fallback fontset on checking the
12011 default fontset.
12012 (dump_fontset): New function for debugging.
12013
12014 * coding.c (Fdefine_coding_system_internal): Fix for the case that
12015 coding_type is Qcharset.
12016
120172008-02-01 Kenichi Handa <handa@m17n.org>
12018
12019 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
12020 (map_char_table): Don't inherit the value from the parent on
12021 initializing VAL. Adjust for the above change.
12022
120232008-02-01 Kenichi Handa <handa@m17n.org>
12024
12025 * coding.c (Qsignature, Qendian): Delete these variables.
12026 (syms_of_coding): Don't initialize them.
12027 (CATEGORY_MASK_UTF_16_AUTO): New macro.
12028 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
12029 detect_info->found.
12030 (decode_coding_utf_16): Don't detect BOM here.
12031 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
12032 is NOT utf_16_without_bom.
12033 (setup_coding_system): For a coding system of type utf-16, check
12034 if the attribute :endian is Qbig or not (not nil or not), and set
12035 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
12036 (detect_coding): If coding type is utf-16 and BOM detection is
12037 required, detect it.
12038 (Fdefine_coding_system_internal): For a coding system of type
12039 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
12040
120412008-02-01 Kenichi Handa <handa@m17n.org>
12042
12043 * coding.c (coding_set_source): Fix for the case that the current
12044 buffer is different from coding->src_object.
12045 (decode_coding_object): Don't use the conversion work buffer if
12046 DST_OBJECT is a buffer.
12047
120482008-02-01 Dave Love <fx@gnu.org>
12049
12050 * lread.c (read_emacs_mule_char) [len==2]: Index
12051 emacs_mule_charset correctly.
12052
120532008-02-01 Dave Love <fx@gnu.org>
12054
12055 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
12056 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
12057 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
12058 treated specially.)
12059 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
12060 (detected_mask): Remove Big5 bits.
12061
120622008-02-01 Kenichi Handa <handa@m17n.org>
12063
12064 The following changes are to make the font rescaling facility
12065 compatible with Emacs 21.
12066
12067 * xfaces.c (Vface_font_rescale_alist): Rename from
12068 Vface_resizing_fonts.
12069 (struct font_name): Rename member resizing_ratio to rescale_ratio.
12070 (font_rescale_ratio): Rename from font_resizing_ratio.
12071 (split_font_name): Set font->rescale_ratio.
12072 (better_font_p): Pay attention to font->rescale_ratio.
12073 (build_scalable_font_name): Likewise. Change RESX, and RESY
12074 fields.
12075 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
12076
120772008-02-01 Kenichi Handa <handa@m17n.org>
12078
12079 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
12080 (Qutf_16_le): Remove these variables.
12081 (syms_of_coding): Don't DEFSYM them.
12082 (decode_coding_utf_16): Fix handling of BOM.
12083 (encode_coding_utf_16): Fix handling of BOM.
12084
120852008-02-01 Kenichi Handa <handa@m17n.org>
12086
12087 * fileio.c (Finsert_file_contents): On replacing, before decoding
12088 the file into the work buffer, set point of the work buffer to the end.
12089
120902008-02-01 Dave Love <fx@gnu.org>
12091
12092 * coding.c (Fcheck_coding_systems_region): Fix type errors.
12093
120942008-02-01 Dave Love <fx@gnu.org>
12095
12096 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12097 and fix C types.
12098
120992008-02-01 Kenichi Handa <handa@m17n.org>
12100
12101 * xdisp.c (SKIP_GLYPHS): New macro.
12102 (set_cursor_from_row): Pay attention to string display properties.
12103
12104 * category.c (copy_category_entry): Fix for the case that RANGE
12105 is an integer.
12106
12107 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
12108
12109 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
12110
121112008-02-01 Kenichi Handa <handa@m17n.org>
12112
12113 * charset.c (Fcharset_id_internal): New function.
12114 (syms_of_charset): Defsubr it.
12115
12116 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
12117 with the last arg charset_list acquired from coding.
12118 (Fdefine_coding_system_internal): For ccl-based coding system, fix
12119 the attribute coding_attr_ccl_valids.
12120
12121 * coding.h (enum define_coding_ccl_arg_index): Set the first
12122 member coding_arg_ccl_decoder to coding_arg_max.
12123
12124 * ccl.h (ccl_driver): Adjust prototype.
12125
12126 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
12127 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 12128 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
12129 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
12130 last arg Qnil.
12131
121322008-02-01 Kenichi Handa <handa@m17n.org>
12133
12134 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
12135 call encode_char.
12136
12137 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
12138
121392008-02-01 Dave Love <fx@gnu.org>
12140
12141 * composite.c (syms_of_composite): Make composition_hash_table weak.
12142
121432008-02-01 Kenichi Handa <handa@m17n.org>
12144
12145 * dispextern.h (check_face_attributes, generate_ascii_font_name)
12146 (font_name_registry): Don't extern them.
12147 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
12148
12149 * fontset.h (Qfontset): Don't extern it.
12150 (new_fontset_from_font_name): Extern it.
12151
12152 * fontset.c: Give 8 extra slots to fontset objects.
12153 (Qfontset_info): New variable.
12154 (syms_of_fontset): Defsym it.
12155 (FONTSET_FALLBACK): New macro.
12156 (fontset_face): Try also the default fontset.
12157 (make_fontset): Realize a fallback fontset from the default fontset.
12158 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
12159 using split_font_name_into_vector and build_font_name_from_vector.
12160 (Fset_fontset_font): Access the elements of font_spec by enum
12161 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
12162 name by using split_font_name_into_vector.
12163 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
12164 generate a proper font name from the fontset name. Update
12165 Vfontset_alias_alist.
12166 (n_auto_fontsets): New variable.
12167 (new_fontset_from_font_name): New function.
12168 (Ffont_info): Store the information about fonts generated from the
12169 default fontset in the first extra slot of the returned char-table.
12170
12171 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
12172 (font_name_registry): Delete function.
12173 (split_font_name_into_vector): New function.
12174 (build_font_name_from_vector): New function.
12175 (font_list): The argument REGISTRY is now a list of registry names.
12176 (choose_face_font): If we are choosing an ASCII font, and ATTRS
12177 specifies an explicit font name, return the name as is. Make a
12178 list of registy names.
12179
12180 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
12181 of x_new_fontset.
12182 (Fx_create_frame): Don't call x_new_fontset here. Just use
12183 x_list_fonts to check the existence of fonts.
12184
12185 * xterm.h (x_new_fontset): Adjust prototype.
12186
12187 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
12188 string. Use new_fontset_from_font_name to create a fontset from a
12189 font name.
12190
121912008-02-01 Kenichi Handa <handa@m17n.org>
12192
12193 * syntax.c (Vfind_word_boundary_function_table): New name for
12194 Vnext_word_boundary_function_table.
12195 (find-word-boundary-function-table): New name for
12196 next-word-boundary-function-table.
12197
121982008-02-01 Dave Love <fx@gnu.org>
12199
12200 * Makefile.in: Fix some dependencies.
12201
12202 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
12203 set it to nil before returning.
12204
12205 * composite.c (update_compositions): Fix type error.
12206
12207 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
12208
122092008-02-01 Kenichi Handa <handa@m17n.org>
12210
12211 * xterm.c (x_new_font): Optimize for the case that the font is
12212 already set for the frame.
12213
122142008-02-01 Kenichi Handa <handa@m17n.org>
12215
12216 * chartab.c (char_table_ascii): Check if the char table contents
12217 is sub-char-table or not.
12218 (char_table_set, char_table_set_range): Fix argument to
12219 char_table_ascii.
12220
12221 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
12222 (detect_coding_utf_8, detect_coding_utf_16)
12223 (detect_coding_emacs_mule, detect_coding_iso_2022)
12224 (detect_coding_sjis, detect_coding_big5)
12225 (detect_coding_ccl, detect_coding_charset): Change argument MASK
12226 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
12227 sequence is valid in this coding system. Change callers.
12228 (MAX_ANNOTATION_LENGTH): New macro.
12229 (ADD_ANNOTATION_DATA): New macro.
12230 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
12231 ADD_ANNOTATION_DATA. Change the format of annotation data.
12232 (ADD_CHARSET_DATA): New macro.
12233 (emacs_mule_char): New argument ID. Change callers.
12234 (decode_coding_emacs_mule, decode_coding_iso_2022)
12235 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
12236 Produce charset annotation data in coding->charbuf.
12237 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
12238 to charset annotation data in coding->charbuf.
12239 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
12240 coding->common_flags if the coding system is iso-2022 based and
12241 uses designation.
12242 (produce_composition): Adjust for the new annotation data format.
12243 (produce_charset): New function.
12244 (produce_annotation): Handle charset annotation.
12245 (handle_composition_annotation, handle_charset_annotation): New
12246 functions.
12247 (consume_chars): Handle charset annotation. Utilize the above two
12248 functions.
12249 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
12250 buffer, get the deleted text as a string and set
12251 coding->src_object to that string.
12252 (detect_coding, detect_coding_system): Use the new struct
12253 coding_detection_info.
12254
12255 * coding.h (struct coding_detection_info): New structure.
12256 (struct coding_system): Adjust prototype of the member `detector'.
12257 (CODING_ANNOTATE_CHARSET_MASK): New macro.
12258
122592008-02-01 Kenichi Handa <handa@m17n.org>
12260
12261 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
12262
122632008-02-01 Dave Love <fx@gnu.org>
12264
12265 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
12266 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
12267 to new local and nullify apropos_accumulate before returning.
12268 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
12269
122702008-02-01 Kenichi Handa <handa@m17n.org>
12271
12272 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
12273 correctly.
e3eea1fc 12274
aac0c6e3
MR
122752008-02-01 Dave Love <fx@gnu.org>
12276
12277 * fns.c (Flanginfo): Call synchronize_system_time_locale.
12278
122792008-02-01 Kenichi Handa <handa@m17n.org>
12280
12281 The following changes are to make character composition happen
12282 automatically on displaying.
12283
12284 * Makefile.in (lisp, shortlisp): Add composite.elc.
12285
12286 * composite.h (Qauto_composed, Vauto_composition_function)
12287 (Qauto_composition_function): Extern them.
12288
12289 * composite.c (Vcomposition_function_table)
12290 (Qcomposition_function_table): Delete variables.
12291 (Qauto_composed, Vauto_composition_function)
12292 (Qauto_composition_function): New variables.
12293 (run_composition_function): Don't call
12294 compose-chars-after-function.
12295 (update_compositions): Clear `auto-composed' text property.
12296 (compose_chars_in_text): Delete this function.
12297 (syms_of_composite): Staticpro Qauto_composed and
12298 Qauto_composition_function. Declare Vauto_composition_function as
12299 a Lisp variable.
12300
12301 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
12302
12303 * xdisp.c (it_props): Add an entry for Qauto_composed.
12304 (handle_auto_composed_prop): New function.
12305
12306 * xselect.c (selection_data_to_lisp_data): Don't call
12307 compose_chars_in_text.
12308
123092008-02-01 Dave Love <fx@gnu.org>
12310
12311 * keyboard.c (read_char): Modify checking around use of
12312 Vkeyboard_translate_table.
12313
12314 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
12315 and fix C types.
12316
123172008-02-01 Kenichi Handa <handa@m17n.org>
12318
12319 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
12320 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
12321 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
12322 the case that the last byte is '\r' correctly.
12323 (decode_coding): Flush out the unprocessed data correctly.
12324 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
12325
123262008-02-01 Dave Love <fx@gnu.org>
12327
12328 * xterm.c (XTread_socket): Fix changes for defined keysyms.
12329 Add XK_ISO... case.
12330 (xaw_scroll_callback): Revert last change.
12331
123322008-02-01 Kenichi Handa <handa@m17n.org>
12333
12334 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
12335
123362008-02-01 Kenichi Handa <handa@m17n.org>
12337
12338 * xfaces.c (Vface_resizing_fonts): New variable.
12339 (struct font_name): New member `resizing_ratio'.
12340 (font_resizing_ratio): New function.
12341 (split_font_name): Set font->resizing_ratio.
12342 (better_font_p): Pay attention to font->resizing_ratio.
12343 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
12344 RESX, and RESY fields.
12345 (try_alternative_families): Try scalable fonts if
12346 Vscalable_fonts_allowed is not Qt.
12347 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
12348
123492008-02-01 Dave Love <fx@gnu.org>
12350
12351 * xterm.c (xaw_scroll_callback): Cast correctly.
12352
123532008-02-01 Dave Love <fx@gnu.org>
12354
12355 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
12356 (lispy_kana_keys): Comment out.
12357 (make_lispy_event) [XK_kana_A]: Comment out.
12358
12359 * xterm.c (xaw_scroll_callback): Cast call_data.
12360 (XTread_socket): Deal with ASCII keysyms.
12361 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
12362
123632008-02-01 Dave Love <fx@gnu.org>
12364
12365 * xterm.c (Vx_keysym_table): New.
12366 (syms_of_xterm): Initialize it.
12367 (XTread_socket): Use it.
12368 From head: Eliminate incorrect optimization that tried to avoid
12369 decoding the output of X*LookupString.
12370 (x_get_font_repertory): Delete charset declaration.
12371
123722008-02-01 Kenichi Handa <handa@m17n.org>
12373
12374 * coding.c (detect_coding_charset): If only ASCII bytes are found,
12375 return 0.
12376 (Fdefine_coding_system_internal): Setup
12377 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
12378
123792008-02-01 Dave Love <fx@gnu.org>
12380
12381 * coding.c (Fcheck_coding_system): Doc fix.
12382
12383 * editfns.c (Finsert_byte): Return a proper value.
12384
123852008-02-01 Kenichi Handa <handa@m17n.org>
12386
12387 * coding.c (decode_coding): Fix args to translate_chars. Pay
12388 attention to Vstandard_translation_table_for_decode.
12389 (encode_coding): Fix args to translate_chars. Pay attention to
12390 Vstandard_translation_table_for_encode.
12391
12392 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
12393 SINGLE_BYTE_CHAR_P.
12394
12395 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
12396 not by SINGLE_BYTE_CHAR_P.
12397
12398 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
12399 SINGLE_BYTE_CHAR_P.
12400
12401 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
12402 SINGLE_BYTE_CHAR_P.
12403
12404 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
12405 by SINGLE_BYTE_CHAR_P.
12406
12407 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
12408 SINGLE_BYTE_CHAR_P.
12409
124102008-02-01 Dave Love <fx@gnu.org>
12411
12412 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
12413
124142008-02-01 Dave Love <fx@gnu.org>
12415
12416 * fns.c (Flanginfo): Fix typo.
12417
12418 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
12419
124202008-02-01 Kenichi Handa <handa@m17n.org>
12421
12422 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
12423 (detect_coding_emacs_mule, detect_coding_iso_2022)
12424 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
12425 incomplete byte sequence. Don't update *mask when correctly detected.
12426 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
12427 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
12428 (detect_coding, detect_coding_system): Adjust for the changes above.
12429
124302008-02-01 Kenichi Handa <handa@m17n.org>
12431
12432 * character.c (char_string): Rename from
12433 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
12434 (string_char): Rename from string_char.
12435
12436 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
12437 if C is greater than MAX_3_BYTE_CHAR.
12438 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
12439 string_char instead of string_char_with_unification.
12440
124412008-02-01 Dave Love <fx@gnu.org>
12442
12443 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
12444
124452008-02-01 Kenichi Handa <handa@m17n.org>
12446
12447 * keymap.c (push_key_description): Pay attention to force_multibyte.
12448
12449 * regex.c (re_search_2): Fix for the case of unibyte buffer.
12450
124512008-02-01 Dave Love <fx@gnu.org>
12452
12453 * charset.c (define_charset_internal): Rename `supprementary'.
12454
12455 * Makefile.in (lisp, shortlisp): Remove latin-N.
12456
124572008-02-01 Dave Love <fx@gnu.org>
12458
12459 * xfns.c (x_window, x_window): Use use_xim.
12460
12461 * xterm.c (use_xim): Initialize.
12462 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12463 (x_term_init): Maybe set use_xim.
12464
12465 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12466
124672008-02-01 Kenichi Handa <handa@m17n.org>
12468
12469 * search.c (search_buffer): Fix case-fold-search of multibyte
12470 characters.
12471 (boyer_moore): Rename the last argument to char_high_bits.
12472
124732008-02-01 Kenichi Handa <handa@m17n.org>
12474
12475 * xdisp.c (display_string): Fix for the case of zero width glyph.
12476
12477 * xfns.c (x_set_font): Change the error message of the case that
12478 x_new_fontset returns Qt.
12479
12480 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
12481 (Finternal_set_lisp_face_attribute): Use signal_error for the
12482 error of invalid fontset.
12483
12484 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
12485 fontset, return Qt.
12486
124872008-02-01 Dave Love <fx@gnu.org>
12488
12489 * unexelf.c (unexec): Make .got handling not SGI-specific.
12490
12491 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
12492
12493 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
12494
12495 * keyboard.c (read_key_sequence): Fix type error.
12496
12497 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
12498 type error.
12499
12500 * fontset.c (fontset_add): Return Lisp_Object.
12501
125022008-02-01 Dave Love <fx@gnu.org>
12503
12504 * charset.h (charset_ordered_list_tick): Declare extern.
12505
125062008-02-01 Kenichi Handa <handa@m17n.org>
12507
12508 The following changes (and some of 2008-02-01 changes of mine) are
12509 for handling syntax, category, and case conversion for unibyte
12510 characters by converting them to multibyte on the fly. With these
12511 changes, we don't have to setup syntax and case tables for unibyte
12512 characters in each language environment.
12513
12514 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
12515 multibyte if necessary.
12516
12517 * bytecode.c (Fbyte_code): Likewise.
12518
12519 * character.h (LEADING_CODE_LATIN_1_MIN)
12520 (LEADING_CODE_LATIN_1_MAX): New macros.
12521 (unibyte_to_multibyte_table): Extern it.
12522 (unibyte_char_to_multibyte): New macro.
12523 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
12524 (CHAR_LEADING_CODE): New macro.
12525 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
12526
12527 * character.c (unibyte_to_multibyte_table): New variable.
12528 (unibyte_char_to_multibyte): Move to character.h and define as macro.
12529 (multibyte_char_to_unibyte): If C is an eight-bit character,
12530 convert it to the corresponding byte value.
12531
12532 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
12533 not 1, signals an error. Update the elements of
12534 unibyte_to_multibyte_table.
12535 (init_charset_once): Initialize unibyte_to_multibyte_table.
12536 (syms_of_charset): Define the charset `iso-8859-1'.
12537
12538 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
12539 as is without converting it to unibyte. In a unibyte buffer,
12540 convert C to multibyte before checking the syntax.
12541
12542 * lisp.h (unibyte_char_to_multibyte): Delete extern.
12543
12544 * minibuf.c (Fminibuffer_complete_word): Use the macro
12545 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
12546
12547 * regex.h (struct re_pattern_buffer): New member target_multibyte.
12548
12549 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
12550 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
12551 that is zero, convert an eight-bit char to multibyte.
12552 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
12553 non-emacs case.
12554 (PATFETCH): Convert an eight-bit char to multibyte.
12555 (HANDLE_UNIBYTE_RANGE): New macro.
12556 (regex_compile): Setup the compiled pattern for multibyte chars
12557 even if the given regex string is unibyte. Use PATFETCH_RAW
12558 instead of PATFETCH in many places. To handle `charset'
12559 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
12560 only for ASCII chars.
12561 (analyse_first) <exactn>: Simplify because the compiled pattern
12562 is multibyte.
12563 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
12564 <charset>: Use CHAR_LEADING_CODE to get leading codes.
12565 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
12566 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
12567 multibyte always 1.
12568 (re_search_2): In emacs, set the locale variable multibyte to 1,
12569 otherwise to 0. New local variable target_multibyte. Check it
12570 to decide the multibyteness of STR1 and STR2. If
12571 target_multibyte is zero, convert unibyte chars to multibyte
12572 before translating and checking fastmap.
12573 (TARGET_CHAR_AND_LENGTH): New macro.
12574 (re_match_2_internal): In emacs, set the locale variable multibyte
12575 to 1, otherwise to 0. New local variable target_multibyte. Check
12576 it to decide the multibyteness of STR1 and STR2. Use
12577 TARGET_CHAR_AND_LENGTH to fetch a character from D.
12578 <charset, charset_not>: If multibyte is nonzero, check fastmap
12579 only for ASCII chars. Call bcmp_translate with
12580 target_multibyte, not with multibyte.
12581 <begline>: Declare the local variable C as `unsigned'.
12582 (bcmp_translate): Change the last arg name to target_multibyte.
12583
12584 * search.c (compile_pattern_1): Don't adjust the multibyteness of
12585 the regexp pattern and the matching target. Set cp->buf.multibyte
12586 to the multibyteness of the regexp pattern. Set
12587 cp->but.target_multibyte to the multibyteness of the matching target.
12588 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
12589 FETCH_STRING_CHAR_ADVANCE.
12590 (Freplace_match): Convert unibyte chars to multibyte.
12591
12592 * syntax.c (char_quoted, back_comment, scan_words)
12593 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
12594 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
12595 unibyte chars to multibyte.
12596 (skip_chars): Delete the arg syntaxp, and move the code for
12597 handling syntaxes to skip_syntaxes. Change callers.
12598 Fix the case that the multibyteness of STRING and the current
12599 buffer doesn't match.
12600 (skip_syntaxes): New function.
12601 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
12602 SINGLE_BYTE_CHAR_P.
12603
126042008-02-01 Kenichi Handa <handa@m17n.org>
12605
12606 * xfaces.c (QCfontset): New variable.
12607 (LFACE_FONTSET): New macro.
12608 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
12609 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
12610 (Finternal_set_lisp_face_attribute)
12611 (Finternal_get_lisp_face_attribute): Handle QCfontset.
12612 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
12613 check also LFACE_FONTSET_INDEX.
12614 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
12615 attrs[LFACE_FONT_INDEX].
12616 (syms_of_xfaces): Intern and staticpro QCfontset.
12617
12618 * dispextern.h (enum lface_attribute_index): New member
12619 LFACE_FONTSET_INDEX.
12620
12621 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
12622
126232008-02-01 Kenichi Handa <handa@m17n.org>
12624
12625 * coding.c (coding_set_destination): Fix coding->destination for
12626 the case converting a region.
12627 (encode_coding_utf_8): Encode eight-bit chars as single byte.
12628 (encode_coding_object): Fix coding->dst_pos and
12629 coding->dst_pos_byte for the case converting a region.
12630
12631 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
12632
12633 * character.h (BYTE8_STRING): New macro.
12634
12635 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
12636
126372008-02-01 Kenichi Handa <handa@m17n.org>
12638
12639 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
12640 characters by octal form.
12641
12642 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12643
12644 * buffer.h (_fetch_multibyte_char_len): Delete extern.
12645 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
12646 _fetch_multibyte_char_len.
12647 (FETCH_CHAR_AS_MULTIBYTE): New macro.
12648
12649 * casetab.c (set_canon, set_identity, shuffle): Simplify.
12650
12651 * casefiddle.c (casify_object): Simplify. Handle the case that
12652 the case conversion change the byte length.
12653 (casify_region): Likewise.
12654
12655 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
12656
12657 * character.c (_fetch_multibyte_char_len): Delete this variable.
12658 (syms_of_character): Setup Vprintable_chars.
12659
12660 * editfns.c (Fchar_equal): Fix for the unibyte case.
12661 (Finsert_byte): New function.
12662 (syms_of_editfns): Defsubr it.
12663
12664 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
12665 of direct code 0x3ffff.
12666
12667 * search.c (Freplace_match): Fix for the unibyte case.
12668
126692008-02-01 Kenichi Handa <handa@m17n.org>
12670
12671 * lread.c (safe_to_load_p): Fix the logic.
12672
12673 * syntax.c (scan_words): Don't treat characters belonging to
12674 different scripts as constituting a word.
12675
12676 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12677
12678 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
12679
12680 * emacs.c (main): In the case of --unibyte, instead of aborting on
12681 finding non-empty buffer, make it unibyte.
12682
126832008-02-01 Kenichi Handa <handa@m17n.org>
12684
12685 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
12686 to create a fontset.
12687
126882008-02-01 Dave Love <fx@gnu.org>
12689
12690 * character.c (Funibyte_char_to_multibyte): Doc fix.
12691
12692 * xfns.c [HAVE_STDLIB_H]: Fix last change.
12693
126942008-02-01 Kenichi Handa <handa@m17n.org>
12695
12696 * fontset.c (fontset_add): Make the type `int'.
12697 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
12698
12699 * character.c (unibyte_char_to_multibyte)
12700 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
12701 charset_unibyte, not charset_primary.
12702
12703 * charset.h (charset_unibyte): Extern it instead of charset_primary.
12704
12705 * charset.c (charset_unibyte): Rename from charset_primary.
12706 (Funibyte_charset): Rename from Fprimary_charset.
12707 (Fset_unibyte_charset): Rename from Fset_primary_charset.
12708 (syms_of_charset): Adjust for the above changes.
12709
12710 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12711 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12712 it->multibyte_p is zero.
12713
12714 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
12715 Delete extern.
12716
127172008-02-01 Kenichi Handa <handa@m17n.org>
12718
12719 * coding.c (Fdefine_coding_system_internal): Fix category setting
12720 for a coding system of type iso-2022.
12721
127222008-02-01 Kenichi Handa <handa@m17n.org>
12723
12724 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
12725
127262008-02-01 Kenichi Handa <handa@m17n.org>
12727
12728 * syntax.c (Vnext_word_boundary_function_table): New variable.
12729 (next-word-boundary-function-table): Declare it as a Lisp variable
12730 in syms_of_syntax.
12731 (scan_words): Call functions in Vnext_word_boundary_function_table
12732 if any.
12733
12734 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
12735
12736 * fontset.c (fs_load_font): If fontp->charset is not negative,
12737 return fontp without setting its members.
12738
127392008-02-01 Dave Love <fx@gnu.org>
12740
12741 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
12742
12743 * m/sparc.h (HAVE_ALLOCA): Delete.
12744
12745 * s/irix6-5.h: Don't include strings.h.
12746 (bcopy, bzero, bcmp): Don't undef.
12747
12748 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
12749
12750 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
12751 (TIOCSIGSEND): Don't test IRIX6.
12752 (bcopy, bzero, bcmp): Define conditionally.
12753
127542008-02-01 Kenichi Handa <handa@m17n.org>
12755
12756 * buffer.c (Qas, Qmake, Qto): New variables.
12757 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
12758 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
12759
12760 * callproc.c (Fcall_process): Don't call insert_1_both directly if
12761 we are inserting a process output into a multibyte buffer.
12762
12763 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
12764 multibyte_char_to_unibyte.
12765
12766 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
12767 by the primary charset, make it eight-bit char.
12768 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
12769
12770 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
12771 (charset_8_bit__control, charset_8_bit_graphic)
12772 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
12773 (define_charset_internal): New function.
12774 (syms_of_charset): Call define_charset_internal for pre-defined
12775 charsets.
12776
12777 * charset.h (charset_8_bit): Extern it.
12778
12779 * coding.c (make_conversion_work_buffer): Adjust for the change
12780 of Fset_buffer_multibyte.
12781 (encode_coding_raw_text): Increment p0 in the loop.
12782
12783 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
12784
12785 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
12786 for the change of Fset_buffer_multibyte.
12787
12788 * fns.c (Fstring_to_multibyte): New function.
12789 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
12790
127912008-02-01 Dave Love <fx@gnu.org>
12792
12793 * xfns.c (x_put_x_image): Declare args.
12794
12795 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
12796 (try_font_list): Declare an arg.
12797
12798 * xdisp.c (message2_nolog, set_message): Declare an arg.
12799
12800 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
12801
12802 * syntax.c (scan_sexps_forward): Declare an arg.
12803
12804 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
12805 Declare an arg.
12806
12807 * lisp.h (Fnew_fontset): Declare.
12808
12809 * keymap.c (push_key_description): Call CHARACTERP correctly.
12810
12811 * fontset.c (fontset_add): Declare args. Call make_number correctly.
12812 (face_for_char): Delete unused vars.
12813 (Fset_fontset_font): Doc fix. Delete unused vars.
12814
12815 * doc.c (Fsubstitute_command_keys): Delete unused vars.
12816
12817 * composite.c (update_compositions): Declare arg.
12818
12819 * cm.c (calccost, cmgoto): Declare args.
12820
12821 * charset.c: Remove `emacs' conditional. Doc fixes.
12822 (map_char_table_for_charset): Declare.
12823
12824 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
12825
12826 * ccl.c: Remove `emacs' conditional.
12827
128282008-02-01 Kenichi Handa <handa@m17n.org>
12829
12830 The following changes are to allow specifying multiple font
12831 patterns for a character range (specified by script or charset).
12832
12833 * Makefile.in (abbrev.o): Depend on syntax.h.
12834 (xfaces.o): Depend on charset.h.
12835
12836 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
12837 SINGLE_BYTE_CHAR_P.
12838
12839 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
12840
12841 * character.h (Vchar_script_table): Extern it.
12842
12843 * character.c (Vscript_alist): Delete.
12844 (Vchar_script_table, Qchar_script_table): New variable.
12845 (syms_of_character): Declare Vchar_script_table as a lisp variable
12846 and initialize it.
12847
12848 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
12849 have property char-table-extra-slots, make no extra slot.
12850
12851 * dispextern.h (struct face): Delete member `charset'.
12852 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
12853 SINGLE_BYTE_CHAR_P.
12854 (choose_face_font, lookup_non_ascii_face, font_name_registry):
12855 Add prototypes.
12856 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
12857 (generate_ascii_font_name): Rename from generate_ascii_font.
12858
12859 * fontset.h (get_font_repertory_func): New prototype.
12860 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
12861 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
12862
12863 * fontset.c (Qprepend, Qappend): New variables.
12864 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
12865 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
12866 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
12867 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
12868 (fontset_ref_and_range, fontset_add, reorder_font_vector)
12869 (load_font_get_repertory): New functions.
12870 (fontset_set): Delete.
12871 (fontset_face): New arg FACE. Return face ID, not face.
12872 Complete re-write to handle new fontset structure. Change caller.
12873 (free_face_fontset): Use ASET istead of AREF (X) = Y.
12874 (face_for_char): Don't call lookup_face.
12875 (make_fontset_for_ascii_face): New arg FACE.
12876 (fs_load_font): New arg CHARSET_ID. Don't check
12877 Vfont_encoding_alist here.
12878 (find_font_encoding): New function.
12879 (list_fontsets): Use STRINGP, not ! NILP.
12880 (accumulate_script_ranges): New function.
12881 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
12882 re-written to handle new fontset structure.
12883 (Ffontset_font): Return a copy of element.
12884 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
12885 docstring of font-encoding-alist.
12886
12887 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
12888 (Fset_fotset_font): Fix arguments to 5.
12889
12890 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
12891
12892 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
12893 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12894 (highlight_trailing_whitespace): Adjust for the change of
12895 lookup_named_face.
12896
12897 * xfaces.c: Include charset.h.
12898 (load_face_font): Delete argument C. Change caller.
12899 (generate_ascii_font_name): Rename from generate_ascii_font.
12900 (font_name_registry): New function.
12901 (cache_face): Store ascii faces before non-ascii faces in buckets.
12902 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
12903 Lookup only ascii faces.
12904 (lookup_non_ascii_face): New function.
12905 (lookup_named_face): Delete argument C. Change caller.
12906 (lookup_derived_face): Delete argument C. Change caller.
12907 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
12908 a string, just call font_list with it.
12909 (choose_face_font): Delete arguments FACE and C. New arg
12910 FONT_SPEC. Change caller.
12911 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
12912 Change caller.
12913 (realize_non_ascii_face): New function.
12914 (realize_x_face): Call load_face_font here.
12915 (realize_tty_face): Delete argument C. Change caller.
12916 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
12917 get a face ID.
12918 (dump_realized_face): Don't print charset of FACE.
12919
12920 * xfns.c (x_set_font): Always call x_new_fontset and
12921 store_frame_parameter.
12922 (Fx_create_frame): Call x_new_fontset, not x_new_font.
12923 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
12924
12925 * xterm.h (x_get_font_repertory): Extern it.
12926
12927 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
12928 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
12929 it->multibyte_p is zero.
12930 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
12931 (x_new_fontset): If FONTSETNAME doesn't match any existing
12932 fontsets, create a new one.
12933 (x_get_font_repertory): New function.
12934
129352008-02-01 Kenichi Handa <handa@m17n.org>
12936
12937 * coding.c (Ffind_coding_systems_region_internal): Detect an
12938 ASCII only string correctly.
12939
12940 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
12941 version is 0.
12942
129432008-02-01 Kenichi Handa <handa@m17n.org>
12944
12945 * lread.c: Include "coding.h".
12946 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
12947 (load_each_byte, unread_char): New variables.
12948 (readchar_backlog): Delete.
12949 (readchar): Return a character unless load_each_byte is nonzero.
12950 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
12951 cons. If unread_char is not -1, simply return it.
12952 (unreadchar): Handle the case that readcharfun is
12953 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
12954 (read_multibyte): Delete.
12955 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
12956 (read_emacs_mule_char): New functions.
12957 (Fload): Even if the file doesn't have the extension ".elc", if
12958 safe_to_load_p returns a positive version number, assume that the
12959 file contains bytecompiled code. If the version is less than 22,
12960 load the file while decoding multibyte sequences by emacs-mule.
12961 (readevalloop): Don't use readchar_backlog.
12962 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
12963 (Fread_from_string): Pay attention to the case that STREAM is a cons.
12964 (read_escape): Delete the arg BYTEREP.
12965 (read1): Set load_each_byte to 1 temporarily while handling
12966 #@NUMBER. Don't call read_multibyte.
12967 (read_vector): Call Fread with a cons. If readcharfun is
12968 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
12969 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
12970 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
12971 and Qload_force_doc_strings.
12972
129732008-02-01 Kenichi Handa <handa@m17n.org>
12974
12975 * xdisp.c (face_before_or_after_it_pos): Call
12976 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12977
129782008-02-01 Kenichi Handa <handa@m17n.org>
12979
12980 * character.h (TRAILING_CODE_P): New macro.
12981 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
12982 (string_char_with_unification): Fix prototype.
12983 (Vscript_alist): Extern it.
12984
12985 * character.c (Vscript_alist): New variable.
12986 (string_char_with_unification, str_as_unibyte)
12987 (string_escape_byte8): Add `const' to local variables.
12988 (syms_of_character): Declare script-alist as a Lisp variable.
12989
12990 * charset.h (Vcharset_ordered_list): Extern it.
12991 (charset_ordered_list_tick): Extern it.
12992 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
12993 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
12994 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
12995 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
12996 (Funify_charset): Adjust for the change of Funify_charset.
12997
12998 * charset.c (charset_ordered_list_tick): New variable.
12999 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
13000 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
13001 deunify intead of unify a charset.
13002 (string_xstring_p): Add `const' to local variables.
13003 (find_charsets_in_text): Add `const' to arguments and local variables.
13004 (encode_char): Adjust for the change of Funify_charset. Fix
13005 detecting of invalid code.
13006 (Fset_charset_priority): Increment charset_ordered_list_tick.
13007 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
13008 and TO_CODE.
13009
13010 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
13011 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
13012 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
13013 (decode_coding_ccl, consume_chars)
13014 (Ffind_coding_systems_region_internal)
13015 (Fcheck_coding_systems_region): Add `const' to local variables.
13016
13017 * print.c (print_object): Use octal form for printing the
13018 contents of a bool vector.
13019
130202008-02-01 Dave Love <fx@gnu.org>
13021
13022 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
13023 <version == 20>: Refuse to load.
13024
130252008-02-01 Dave Love <fx@gnu.org>
13026
13027 * fns.c: Move coding.h.
13028 (Qcodeset, Qdays, Qmonths): New.
13029 (concat): Use CHARACTERP instead of INTEGERP.
13030 (Flocale_codeset): Delete.
13031 (Flanginfo): New function.
13032 (syms_of_fns): Change accordingly.
13033
13034 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
13035
130362008-02-01 Dave Love <fx@gnu.org>
13037
13038 * casetab.c (init_casetab_once, init_casetab_once): Fix
13039 CHAR_TABLE_SET call.
13040
13041 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
13042
13043 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
13044
13045 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
13046 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
13047 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
13048
13049 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
13050
13051 * coding.c (ENCODE_DESIGNATION, decode_eol)
13052 (make_conversion_work_buffer, code_conversion_restore)
13053 (Fdefine_coding_system_internal): Convert Lisp types.
13054 (code_conversion_restore): Use EQ, not ==.
13055 (Fencode_coding_string): Fix code_convert_string call.
13056
13057 * coding.h (code_convert_region): Fix prototype.
13058
13059 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
13060
13061 * fontset.c (fontset_ref, fontset_set, fs_load_font)
13062 (Ffontset_info): Convert Lisp types.
13063
13064 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
13065
13066 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
13067
13068 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
13069
13070 * chartab.c: Include "...h", not <...h> in some cases.
13071
13072 * callproc.c (Fcall_process): Remove unused variables.
13073
130742008-02-01 Dave Love <fx@gnu.org>
13075
13076 * coding.c (Fset_coding_system_priority): Allow null arg list.
13077
130782008-02-01 Dave Love <fx@gnu.org>
13079
13080 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
13081 (Fself_insert_and_exit): Use CHARACTERP.
13082
13083 * callproc.c (Fcall_process): Remove unused vars.
13084
13085 * xterm.c (XTread_socket): Add extra dead keysyms.
13086
13087 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
13088
13089 * dispextern.h: Remove prototypes for redraw_frame,
13090 redraw_garbaged_frames.
13091
13092 * cmds.c (Fself_insert_command): Use CHARACTERP.
13093
13094 * chartab.c (make_sub_char_table): Remove unused var.
13095 (Fset_char_table_default, Fmap_char_table): Doc fix.
13096
13097 * keymap.c (access_keymap): Remove generic char code.
13098 (push_key_description): Use CHARACTERP.
13099
131002008-02-01 Dave Love <fx@gnu.org>
13101
13102 * charset.c: Doc fixes.
13103 (Funify_charset): Extra checking.
13104
131052008-02-01 Dave Love <fx@gnu.org>
13106
13107 * lread.c: Remove some unused variables.
13108 (safe_to_load_p): If safe, return the magic number version byte.
13109 (Fload): Maybe use load-with-code-conversion.
13110
131112008-02-01 Kenichi Handa <handa@m17n.org>
13112
13113 * category.c (Fmodify_category_entry): Don't modify the contents
13114 of category_set for characters out of the range. Avoid
13115 unnecessary modification.
13116
13117 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
13118 Vchar_unify_table. The default value of the table is now nil.
13119
13120 * character.c (syms_of_character): Setup Vchar_width_table for
13121 eight-bit-control and raw-byte chars.
13122
13123 * charset.h (enum define_charset_arg_index): Delete
13124 charset_arg_parents and add charset_arg_subset and
13125 charset_arg_superset.
13126 (enum charset_attr_index): Delete charset_parents and add
13127 charset_subset and charset_superset.
13128 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
13129 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
13130 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
13131 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
13132 (CHARSET_SUPERSET): New macros.
13133 (charset_work): Extern it.
13134 (ENCODE_CHAR): Use charset_work.
13135 (CHAR_CHARSET_P): Adjust for the change of encoder format.
13136 (map_charset_chars): Extern it.
13137
13138 * charset.c (load_charset_map): Set the default value of encoder
13139 and deunifier char-tables to nil.
13140 (map_charset_chars): Change argument. Change callers. Use
13141 map_char_table_for_charset instead of map_char_table.
13142 (Fmap_charset_chars): New optional args from_code and to_code.
13143 (Fdefine_charset_internal): Adjust for the change of
13144 `define-charset' (:parents -> :subset or :superset).
13145 (charset_work): New variable.
13146 (encode_char, syms_of_charset): Adjust for the change of
13147 Fdefine_charset_internal.
13148 (Ffind_charset_string): Setup the vector `charsets' correctly.
13149
13150 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
13151 the previous change.
13152 (char_table_ref_and_range): Adjust for the above change.
13153 (map_sub_char_table_for_charset): New function.
13154 (map_char_table_for_charset): New function.
13155
13156 * keymap.c (describe_vector): Handle a char-table directly here.
13157 (describe_char_table): Delete.
13158
13159 * lisp.h (map_charset_chars): Delete.
13160
131612008-02-01 Dave Love <fx@gnu.org>
13162
13163 * fns.c (count_combining): Comment out (unused).
13164 (Flocale_codeset): New.
13165 (syms_of_fns): Defsubr it.
13166
13167 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
13168 (size_t): Remove.
13169
131702008-02-01 Dave Love <fx@gnu.org>
13171
13172 * Makefile.in (chartab.o): Depend on charset.h.
13173
131742008-02-01 Kenichi Handa <handa@m17n.org>
13175
13176 * character.c (syms_of_character): Set the default value of
13177 Vprintable_chars to Qnil.
13178
131792008-02-01 Dave Love <fx@gnu.org>
13180
13181 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
13182
131832008-02-01 Kenichi Handa <handa@m17n.org>
13184
13185 * charset.c (load_charset_map): Handle the case that from < to
13186 correctly.
13187
13188 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
13189 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
13190 Pay attention to raw-8-bit chars.
13191
131922008-02-01 Kenichi Handa <handa@m17n.org>
13193
13194 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
13195 It is not bytecompiled now.
13196
13197 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
13198 (charset_jisx0208): New variables.
13199 (Fdefine_charset_internal): Setup them if appropriate.
13200 (init_charset_once): Initialize them to -1.
13201
13202 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
13203 (charset_jisx0208): Extern them.
13204
13205 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
13206 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
13207 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
13208 (setup_iso_safe_charsets): Fix arguments to Fassq.
13209 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
13210 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
13211 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
13212 (encode_coding_iso_2022): Change the 1st arg to
13213 ENCODE_ISO_CHARACTER to a variable.
13214
132152008-02-01 Kenichi Handa <handa@m17n.org>
13216
13217 * charset.h (enum define_charset_arg_index): New enums
13218 charset_arg_min_code and charset_arg_max_code.
13219 (struct charset): New member char_index_offset.
13220
13221 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
13222 Take charset->char_index_offset into account.
13223 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
13224 args[charset_arg_max_code]. Setup charset.char_index_offset.
13225 (syms_of_charset): Fix args to Fdefine_charset_internal.
13226
132272008-02-01 Dave Love <fx@gnu.org>
13228
13229 * coding.c (decode_coding_utf_8): Reject overlong sequences.
13230
132312008-02-01 Dave Love <fx@gnu.org>
13232
13233 * coding.c: Doc fixes.
13234 (Fcoding_system_aliases): Fix return value.
13235 (Qmac): Remove (duplicated) definition.
13236
132372008-02-01 Dave Love <fx@gnu.org>
13238
13239 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
13240 functions.
13241
13242 * character.c (Fstring): Doc fix.
13243
13244 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
13245
13246 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
13247 ids.
13248 (font-encoding-alist): Doc fix.
13249
132502008-02-01 Dave Love <fx@gnu.org>
13251
13252 * term.c (costs_set): Declare static, non-initialized for pcc.
13253 (encode_terminal_code): Remove unused var.
13254
13255 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13256 for K&R.
13257
13258 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
13259
13260 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
13261 (suffixes): Move out of make_subsidiaries for K&R.
13262
13263 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
13264
13265 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
13266
132672008-02-01 Dave Love <fx@gnu.org>
13268
13269 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
13270
13271 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
13272
132732008-02-01 Yong Lu <lyongu@asia-infonet.com>
13274
13275 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
13276
13277 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
13278
132792008-02-01 Kenichi Handa <handa@m17n.org>
13280
13281 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
13282 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
13283
132842008-02-01 Kenichi Handa <handa@m17n.org>
13285
13286 * coding.c (decode_coding_charset): Adjust for the change of
13287 Fdefine_coding_system_internal.
13288 (Fdefine_coding_system_internal): For a coding system of
13289 `charset' type, store a list of charset IDs in
13290 `charset_attr_charset_valids' element of coding attributes.
13291
132922008-02-01 Kenichi Handa <handa@m17n.org>
13293
13294 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
13295 (emacs_mule_char): New arg src. Delete arg `composition'. Change
13296 caller. Handle 2-byte and 3-byte charsets correctly.
13297 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
13298 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
13299 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
13300 (DECODE_EMACS_MULE_21_COMPOSITION): Call
13301 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
13302 sequence.
13303 (decode_coding_emacs_mule): Handle composition correctly. Rewind
13304 `src' and `consumed_chars' correctly before calling emacs_mule_char.
13305 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
13306 and alt&rule composition.
13307 (decode_coding_iso_2022): Handle composition correctly.
13308 (init_coding_once): Setup emacs_mule_bytes for private charsets.
13309
13310 * charset.c (Fdefine_charset_internal): Fix bug for the case of
13311 re-defining a charset. If the charset has :emacs-mule-id, setup
13312 emacs_mule_bytes.
13313 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
13314
133152008-02-01 Kenichi Handa <handa@m17n.org>
13316
13317 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
13318 (encode_coding_big5, encode_coding_charset): If coding requires safe
13319 encoding, produce a character specified by
13320 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
13321
133222008-02-01 Dave Love <fx@gnu.org>
13323
13324 * xterm.c (XSetIMValues): Declare.
13325
13326 * process.c: Conditionally include sys/wait.h, pty.h.
13327
13328 * print.c (print_object): Fix print format for 64-bit systems.
13329
13330 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
13331
13332 * buffer.c (emacs_strerror): Declare.
13333
13334 * fontset.c (Fclear_face_cache): Declare.
13335 (accumulate_font_info): Comment-out (unused).
13336 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
13337 variables.
13338
13339 * character.h (string_escape_byte8): Declare.
13340
13341 * charset.c (load_charset_map, load_charset_map_from_file): Remove
13342 unused vars.
13343 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
13344 (Fmap_charset_chars): Doc fix.
13345
13346 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
13347 (Fset_coding_system_priority, Fset_coding_system_priority)
13348 (Fdefine_coding_system_internal): Doc fix.
13349
133502008-02-01 Dave Love <fx@gnu.org>
13351
13352 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
13353
133542008-02-01 Kenichi Handa <handa@m17n.org>
13355
13356 * character.c (string_escape_byte8): Make multibyte string with
13357 correct size.
13358
13359 * charset.c (Fmake_char): Delete unnecessary code.
13360
133612008-02-01 Kenichi Handa <handa@m17n.org>
13362
13363 * xfns.c (x_encode_text): Allocate coding.destination here, and
13364 call encode_coding_object with dst_object Qnil.
13365
13366 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
13367 multibyte form correctly.
13368
13369 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
13370 against Vfont_encoding_alist.
13371
13372 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
13373 handling of charset list.
13374 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
13375 (decode_coding_object): Move point to coding->dst_pos before
13376 calling post-read-conversion function.
13377 (encode_coding_object): Give correct arguments to
13378 pre-write-conversion. Ignore the return value of
13379 pre-write-conversion function. Pay attention to the case that
13380 pre-write-conversion changes the current buffer. If dst_object is
13381 Qt, even if coding->src_bytes is zero, allocate at least one byte
13382 to coding->destination.
13383
13384 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
13385
13386 * charset.c (Fmake_char): Make it more backward compatible.
13387 (Fmap_charset_chars): Fix docstring.
13388
133892008-02-01 Dave Love <fx@gnu.org>
13390
13391 * coding.c: Doc fixes.
13392 (Fdefine_coding_system_alias): Use names, not symbols, in
13393 coding-system-alist.
13394
133952008-02-01 Kenichi Handa <handa@m17n.org>
13396
13397 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
13398 of calling free_realized_face.
13399
134002008-02-01 Yong Lu <lyongu@asia-infonet.com>
13401
13402 * charset.c (read_hex): Don't treat SPC as a comment starter.
13403 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
13404 (Fdecode_char): Fix typo.
13405
134062008-02-01 Kenichi Handa <handa@m17n.org>
13407
13408 * charset.h (struct charset): New member `code_space_mask'.
13409
13410 * coding.c (coding_set_source): Delete the local variable beg_byte.
13411 (encode_coding_charset, Fdefine_coding_system_internal):
13412 Delete the local variable charset.
13413 (Fdefine_coding_system_internal): Setup
13414 attrs[coding_attr_charset_valids] correctly.
13415
13416 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
13417 member to check if CODE is valid or not.
13418 (Fdefine_charset_internal): Initialize `code_space_mask' member.
13419 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
13420 is within the range of charset->min_code and carset->max_code.
13421
134222008-02-01 Dave Love <fx@gnu.org>
13423
13424 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
13425
13426 * dispextern.h (generate_ascii_font): Fix return type.
13427
13428 * xfaces.c (generate_ascii_font): Fix arg declaration.
13429
13430 * coding.c (coding_inherit_eol_type)
13431 (Fset_terminal_coding_system_internal)
13432 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
13433
134342008-02-01 Kenichi Handa <handa@m17n.org>
13435
13436 * coding.c (decode_coding_charset, encode_coding_charset): Handle
13437 multiple charsets correctly.
13438
134392008-02-01 Kenichi Handa <handa@m17n.org>
13440
13441 * search.c (boyer_moore): Fix handling of multibyte character
13442 translation.
13443
13444 * xdisp.c (display_mode_element): When the variable `elt' is
13445 changed, update `this' and `lisp_string'.
13446
134472008-02-01 Kenichi Handa <handa@m17n.org>
13448
13449 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
13450
13451 * callproc.c (Fcall_process): Be sure to give the current buffer
13452 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
13453
13454 * charset.c (struct charset_map_entries): New struct.
13455 (load_charset_map): Rename from parse_charset_map. New args
13456 entries and n_entries. Change caller.
13457 (load_charset_map_from_file): Rename from load_charset_map.
13458 Change caller. New arg control_flag. Call load_charset_map at
13459 the tail.
13460 (load_charset_map_from_vector): New function.
13461 (Fdefine_charset_internal): Setup charset.compact_codes_p.
13462 (encode_char): If the charset is compact, change a character index
13463 to a code point.
13464
13465 * coding.c (coding_alloc_by_making_gap): Check the case that the
13466 source and destination are the same correctly.
13467 (decode_coding_raw_text): Set coding->consumed_char and
13468 coding->consumed to 0.
13469 (produce_chars): If coding->chars_at_source is nonzero, update
13470 coding->consumed_char and coding->consumed before calling
13471 alloc_destination.
13472 (Fdefine_coding_system_alias): Register ALIAS in
13473 Vcoding_system_alist.
13474 (syms_of_coding): Define `no-conversion' coding system at the tail.
13475
13476 * fileio.c (Finsert_file_contents): Set coding_system instead of
13477 val. If the current buffer is multibyte, always call
13478 decode_coding_gap.
13479
13480 * xfaces.c (try_font_list): Give higher priority to fontset's
13481 family than face's family.
13482
134832008-02-01 Kenichi Handa <handa@m17n.org>
13484
13485 * callproc.c (Fcall_process): Be sure to give the current buffer
13486 to decode_coding_c_string.
13487
13488 * xfaces.c (try_font_list): Give a family specified in a fontset
13489 higher priority than a family specified in a face.
13490
134912008-02-01 Kenichi Handa <handa@m17n.org>
13492
13493 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
13494 Fix arguments to insert_from_buffer.
13495
13496 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
13497
134982008-02-01 Kenichi Handa <handa@m17n.org>
13499
13500 * coding.c (produce_chars): Set the variable `multibytep' correctly.
13501 (decode_coding_gap): Set coding->dst_multibyte correctly.
13502
135032008-02-01 Kenichi Handa <handa@m17n.org>
13504
13505 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
13506 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
13507 (encode_coding_utf_16): Substitute coding->default_char for
13508 non-Unicode characters.
13509 (decode_coding): Don't call record_insert here.
13510 (setup_coding_system): Initialize `surrogate' of
13511 coding->spec.utf_16 to 0.
13512 (EMIT_ONE_BYTE): Fix for multibyte case.
13513
13514 * insdel.c (insert_from_gap): Call record_insert.
13515
135162008-02-01 Kenichi Handa <handa@m17n.org>
13517
13518 * casefiddle.c (casify_region): Fix multibyte case.
13519
13520 * character.c (c_string_width): Add return type `int'.
13521 (char_string_with_unification): Delete arg ADVANCED.
13522
13523 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
13524 (CHAR_STRING): Adjust for the change of char_string_with_unification.
13525 (CHAR_STRING_ADVANCE): Make it do-while statement.
13526
13527 * chartab.c (sub_char_table_set_range): Optimize for the case
13528 DEPTH == 3. Add workaround code for a GCC optimization bug.
13529
13530 * charset.c (parse_charset_map): Remove an unused variable.
13531
13532 * coding.c: Delete unused variables.
13533
13534 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
13535 earlier. If inserted is zero and the coding system doesn't
13536 require flushing, don't call decode_coding_gap.
13537
13538 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
13539
135402008-02-01 Kenichi Handa <handa@m17n.org>
13541
13542 The following changes are for using Unicode as an internal
13543 character model, and use UTF-8 format for buffer/string
13544 representation.
13545
13546 * .gdbinit (xchartable): Adjust for the change of char table structure.
13547 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
13548
13549 * Makefile.in (obj): Add character.o and chartab.o.
13550 (lisp, shortlisp): Remove utf-8.elc.
13551 (*.o): For many files, change dependency on charset.h to
13552 character.h, and add dependency on character.h.
13553 (character.o, chartab.o): New targets.
13554
13555 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
13556 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
13557 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
13558 of "charset.h".
13559
13560 * dired.c, filelock.c: Include "character.h".
13561
13562 * alloc.c: Include "character.h" instead of "charset.h".
13563 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
13564 (syms_of_alloc): Remove defsubr for Smake_char_table.
13565
13566 * buffer.c: Include "character.h" instead of "charset.h", don't
13567 include "coding.h".
13568 (Fset_buffer_multibyte): Adjust for UTF-8.
13569
13570 * buffer.h: EXFUN Fbuffer_live_p.
13571
13572 * callproc.c: Include "character.h" instead of "charset.h".
13573 (Fcall_process): Big change for the new code-conversion APIs.
13574
13575 * casetab.c: Include "character.h" instead of "charset.h".
13576 (set_canon, set_identity, shuffle): Adjust for the new
13577 map_char_table spec.
13578 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
13579 accessing the char table structure.
13580
13581 * chartab.c: New file that implements char table.
13582
13583 * category.c: Include "character.h".
13584 (copy_category_entry): New function.
13585 (copy_category_table): Call map_char_table and copy_category_entry.
13586 (Fmake_category_table): Initialize all top-level slots.
13587 (char_category_set): New function.
13588 (modify_lower_category_set): Delete.
13589 (Fmodify_category_entry): Call char_table_ref_and_range.
13590
13591 * category.h (CATEGORY_SET): Just call char_category_set.
13592
13593 * ccl.c: Include "character.h".
13594 (Qccl, Qcclp): New variables.
13595 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
13596 it's less than 256.
13597 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
13598 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
13599 and DST type.
13600 (ccl_driver): Change types of argument, adjust code accordingly.
13601 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
13602 ccl_driver.
13603 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
13604
13605 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
13606 New members src_multibyte, dst_multibyte, consumed, and produced.
13607 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
13608 (CODING_SPEC_CCL_PROGRAM): New macro.
13609 (ccl_driver): Update prototype.
13610 (Qccl, Qcclp, Fccl_program_p): Extern them.
13611 (CHECK_CCL_PROGRAM): New macro.
13612
13613 * character.c, character.h, chartab.c: New files.
13614
13615 * charset.c: Mostly re-written. Move character and multibyte sequence
13616 handling codes to character.c.
13617
13618 * charset.h: Mostly re-written. Move character and multibyte sequence
13619 handling codes to character.h.
13620
13621 * coding.c, coding.h: Mostly re-written.
13622
13623 * composite.c: Include "character.h" instead of "charset.h".
13624 (CHAR_WIDTH): Move to character.h.
13625 (HASH_KEY, HASH_VALUE): Delete.
13626
13627 * composite.h (enum composition_method): Change order of enumeration
13628 symbols.
13629
13630 * data.c: Include "character.h" instead of "charset.h".
13631 (Faref): Call CHAR_TABLE_REF for a char table.
13632 (Faset): Call CHAR_TABLE_SET for a char table.
13633
13634 * dispextern.h (free_realized_face, check_face_attribytes)
13635 (generate_ascii_font): Extern them.
13636 (free_realized_multibyte_face): Delete extern.
13637
13638 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
13639 table structure.
13640
13641 * editfns.c: Include "character.h" instead of "charset.h".
13642 (Fchar_to_string): Always call CHAR_STRING.
13643
13644 * emacs.c (main): Call init_charset_once, init_charset,
13645 syms_of_chartab, and syms_of_character.
13646
13647 * fileio.c: Include "character.h" instead of "charset.h".
13648 (Finsert_file_contents): Big change for the new code-conversion API.
13649 (choose_write_coding_system, Fwrite_region): Likewise.
13650 (build_annotations_2): Delete.
13651 (e_write): Big change for the new code-conversion API.
13652
13653 * fns.c: Include "character.h" instead of "charset.h".
13654 (copy_sub_char_table): Move to chartab.c.
13655 (Fcopy_sequence): Call copy_char_table for a char table.
13656 (concat): Delete codes calling count_multibyte.
13657 (string_char_to_byte, string_byte_to_char): Adjust for the new
13658 multibyte form.
13659 (internal_equal): Adjust for the change of char table structure.
13660 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
13661 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
13662 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
13663 (char_table_translate, optimize_sub_char_table)
13664 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
13665 chartab.c.
13666 (char_table_ref_and_index): Delete.
13667 (HASH_KEY, HASH_VALUE): Move to lisp.h.
13668 (Fmd5): Call preferred_coding_system instead of accessing
13669 Vcoding_category_list. Adjust for the new code-conversion API.
13670 (syms_of_fns): Move defsubr for char table related functions to
13671 chartab.c.
13672
13673 * fontset.c: Mostly re-written.
13674
13675 * fontset.h (struct font_info): Change type of the member encoding_type.
13676 (enum FONT_SPEC_INDEX): New enum.
13677 (fontset_font_pattern, fs_load_font): Update prototype.
13678 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
13679
13680 * indent.c: Include "character.h" instead of "charset.h".
13681 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
13682
13683 * insdel.c: Include "character.h" instead of "charset.h".
13684 (copy_text): Don't refer to Vnonascii_translation_table.
13685 (insert_from_gap): New function.
13686
13687 * keyboard.c: Include "character.h" instead of "charset.h".
13688 (command_loop_1): Never call direct_output_forward_char before
13689 a non-ASCII character.
13690 (read_char): If Vkeyboard_translate_table is a char table, always
13691 translate a character.
13692
13693 * keymap.c: Include "character.h".
13694 (store_in_keymap): Handle the case that IDX is a cons.
13695 (Fdefine_key): Handle the case that KEY is a cons and the car part
13696 is also a cons (range).
13697 (push_key_description): Adjust for the new character code.
13698 (describe_vector): Call describe_char_table for a char table.
13699 (describe_char_table): New function.
13700
13701 * keymap.h (describe_char_table): Extern it.
13702
13703 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
13704 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
13705 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
13706 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
13707 Delete.
13708 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
13709 structure.
13710 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
13711 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
13712 (CHARTAB_SIZE_BITS_3): New macros.
13713 (chartab_size): Extern it.
13714 (struct Lisp_Char_Table): Re-design.
13715 (struct Lisp_Sub_Char_Table): New structure.
13716 (HASH_KEY, HASH_VALUE): Move from fns.c.
13717 (CHARACTERBITS): Define as 22.
13718 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
13719 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
13720 (GC_SUB_CHAR_TABLE_P): New macro.
13721 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
13722 (code_convert_string_norecord): Deleted extern.
13723 (init_character_once, syms_of_character, init_charset)
13724 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
13725
13726 * lread.c: Include "character.h".
13727 (read_multibyte): New arg NBYTES.
13728 (read_escape): Change the meaning of returned *BYTEREP.
13729 (to_multibyte): Delete.
13730 (read1): Adjust the handling of char table and string.
13731
13732 * print.c: Include "character.h" instead of "charset.h".
13733 (print_string): Convert 8-bit raw bytes to octal form by
13734 string_escape_byte8.
13735 (print_object): Adjust for the new multibyte form. Print 8-bit
13736 raw bytes always in octal form. Handle sub char table correctly.
13737
13738 * process.c: Include "character.h" instead of "charset.h".
13739 (read_process_output, send_process): Adjust for the new
13740 code-conversion API.
13741
13742 * puresize.h (BASE_PURESIZE): Increase.
13743
13744 * regex.c: Include "character.h" instead of "charset.h".
13745 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
13746 (regex_compile): Accept a range whose starting and ending
13747 character have different leading bytes.
13748 (analyse_first): Adjust for the above change.
13749
13750 * search.c: Include "character.h" instead of "charset.h".
13751 (search_buffer, boyer_moore): Adjust for the new multibyte form.
13752 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
13753
13754 * syntax.c: Include "character.h" instead of "charset.h".
13755 (syntax_parent_lookup): Delete.
13756 (Fmodify_syntax_entry): Accept a cons as CHAR.
13757 (skip_chars): Adjust for the new multibyte form.
13758 (init_syntax_once): Call char_table_set_range instead of directly
13759 accessing the structure of a char table.
13760
13761 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
13762 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
13763 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
13764 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
13765
13766 * term.c: Include "buffer.h" and "character.h".
13767 (encode_terminal_code, write_glyphs): Adjust for the new
13768 code-conversion API.
13769 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
13770
13771 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
13772
13773 * xdisp.c: Include "character.h".
13774 (get_next_display_element): Adjust for the new multibyte form.
13775 (disp_char_vector): Adjust for the new char table structure.
13776 (decode_mode_spec_coding): Adjust for the new structure of
13777 coding system.
13778 (decode_mode_spec): Adjust for the new code-conversion API.
13779
13780 * xfaces.c: Include "character.h" instead of "charset.h".
13781 (load_face_font): Adjust for the change of choose_face_font and
13782 FS_LOAD_FONT.
13783 (generate_ascii_font): New function.
13784 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
13785 (set_font_frame_param): Adjust for the change of choose_face_font.
13786 (free_realized_face): Make it public.
13787 (free_realized_faces_for_fontset): Rename from
13788 free_realized_multibyte_face. Free also faces realized for ASCII.
13789 (choose_face_font): Change arguments. Adjust for the change of
13790 fontset_font_pattern and FS_LOAD_FONT.
13791
13792 * xfns.c: Include "character.h".
13793 (x_encode_text): Adjust for the new code-conversion API.
13794
13795 * xselect.c: Don't include "charset.h".
13796 (selection_data_to_lisp_data): Adjust for the new code conversion API.
13797
13798 * xterm.c: Include "character.h".
13799 (x_encode_char): New argument CHARSET. Change caller.
13800 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
13801 Call ENCODE_CHAR instead of SPLIT_CHAR.
13802 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
13803 CHAR_WIDTH instead of CHARSET_WIDTH.
13804 (XTread_socket): Adjust for the new code-conversion API.
13805 (x_new_font): Adjust for the change of FS_LOAD_FONT.
13806 (x_load_font): Adjust for the change of struct font.
13807
138082008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
13809
13810 * xfaces.c (face_at_buffer_position): Remove unused vars.
13811
138122008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13813
13814 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
13815 Fix overflow checking.
13816
138172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13818
13819 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
13820 Cancel previous change.
13821
138222008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13823
13824 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
13825 ccl->eight_bit_control. Fix check for buffer overflow.
13826 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
13827 (ccl_driver): Initialize extra_bytes to 0.
13828
138292008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
13830
13831 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
13832 return it ORed with ctrl_modifier.
13833
138342008-01-29 Miles Bader <miles@gnu.org>
13835
13836 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
13837
138382008-01-28 Jason Rumney <jasonr@gnu.org>
13839
13840 * w32.c (stat): Don't double check for networked drive.
13841
138422008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
13843
13844 * window.c (run_window_configuration_change_hook): New function.
13845 Code extracted from set_window_buffer. Set the selected frame.
13846 (set_window_buffer): Use it.
13847 * window.h (run_window_configuration_change_hook): Declare.
13848 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
13849
13850 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
13851
138522008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
13853
13854 * Makefile.in: Remove references to unused macros.
13855
138562008-01-26 Eli Zaretskii <eliz@gnu.org>
13857
13858 * w32.c (g_b_init_get_sid_sub_authority)
13859 (g_b_init_get_sid_sub_authority_count): New static variables.
13860 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
13861 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
13862 (init_user_info): Use them to retrieve uid and gid.
13863 Use 500/513, the Windows defaults, as Administrator's uid/gid.
13864 (fstat): Use pw_uid and pw_gid from the_passwd structure for
13865 st_uid and st_gid of the file.
13866
138672008-01-26 Jason Rumney <jasonr@gnu.org>
13868
13869 * w32.c (logon_network_drive): New function.
13870 (stat): Use it.
13871
138722008-01-26 Chong Yidong <cyd@stupidchicken.com>
13873
13874 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
13875 invisible text covered with an ellipsis.
13876
138772008-01-25 Richard Stallman <rms@gnu.org>
13878
13879 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
13880 jump back to beginning. Move some other initializations after that.
13881 (Qwindow_text_change_functions, Vwindow_text_change_functions):
13882 New variables.
13883 (syms_of_xdisp): Init them.
13884
13885 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
13886
13887 * buffer.c (reset_buffer_local_variables):
13888 Implement `permanent-local-hook'.
13889 (Qpermanent_local_hook): New variable.
13890 (syms_of_buffer): Init and staticpro it.
13891
138922008-01-25 Michael Albinus <michael.albinus@gmx.de>
13893
13894 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
13895
138962008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
13897
13898 * fns.c (Fclrhash): Return TABLE.
13899
139002008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13901
13902 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
13903 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
13904 is set even without positional changes.
13905 (x_scroll_bar_clear): Set bar->redraw_needed_p.
13906
13907 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
13908
139092008-01-23 Jason Rumney <jasonr@gnu.org>
13910
13911 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
13912
13913 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
13914 the unicode range available in MULE by locale-coding-system.
13915 Improve dbcs lead byte detection. Set event timestamp and modifiers
13916 earlier.
13917
139182008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13919
13920 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
13921 [MAC_OSX] (init_mac_osx_environment): Initialize it.
13922 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
13923 when used on child processes.
13924
139252008-01-21 Michael Albinus <michael.albinus@gmx.de>
13926
13927 * dbusbind.c (Fdbus_method_return_internal): Rename from
13928 Fdbus_method_return.
13929 (Fdbus_unregister_object): Move to dbus.el.
13930 (Fdbus_call_method, Fdbus_method_return_internal)
13931 (Fdbus_send_signal): Improve debug messages.
13932
139332008-01-20 Martin Rudalics <rudalics@gmx.at>
13934
13935 * undo.c (undo_inhibit_record_point): New variable.
13936 (syms_of_undo): Initialize it.
13937 (record_point): Don't record point when undo_inhibit_record_point
13938 is set.
13939
139402008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
13941
13942 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
13943
13944 * xdisp.c (Qauto_hscroll_mode): New var.
13945 (syms_of_xdisp): Initialize it.
13946 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
13947 window's buffer.
13948 (hscroll_windows): Don't check automatic_hscrolling_p here.
13949
13950 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
13951 vscroll if we're setting window-buffer to the value it already has.
13952
139532008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
13954
13955 * m/intel386.h: Remove references to XENIX.
13956
139572008-01-17 Andreas Schwab <schwab@suse.de>
13958
13959 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
13960 instead of HAVE_X86_64_LIB64_DIR.
13961 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
13962
139632008-01-17 Glenn Morris <rgm@gnu.org>
13964
13965 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
13966 to HAVE_X86_64_LIB64_DIR.
13967
139682008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
13969
13970 * s/irix3-3.h:
13971 * s/irix4-0.h:
13972 * s/386-ix.h:
13973 * s/domain.h:
13974 * s/hpux9-x11r4.h:
13975 * s/hpux9shxr4.h: Remove files for systems no longer supported.
13976
13977 * sysdep.c: Remove code containing references to symbols defined
13978 by unsupported systems.
13979
139802008-01-16 Glenn Morris <rgm@gnu.org>
13981
13982 * coding.c (select-safe-coding-system-function): Doc fix.
13983
139842008-01-15 Glenn Morris <rgm@gnu.org>
13985
13986 * config.in: Revert 2008-01-13 change: this is a generated file.
13987
139882008-01-13 Tom Tromey <tromey@redhat.com>
13989
13990 * lisp.h: Fix typo.
13991
139922008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
13993
13994 * m/sequent-ptx.h:
13995 * m/sequent.h:
13996 * s/ptx.h:
13997 * s/ptx4-2.h:
13998 * s/ptx4.h: Remove files for systems no longer supported.
13999
14000 * callproc.c (Fcall_process): Fix previous change.
14001
140022008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
14003
14004 * unexsunos4.c: Remove file, system not supported anymore.
14005
14006 * m/mips.h:
14007 * m/intel386.h:
14008 * callproc.c:
14009 * config.in:
14010 * ecrt0.c:
14011 * emacs.c:
14012 * fileio.c:
14013 * frame.c:
14014 * getpagesize.h:
14015 * keyboard.c:
14016 * lread.c:
14017 * process.c:
14018 * puresize.h:
14019 * sysdep.c:
14020 * systty.h:
14021 * syswait.h:
14022 * unexec.c:
14023 * xdisp.c:
14024 * alloc.c: Remove code containing references to symbols defined by
14025 unsupported systems.
14026
140272008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
14028
14029 * coding.c (detect_coding_mask): Fix previous change.
14030
140312008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
14032
14033 * coding.c (detect_coding_iso2022): New arg
14034 latin_extra_code_state. Allow Latin extra codes only
14035 when *latin_extra_code_state is nonzero.
14036 (detect_coding_mask): If there is a NULL byte, detect the encoding
14037 as UTF-16 or binary. If Latin extra codes exist, detect the
14038 encoding as ISO-2022 only when there's no other proper encoding is
14039 found.
14040
140412008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14042
14043 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
14044 #ifdef MAC_OS.
14045
140462008-01-08 Richard Stallman <rms@gnu.org>
14047
14048 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
14049
140502008-01-06 Nick Roberts <nickrob@snap.net.nz>
14051
14052 * keyboard.c (parse_menu_item): Don't enclose key bindings on
14053 menu bar in parentheses.
14054
140552008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
14056
14057 * m/7300.h:
14058 * m/acorn.h:
14059 * m/alliant-2800.h:
14060 * m/alliant.h:
14061 * m/alliant1.h:
14062 * m/alliant4.h:
14063 * m/altos.h:
14064 * m/amdahl.h:
14065 * m/apollo.h:
14066 * m/att3b.h:
14067 * m/aviion-intel.h:
14068 * m/aviion.h:
14069 * m/celerity.h:
14070 * m/clipper.h:
14071 * m/cnvrgnt.h:
14072 * m/convex.h:
14073 * m/cydra5.h:
14074 * m/delta88k.h:
14075 * m/dpx2.h:
14076 * m/dual.h:
14077 * m/elxsi.h:
14078 * m/f301.h:
14079 * m/gould-np1.h:
14080 * m/gould.h:
14081 * m/i860.h:
14082 * m/ibmps2-aix.h:
14083 * m/ibmrt-aix.h:
14084 * m/ibmrt.h:
14085 * m/irist.h:
14086 * m/is386.h:
14087 * m/isi-ov.h:
14088 * m/mega68.h:
14089 * m/mg1.h:
14090 * m/news-r6.h:
14091 * m/news-risc.h:
14092 * m/news.h:
14093 * m/nh3000.h:
14094 * m/nh4000.h:
14095 * m/ns16000.h:
14096 * m/ns32000.h:
14097 * m/nu.h:
14098 * m/orion.h:
14099 * m/orion105.h:
14100 * m/paragon.h:
14101 * m/pfa50.h:
14102 * m/plexus.h:
14103 * m/pyramid.h:
14104 * m/pyrmips.h:
14105 * m/sh3el.h:
14106 * m/sps7.h:
14107 * m/sr2k.h:
14108 * m/stride.h:
14109 * m/sun1.h:
14110 * m/sun2.h:
14111 * m/sun3-68881.h:
14112 * m/sun3-fpa.h:
14113 * m/sun3-soft.h:
14114 * m/sun3.h:
14115 * m/sun386.h:
14116 * m/symmetry.h:
14117 * m/tad68k.h:
14118 * m/tahoe.h:
14119 * m/targon31.h:
14120 * m/tek4300.h:
14121 * m/tekxd88.h:
14122 * m/tower32.h:
14123 * m/tower32v3.h:
14124 * m/ustation.h:
14125 * m/wicat.h:
14126 * m/xps100.h:
14127 * s/cxux.h:
14128 * s/cxux7.h:
14129 * s/dgux.h:
14130 * s/dgux4.h:
14131 * s/dgux5-4-3.h:
14132 * s/dgux5-4r2.h:
14133 * s/esix.h:
14134 * s/esix5r4.h:
14135 * s/hiuxmpp.h:
14136 * s/hiuxwe2.h:
14137 * s/iris3-5.h:
14138 * s/iris3-6.h:
14139 * s/isc2-2.h:
14140 * s/isc3-0.h:
14141 * s/isc4-0.h:
14142 * s/isc4-1.h:
14143 * s/newsos5.h:
14144 * s/newsos6.h:
14145 * s/osf1.h:
14146 * s/osf5-0.h:
14147 * s/riscix1-1.h:
14148 * s/riscix12.h:
14149 * s/sco4.h:
14150 * s/sco5.h:
14151 * s/sunos4-0.h:
14152 * s/sunos4-1.h:
14153 * s/sunos413.h:
14154 * s/sunos4shr.h:
14155 * s/umax.h:
14156 * s/unipl5-2.h:
14157 * s/xenix.h:
14158 * cxux-crt0.s:
14159 * unexapollo.c:
14160 * unexconvex.c:
14161 * unexenix.c:
14162 * unexsni.c: Remove files for systems no longer supported.
14163
14164 * m/intel386.h: Remove references to unsupported systems.
14165
14166 * w32.c (get_emacs_configuration): Remove reference to i860.
14167
14168 * sysdep.c: Remove dead code.
14169
141702008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
14171
14172 * s/rtu.h:
14173 * m/masscomp.h: Remove files. Platform is obsolete.
14174
141752008-01-04 Michael Albinus <michael.albinus@gmx.de>
14176
14177 * dbusbind.c (Fdbus_method_return): New function.
14178 (xd_read_message): Add the serial number to the event.
14179 (Fdbus_register_method): Activate the function.
14180
141812008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
14182
14183 * keyboard.c (read_key_sequence): Fix typo.
14184
141852008-01-03 Michael Albinus <michael.albinus@gmx.de>
14186
14187 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
14188 (xd_signature, xd_append_arg): Handle element type detection for
14189 empty arrays.
14190 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
14191 SDATA () calls; this must be solved more general.
14192 (Fdbus_register_signal): Use SBYTES instead of strlen.
14193
141942008-01-03 Magnus Henoch <magnus@zemdatav>
14195
14196 * dbusbind.c (xd_append_arg): Use unsigned char instead of
14197 unsigned int for byte values (necessary for big-endian platform).
14198 (Fdbus_call_method): Handle the case of no returned arguments.
14199
142002007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
14201
14202 * dbusbind.c (xd_read_message): Use non-static input_event struct.
14203
142042007-12-31 Magnus Henoch <mange@freemail.hu>
14205
14206 * dbusbind.c (xd_signature): Signature of variant is just "v".
14207
142082007-12-30 Michael Albinus <michael.albinus@gmx.de>
14209
14210 * dbusbind.c: Fix several errors and compiler warnings.
14211 Reported by Tom Tromey <tromey@redhat.com>.
14212 (XD_ERROR, XD_DEBUG_MESSAGE)
14213 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
14214 (xd_append_arg): Part for basic D-Bus types rewritten.
14215 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
14216 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
14217 appropriate.
14218 (xd_read_message): Return Qnil. Don't signal an error; it is not
14219 useful during event reading.
14220 (Fdbus_register_signal): Signal an error if the check for
14221 FUNCTIONP fails.
14222 (Fdbus_register_method): New function. The implementation is not
14223 complete, the call of the function signals an error therefore.
14224 (Fdbus_unregister_object): New function, renamed from
14225 Fdbus_unregister_signal. The initial check signals an error, if
14226 the object is not well formed.
14227
142282007-12-30 Richard Stallman <rms@gnu.org>
14229
14230 * textprop.c (get_char_property_and_overlay):
14231 Signal error if POSITION is out of range in a buffer.
14232
142332007-12-29 Martin Rudalics <rudalics@gmx.at>
14234
14235 * w32fns.c (Fx_create_frame): Make copy of frame parameters
14236 because the original parameters are in pure storage now.
14237
142382007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14239
14240 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
14241
142422007-12-22 Eli Zaretskii <eliz@gnu.org>
14243
14244 * callint.c (syms_of_callint) <command-history>: Add reference to
14245 history-length in the doc string.
14246
142472007-12-17 Jason Rumney <jasonr@gnu.org>
14248
14249 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
14250 before passing as wParam.
14251
142522007-12-22 Michael Albinus <michael.albinus@gmx.de>
14253
14254 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
14255 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
14256 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
14257 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
14258 as number.
14259 (Fdbus_call_method): Fix docstring.
14260
142612007-12-21 Michael Albinus <michael.albinus@gmx.de>
14262
14263 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
14264 New macros.
14265 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
14266 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
14267 Simplify.
14268 (xd_signature): New function.
14269 (xd_append_arg): Compute also signatures. Major rewrite.
14270 (xd_retrieve_arg): Make debug messages friendly.
14271 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
14272 Check for signatures of arguments.
14273
142742007-12-19 Michael Albinus <michael.albinus@gmx.de>
14275
14276 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
14277 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
14278 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
14279 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
14280 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
14281 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
14282 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
14283 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
14284 (xd_retrieve_value): Remove. Functionality included in ...
14285 (xd_append_arg): New function.
14286 (Fdbus_call_method, Fdbus_send_signal): Apply it.
14287
142882007-12-16 Michael Albinus <michael.albinus@gmx.de>
14289
14290 * dbusbind.c (top): Include <stdio.h>.
14291 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
14292 dbus_message_new_method_call and dbus_message_new_signal.
14293 (Fdbus_register_signal): Rename unique_name to uname.
14294 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
14295 non-existing unique name. Fix typos in matching rule. Return an
14296 object which is useful in Fdbus_unregister_signal.
14297 (Fdbus_unregister_signal): Reimplementation, in order to remove
14298 only the corresponding entry.
14299 (Vdbus_registered_functions_table): Change the order of entries.
14300 Apply these changes in xd_read_message and Fdbus_register_signal.
14301
143022007-12-16 Andreas Schwab <schwab@suse.de>
14303
14304 * fileio.c (Finsert_file_contents): Fix overflow check to not
14305 depend on undefined integer overflow.
14306
143072007-12-14 Jason Rumney <jasonr@gnu.org>
14308
14309 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
14310 for characters above 127.
14311
143122007-12-13 Jason Rumney <jasonr@gnu.org>
14313
14314 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
14315 before dereferencing array.
14316 (lookup_vk_code): Remove zero comparison.
14317
143182007-12-14 Michael Albinus <michael.albinus@gmx.de>
14319
14320 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
14321 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
14322 Use `unsigned int' instead of `uint'.
14323 (xd_read_message, Fdbus_register_signal): Split expressions into
14324 multiple lines before operators "&&" and "||", according to the
14325 GNU Coding Standards.
14326
143272007-12-14 Eli Zaretskii <eliz@gnu.org>
14328
14329 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
14330
143312007-12-12 Juri Linkov <juri@jurta.org>
14332
14333 * buffer.c (Frename_buffer): In interactive spec replace
14334 `read-buffer' with `read-string' that uses `buffer-name-history'
14335 as history, and the current buffer's name as default.
14336
143372007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
14338
14339 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
14340 manipulating the backtrace manually.
14341 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
14342 (struct backtrace, backtrace_list): Remove.
14343 (command_loop_1): Remove dead var `no_direct'.
14344
14345 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
14346 preserve non-built-in buffer-local variables.
14347 (Fkill_all_local_variables): Don't re-create&re-set permanent
14348 buffer-local variables.
14349
143502007-12-09 Juri Linkov <juri@jurta.org>
14351
14352 * buffer.c (Frename_buffer): Change interactive spec from "s" to
14353 Lisp code that uses `read-buffer' with current buffer as default.
14354
143552007-12-08 Michael Albinus <michael.albinus@gmx.de>
14356
14357 * dbusbind.c (xd_read_message): Generate an event for every
14358 registered handler. There might be several handlers registered
14359 for the same signal.
14360 (Fdbus_register_signal): Don't overwrite a registration for the
14361 same signal. Add a new registration if handlers are different.
14362 (Vdbus_registered_functions_table): Rework doc string.
14363
143642007-12-07 Michael Albinus <michael.albinus@gmx.de>
14365
14366 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
14367 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
14368 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
14369 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
14370 Unify argument lists.
14371 (xd_read_message, Fdbus_register_signal): Reorder and extend event
14372 arguments and hash table keys. Use unique name for service.
14373 (Fdbus_unregister_signal): Remove checks.
14374 (Vdbus_registered_functions_table): Fix doc string.
14375
143762007-12-05 Magnus Henoch <mange@freemail.hu>
14377
14378 * process.c (make_process): Initialize pty_flag to 0.
14379
143802007-12-05 Jason Rumney <jasonr@gnu.org>
14381
14382 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
14383 specified XBMs.
14384
143852007-12-05 Richard Stallman <rms@gnu.org>
14386
14387 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
14388
143892007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14390
14391 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
14392 New variable.
14393 (mac_try_close_socket) [MAC_OSX]: New function.
14394 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
14395 Update cfsockets_for_select. Replace invalid CFRunLoop source.
14396
14397 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
14398 Use mac_try_close_socket.
14399
144002007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14401
14402 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
14403 reloc_base.
14404 (copy_dysymtab): Compute relocation base here.
14405 (rebase_reloc_address) [__ppc64__]: New function.
14406 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
14407 changed.
14408
144092007-12-05 Jason Rumney <jasonr@gnu.org>
14410
14411 * w32proc.c (sys_spawnve): Quote args with wildcards.
14412
144132007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14414
14415 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
14416 __objc_* sections.
14417 (unrelocate) [_LP64]: Set relocation base to address of data segment.
14418
144192007-12-05 Michael Albinus <michael.albinus@gmx.de>
14420
14421 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
14422 Move check for Vdbus_registered_functions_table to
14423 xd_read_queued_messages.
14424 (xd_read_queued_messages): Protect xd_read_message calls by
14425 internal_condition_case_1.
14426
144272007-12-04 Michael Albinus <michael.albinus@gmx.de>
14428
14429 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
14430 Qdbus_system_bus and Qdbus_session_bus, respectively.
14431 (Vdbus_intern_symbols): Remove.
14432 (Vdbus_registered_functions_table): New hash table.
14433 (XD_SYMBOL_INTERN_SYMBOL): Remove.
14434 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
14435 Rewrite in order to manage registered functions by hash table
14436 Vdbus_registered_functions_table.
14437
144382007-12-03 Jan Djärv <jan.h.d@swipnet.se>
14439
14440 * xterm.c: Update URL to Window Manager Specification in comment.
14441
144422007-12-02 Michael Albinus <michael.albinus@gmx.de>
14443
14444 * config.in (HAVE_DBUS): Add.
14445
14446 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
14447 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
14448 (obj): Add $(DBUS_OBJ).
14449 (LIBES): Add $(DBUS_LIBS).
14450 (dbusbind.o): New target.
14451
14452 * dbusbind.c: New file.
14453
14454 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
14455
14456 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
14457 (Qdbus_event): New Lisp symbol.
14458 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
14459 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 14460 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
14461
14462 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
14463
144642007-12-01 Richard Stallman <rms@gnu.org>
14465
14466 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
14467
144682007-11-30 Jason Rumney <jasonr@gnu.org>
14469
14470 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
14471 (w32con_reset_terminal_modes): Clear screen buffer.
14472 (w32_face_attributes): Don't use color indexes that are out of range.
14473 Only reverse the default colors.
14474
14475 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
14476 WINDOWSNT.
14477
14478 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
14479
144802007-11-29 Jason Rumney <jasonr@gnu.org>
14481
14482 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
14483 (w32_face_attributes): Use Vtty_defined_color_alist to determine
14484 if the terminal colors are initialized.
14485 (unspecified_fg, unspecified_bg): Remove unused declarations.
14486
144872007-11-29 Andreas Schwab <schwab@suse.de>
14488
14489 * keyboard.c (apply_modifiers): Fix typo.
14490
144912007-11-29 Richard Stallman <rms@gnu.org>
14492
14493 * keymap.c (Fcurrent_local_map): Doc fix.
14494
144952007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
14496
14497 * s/gnu-kfreebsd.h: New file.
14498
144992007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
14500
14501 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
14502 Don't cast redundantly.
14503
14504 * keyboard.c (KEY_TO_CHAR): New macro.
14505 (parse_modifiers, apply_modifiers): Accept integer arguments.
14506 (read_key_sequence): Use them to unify the "shift->unshift" mapping
14507 for chars and symbol keys.
14508 After doing such remapping, apply function-key-map again.
14509
145102007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
14511
14512 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
14513 compiled anymore.
14514
145152007-11-26 Andreas Schwab <schwab@suse.de>
14516
14517 * process.c (list_processes_1): Fix indentation level of the
14518 command column.
14519
145202007-11-23 Andreas Schwab <schwab@suse.de>
14521
14522 * editfns.c (Fformat): Handle %c specially since it requires the
14523 argument to be of type int.
14524
145252007-11-23 Markus Triska <markus.triska@gmx.at>
14526
14527 * emacs.c (main): Call init_editfns before init_process, since
14528 init_process sets Vprocess_connection_type depending on OS release.
14529
145302007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
14531
14532 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
14533 (find_symbol_value): Use do_symval_forwarding.
14534
14535 * data.c (set_internal): Set the value in the `cons-cell' (for
14536 Buffer_Local_values) not only for frame-local variables.
14537
145382007-11-22 Andreas Schwab <schwab@suse.de>
14539
14540 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
14541 values to sprintf.
14542 * keymap.c (Fsingle_key_description): Likewise.
14543 * print.c (print_object): Likewise.
14544
145452007-11-22 Jan Djärv <jan.h.d@swipnet.se>
14546
14547 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
14548 file for image is nil.
14549
145502007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
14551
14552 * term.c: Include stdarg.h.
14553 (fatal): Implement using varargs.
14554 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
14555
145562007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14557
14558 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
14559 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
14560 Update call to buffer_slot_type_mismatch.
14561 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
14562 (buffer_slot_type_mismatch): Update.
14563 * buffer.c (buffer_local_types): Remove.
14564 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
14565 (defvar_per_buffer): Set the type in the buffer_objfwd.
14566
145672007-11-21 Jason Rumney <jasonr@gnu.org>
14568
14569 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
14570 CreateFileMapping returns NULL on failure.
14571
145722007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
14573
14574 * search.c (Fset_match_data): Remove the `evaporate' feature.
14575 (unwind_set_match_data): Don't use the `evaporate' feature.
14576
145772007-11-21 Jason Rumney <jasonr@gnu.org>
14578
14579 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
14580
14581 * w32console.c (w32con_write_glyphs): Remove unused variables.
14582
145832007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
14584
14585 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
14586
14587 * s/darwin.h (MULTI_KBOARD): Remove.
14588
14589 * macfns.c (x_create_tip_frame, Fx_create_frame)
14590 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
14591
145922007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
14593
14594 * buffer.c (Fbuffer_local_value): Remove redundant test.
14595 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
14596 than in `current-buffer' to match the comment.
14597 Do the swap using swap_in_global_binding.
14598
14599 * data.c (store_symval_forwarding, set_internal):
14600 * eval.c (specbind): Remove dead code.
14601
14602 * coding.c (detect_coding, Fupdate_coding_systems_internal):
14603 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
14604 Since we do not want to see internal Lisp_*fwd objects here.
14605
146062007-11-18 Jan Djärv <jan.h.d@swipnet.se>
14607
14608 * sysdep.c (init_system_name): Use getaddrinfo if available.
14609
14610 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
14611 (x_scroll_bar_note_movement): start, end, with, height in struct
14612 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
14613
146142007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
14615
14616 * puresize.h (BASE_PURESIZE): Increase to 1190000.
14617
146182007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
14619
14620 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
14621 This undoes Richard's change of 14-Oct-2002.
14622
14623 * alloc.c (allocate_other_vector):
14624 * lisp.h (allocate_other_vector): Remove.
14625
14626 * window.c (struct save_window_data): Move non-lisp data to the end
14627 and make it `int' rather than Lisp_Object.
14628 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
14629 Done wrap/unwrap integer values.
14630 (Fset_window_configuration, compare_window_configurations):
14631 Update use of fields to their new types.
14632
14633 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
14634 Turn integer fields into `int'. Merge x_window_low and x_window_high.
14635 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
14636 (SET_SCROLL_BAR_X_WINDOW): Remove.
14637 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
14638 Access the new x_window field directly.
14639 * xterm.c (x_scroll_bar_create): Use a pseudovector.
14640 Don't wrap/unwrap integers into Lisp_Objects.
14641 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
14642 (x_scroll_bar_report_motion):
14643 Don't wrap/unwrap integers into Lisp_Objects.
14644 (x_term_init): Use SDATA.
14645 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
14646 (x_scroll_bar_set_handle, x_scroll_bar_remove)
14647 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
14648 (x_scroll_bar_report_motion, x_scroll_bar_clear):
14649 * xfns.c (x_set_background_color):
14650 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
14651 Access the new x_window field directly.
14652
14653 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
14654 (allocate_pseudovector): Make non-static.
14655
14656 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
14657 (allocate_pseudovector): Declare.
14658 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
14659
146602007-11-15 Andreas Schwab <schwab@suse.de>
14661
14662 * editfns.c (Fformat): Correctly format EMACS_INT values.
14663 Also take precision into account when formatting an integer.
14664
14665 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
14666
146672007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
14670 (syms_of_keyboard): Defsubr it.
14671
14672 * data.c (swap_in_global_binding): Fix longstanding bug where
14673 store_symval_forwarding was not called with the right second argument,
14674 thus causing objfwd-ing from being dropped.
14675
146762007-11-14 Juanma Barranquero <lekktu@gmail.com>
14677
14678 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
14679 (Fx_display_pixel_height, Fx_display_planes)
14680 (Fx_display_color_cells, Fx_server_max_request_size)
14681 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14682 (Fx_display_visual_class, Fx_display_save_under):
14683 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
14684 (Fx_display_pixel_height, Fx_display_planes)
14685 (Fx_display_color_cells, Fx_server_max_request_size)
14686 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14687 (Fx_display_mm_height, Fx_display_mm_width)
14688 (Fx_display_backing_store, Fx_display_visual_class)
14689 (Fw32_select_font, Fx_display_save_under):
14690 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
14691 (Fx_display_pixel_height, Fx_display_planes)
14692 (Fx_display_color_cells, Fx_server_max_request_size)
14693 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
14694 (Fx_display_save_under): Fix typos in docstrings.
14695
146962007-11-14 Juanma Barranquero <lekktu@gmail.com>
14697
14698 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
14699 corresponding to deleted entries; they are an implementation detail.
14700 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
14701 Remove variables.
14702 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
14703 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
14704 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
14705 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
14706 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
14707 (Fw32_define_rgb_color, Fw32_load_color_file)
14708 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
14709 Fix typos in docstrings.
14710 (Fx_server_version): Reflow docstring.
14711 (Fw32_shell_execute): Doc fixes.
14712
147132007-11-13 Juanma Barranquero <lekktu@gmail.com>
14714
14715 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
14716 if w32_parse_hot_key returned nil.
14717
147182007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
14719
14720 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
14721
147222007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 14723
aac0c6e3
MR
14724 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
14725
14726 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
14727
14728 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
14729 Remove W32_SCROLL_BAR_CLICK_EVENT.
14730
14731 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
14732 Add MULTIMEDIA_KEY_EVENT.
14733
14734 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
14735 (lispy_multimedia_keys) [WINDOWSNT]: New array.
14736 (make_lispy_event) [WINDOWSNT]: Use it to translate
14737 MULTIMEDIA_KEY_EVENT.
14738
14739 * w32term.h (WM_APPCOMMAND): Define if not already.
14740 (GET_APPCOMMAND_LPARAM): Likewise.
14741
14742 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
14743 WM_APPCOMMAND.
14744
14745 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
14746 (syms_of_w32fns): Export and initialize it.
14747 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
14748
147492007-11-09 Chong Yidong <cyd@stupidchicken.com>
14750
14751 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
14752 twice.
14753
14754 * xdisp.c (handle_face_prop): Fix last change.
14755
147562007-11-09 Richard Stallman <rms@gnu.org>
14757
14758 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
14759 not just for after-strings and before-strings.
14760 Call face_for_overlay_string and pass the overlay to it.
14761 (handle_display_prop): Determine whether property came from an overlay.
14762 Pass OVERLAY arg to handle_single_display_spec.
14763 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
14764 (load_overlay_strings): Fill in it->string_overlays.
14765 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
14766
14767 * xfaces.c (face_for_overlay_string): Function renamed from
14768 face_at_buffer_position_no_overlays, and add arg OVERLAY.
14769
14770 * dispextern.h (struct it): New elt string_overlays.
14771 New elt from_overlay, also in stack.
14772 Rearrange a few elements.
14773 (face_for_overlay_string): Decl renamed from
14774 face_at_buffer_position_no_overlays, and add argument.
14775
147762007-11-09 Richard Stallman <rms@gnu.org>
14777
14778 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
14779 to get the base face for an overlay string.
14780
14781 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
14782
14783 * xfaces.c (face_at_buffer_position_no_overlays): New function.
14784
14785 * xdisp.c (handle_stop): Move some code out of loop.
14786
147872007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14788
14789 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
14790 Fix conversion from Lisp object to ATSUFontID.
14791
147922007-11-09 Jason Rumney <jasonr@gnu.org>
14793
14794 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
14795
147962007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14797
14798 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
14799 Don't assume regions are aligned to page boundary.
14800 (print_load_command_name): Add LC_UUID if defined.
14801
148022007-11-09 Richard Stallman <rms@gnu.org>
14803
14804 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
14805
148062007-11-07 Jason Rumney <jasonr@gnu.org>
14807
14808 * s/windows95.h: Remove.
14809
148102007-11-06 Jan Djärv <jan.h.d@swipnet.se>
14811
14812 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
14813 abort with a message on unhandled store_type values.
14814
148152007-11-01 Jan Djärv <jan.h.d@swipnet.se>
14816
14817 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
14818 Remove HAVE_X11R5 and HAVE_X11R4.
14819
148202007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14821
14822 * Makefile.in: Remove references to sunfns.c and sunfns.o.
14823
148242007-11-01 Johan Bockgård <bojohan@gnu.org>
14825
14826 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
14827 Don't set s->stippled_p here, since it has already been set by
14828 x_set_glyph_string_gc from x_draw_glyph_string.
14829
148302007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
14831
14832 * sunfns.c: Remove file.
14833
14834 * m/sun386.h:
14835 * m/sun2.h:
14836 * m/sparc.h: Remove Sun windows code.
14837
148382007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
14839
14840 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
14841 (init_keyboard): Set current_kboard's window-system to nil.
14842 (tty_read_avail_input): Typo.
14843 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
14844
148452007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
14846
14847 * s/usg5-4.h:
14848 * s/usg5-3.h:
14849 * s/ptx.h:
14850 * m/is386.h:
14851 * m/ibmps2-aix.h:
14852 * Makefile.in: Remove all mentions of X10.
14853
14854 * dispnew.c (syms_of_display): Don't mention version 10.
14855
148562007-10-28 Juanma Barranquero <lekktu@gmail.com>
14857
14858 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
14859 ($(BLD)/abbrev.$(O)): Remove.
14860
148612007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
14862
14863 Rewrite abbrev.c in Elisp.
14864 * image.c (Qcount): Don't declare as extern.
14865 (syms_of_image): Initialize and staticpro `Qcount'.
14866 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
14867 * emacs.c (main): Don't call syms_of_abbrev.
14868 * Makefile.in (obj): Remove abbrev.o.
14869 (abbrev.o): Remove.
14870 * abbrev.c: Remove.
14871
148722007-10-26 Martin Rudalics <rudalics@gmx.at>
14873
14874 * window.c (window_min_size_2): Don't count header-line.
14875
148762007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
14877
14878 * frame.h (struct frame): Move all bit fields after the first bit
14879 field to take advantage of the available space. Group all the
14880 chars together to reduce wasted space due to padding.
14881
148822007-10-26 Juanma Barranquero <lekktu@gmail.com>
14883
14884 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
14885
14886 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
14887 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
14888 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
14889 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
14890 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
14891 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
14892 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
14893 (last_marked, mark_object_loop_halt): Make static.
14894
14895 * frame.c (syms_of_frame) <delete-frame-functions>:
14896 Fix typo in docstring.
14897
148982007-10-25 Juanma Barranquero <lekktu@gmail.com>
14899
14900 * w32.c (init_environment): Fix tiny memory leak.
14901 (w32_get_resource): Remove unused variable `ok'.
14902
149032007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
14904
14905 Make `window-system' into a keyboard-local variable (rather than
14906 frame-local as done originally by multi-tty).
14907
14908 * keyboard.h (struct kboard): Add Vwindow_system.
14909 * keyboard.c (init_kboard): Set a default for Vwindow_system.
14910 (mark_kboards): Mark Vwindow_system.
14911
14912 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
14913 (init_display): Don't set the obsolete `window-system' frame-param.
14914
14915 * xterm.c (x_term_init):
14916 * w32term.c (w32_create_terminal):
14917 * term.c (init_tty): Set Vwindow_system.
14918 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
14919 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
14920
14921 * xfns.c (Fx_create_frame, x_create_tip_frame):
14922 * w32fns.c (Fx_create_frame, x_create_tip_frame):
14923 * macfns.c (Fx_create_frame):
14924 Don't set the obsolete `window-system' frame-param.
14925
14926 * frame.h (Qwindow_system): Remove.
14927 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
14928 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
14929
149302007-10-24 Richard Stallman <rms@gnu.org>
14931
14932 * frame.c (x_figure_window_size): For fullscreen case,
14933 set USPosition | PPosition without clobbering rest of window_prompting.
14934
14935 * keyboard.c (Fcurrent_idle_time): Doc fix.
14936
14937 * print.c (Fwith_output_to_temp_buffer): Doc fix.
14938
149392007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
14940
14941 * process.c (unwind_request_sigio): Only define if __ultrix__.
14942
14943 * callproc.c (child_setup): Remove spurious *.
14944
14945 * lisp.h (Fget_text_property): Declare.
14946 (have_menus_p): Declare it here rather than in sys-dep header files.
14947 * macterm.h (have_menus_p):
14948 * msdos.h (have_menus_p):
14949 * xterm.h (have_menus_p): Remove.
14950
14951 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
14952 (Fmake_variable_frame_local): Just check the variable's const-ness
14953 rather than checking nil or t.
14954
149552007-10-22 Jason Rumney <jasonr@gnu.org>
14956
14957 * w32fns.c: Include math.h.
14958 (w32_abort): Declaration moved to nt/config.nt.
14959
14960 * s/ms-w32.h (HAVE_STDLIB_H): Define.
14961 (abort): Redefinition moved to nt/config.nt.
14962
14963 * m/windowsnt.h: Remove.
14964
149652007-10-22 Juanma Barranquero <lekktu@gmail.com>
14966
14967 * emacs.c (Fdump_emacs): Fix typo in message.
14968 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
14969 <installation-directory>: Reflow docstring.
14970
149712007-10-22 Juri Linkov <juri@jurta.org>
14972
14973 * minibuf.c: Allow minibuffer default to be a list of default values.
14974 With empty input use the first element of this list as returned default.
14975 (string_to_object)
14976 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
14977 (read_minibuf): If defalt is cons, set histstring to its car.
14978 (Fread_string): If default_value is cons, set val to its car.
14979 (Fread_buffer): If def is cons, use its car.
14980 (Fcompleting_read): If defalt is cons, set val to its car.
14981
149822007-10-21 Michael Albinus <michael.albinus@gmx.de>
14983
14984 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
14985
149862007-10-20 Juanma Barranquero <lekktu@gmail.com>
14987
14988 * doc.c (Fdocumentation): Check for advice in all cases.
14989
149902007-10-19 Chong Yidong <cyd@stupidchicken.com>
14991
14992 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
14993
149942007-10-19 Richard Stallman <rms@gnu.org>
14995
14996 * doc.c (Fdocumentation): Check for and handle an advised function.
14997
149982007-10-19 Juanma Barranquero <lekktu@gmail.com>
14999
15000 * process.c (Fset_process_filter): Doc fix.
15001
150022007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
15003
15004 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
15005 which caused key-translation-map to applied repeatedly (thus breaking
15006 double-mode).
15007
150082007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15009
15010 * xselect.c (x_own_selection, x_handle_selection_clear)
15011 (x_clear_frame_selections):
15012 * w32menu.c (list_of_panes, list_of_items):
15013 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
15014 * textprop.c (validate_plist, interval_has_all_properties)
15015 (interval_has_some_properties, interval_has_some_properties_list)
15016 (add_properties, text_property_list):
15017 * process.c (Fget_buffer_process, list_processes_1, status_notify):
15018 * minibuf.c (Fassoc_string):
15019 * macselect.c (x_own_selection, x_clear_frame_selections)
15020 (Fx_disown_selection_internal):
15021 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
15022 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
15023
150242007-10-17 Chong Yidong <cyd@stupidchicken.com>
15025
15026 * process.c: Link to libs for calling res_init() if available.
15027 (Fmake_network_process): Call res_init() before getaddrinfo or
15028 gethostbyname, if possible.
15029
150302007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
15031
15032 * lread.c (read1): Set pvectype for char_tables.
15033
15034 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
15035 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
15036 Add type checks.
15037 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
15038
15039 * alloc.c (free_misc): Use XMISCTYPE.
15040 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
15041
150422007-10-17 Glenn Morris <rgm@gnu.org>
15043
15044 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
15045 (syms_of_minibuf): Add Qcompletion_ignore_case.
15046 * dired.c (Qcompletion_ignore_case): Change to external.
15047 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
15048 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
15049 (Fread_file_name): Use it rather than intern'ing.
15050
15051 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
15052 (Fread_coding_system): Ignore case of user input.
15053
150542007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15055
15056 * xdisp.c (handle_display_prop): Ignore display specs after
15057 replacing one when string text is being replaced.
15058 (handle_single_display_spec): Pretend as if characters with display
15059 property haven't been consumed only when buffer text is being replaced.
15060
150612007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
15062
15063 * xfns.c (Fx_create_frame, Fx_display_list):
15064 * window.c (window_fixed_size_p, enlarge_window)
15065 (shrink_window_lowest_first):
15066 * macterm.c (init_font_name_table):
15067 * macfns.c (Fx_create_frame, Fx_display_list):
15068 * lread.c (close_load_descs):
15069 * keyboard.c (read_char_x_menu_prompt):
15070 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
15071 * coding.c (code_convert_region_unwind): Test the type of an object
15072 rather than just !NILP before extracting data from it.
15073
15074 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
15075
15076 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
15077 (XMISCANY): New macro.
15078 (XMISCTYPE): Use it.
15079 (struct Lisp_Misc_Any): New type.
15080 (union Lisp_Misc): Use it.
15081 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
15082 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
15083 (find_symbol_value, set_internal, default_value, Fset_default)
15084 (Fmake_variable_buffer_local, Fmake_local_variable)
15085 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
15086 (Flocal_variable_if_set_p, Fvariable_binding_locus):
15087 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
15088 * alloc.c (allocate_buffer): Set the size and tag.
15089 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
15090 Use XMISCANY.
15091 (die): Follow the GNU convention for error messages.
15092 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
15093 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
15094 tag any more.
15095 (set_buffer_internal_1):
15096 * frame.c (store_frame_param):
15097 * eval.c (specbind):
15098 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
15099
15100 * doc.c (Fsnarf_documentation): Simplify.
15101
151022007-10-14 Juanma Barranquero <lekktu@gmail.com>
15103
15104 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
15105 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
15106
151072007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
15108
15109 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
15110
151112007-10-14 Juanma Barranquero <lekktu@gmail.com>
15112
15113 * eval.c (do_autoload): Don't save autoloads.
15114
15115 * data.c (Ffset): Save autoload of the function being set.
15116
151172007-10-07 John Paul Wallington <jpw@pobox.com>
15118
15119 * xfns.c (x_create_tip_frame): Set the `display-type' frame
15120 parameter before setting up faces.
15121
151222007-10-13 Eli Zaretskii <eliz@gnu.org>
15123
15124 * ccl.c (Fregister_code_conversion_map):
15125 * keyboard.c (append_tool_bar_item): Reformat last change.
15126
15127 * lisp.h (eabs): Rename from `abs'. All callers changed.
15128
151292007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
15130
15131 * buffer.c (add_overlay_mod_hooklist):
15132 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
15133 * fontset.c (make_fontset):
15134 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
15135 (append_tool_bar_item):
15136 * macmenu.c (grow_menu_items):
15137 * w32menu.c (grow_menu_items):
15138 * xmenu.c (grow_menu_items): Use larger_vector.
15139
151402007-10-13 Eli Zaretskii <eliz@gnu.org>
15141
15142 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
15143 selected frame'' on MSDOS).
15144
151452007-10-12 Martin Rudalics <rudalics@gmx.at>
15146
15147 * frame.c (Qexplicit_name): New variable.
15148 (x_report_frame_params): Report it in parameter alist.
15149 (syms_of_frame): Intern and staticpro it.
15150
151512007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
15152
15153 * macfns.c (x_create_tip_frame): Set terminal for frame.
15154
151552007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
15156
15157 * frame.c (Qenvironment): Remove.
15158 (syms_of_frame) <Qenvironment>: Don't initialize.
15159 (Fdelete_frame): Don't treat the `environment' param specially.
15160 * frame.h (Qenvironment): Don't declare.
15161 * callproc.c (set_initial_environment): Don't set unused frame param.
15162
15163 * frame.c (Fframe_with_environment): Remove.
15164 (syms_of_frame) <Sframe_with_environment>: Don't declare.
15165
15166 * lisp.h (Fframe_with_environment): Don't declare.
15167
151682007-10-10 Juanma Barranquero <lekktu@gmail.com>
15169
15170 * indent.c (indent_tabs_mode, last_known_column)
15171 (last_known_column_modified): Make static.
15172 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
15173
151742007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
15175
15176 * puresize.h (BASE_PURESIZE): Increase to 1170000.
15177
151782007-10-09 Jason Rumney <jasonr@gnu.org>
15179
15180 * w32term.c (x_set_window_size): Disable code that attempts to tell
15181 Lisp code about a size change before it actually happens.
15182
151832007-10-09 Richard Stallman <rms@gnu.org>
15184
15185 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
15186 return HANDLED_RETURN.
15187
151882007-10-08 Martin Rudalics <rudalics@gmx.at>
15189
15190 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
15191 when there's an unread command event.
15192
15193 * frame.c (focus_follows_mouse): Move here from frame.el to allow
15194 window autoselection act appropriately when leaving selected frame.
15195 (syms_of_frame): Initialize focus_follows_mouse.
15196 * frame.h (focus_follows_mouse): Extern it.
15197 * macterm.c (XTread_socket): When focus_follows_mouse is nil
15198 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
15199 * msdos.c (dos_rawgetc): Likewise.
15200 * w32term.c (w32_read_socket): Likewise.
15201 * xterm.c (handle_one_xevent): Likewise.
15202 * xdisp.c (syms_of_xdisp): In doc-string of
15203 mouse-autoselect-window mention focus-follows-mouse.
15204
152052007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15206
15207 * macterm.c (mac_load_query_font): Fix missing return value.
15208 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
15209 Add BLOCK_INPUT.
15210
152112007-10-08 Richard Stallman <rms@gnu.org>
15212
15213 * xdisp.c (get_window_cursor_type): Implement documented behavior
15214 for cursor-in-non-selected-windows = t.
15215
152162007-10-08 Jason Rumney <jasonr@gnu.org>
15217
15218 * w32.c (w32_get_resource): Always close registry keys.
15219
152202007-10-08 Jason Rumney <jasonr@gnu.org>
15221
15222 * makefile.w32-in (LIBS): Add COMCTL32.
15223
15224 * w32fns.c (globals_of_w32fns): Init common controls.
15225
152262007-10-08 Richard Stallman <rms@gnu.org>
15227
15228 * image.c (our_memory_buffer): Rename from omfib_buffer.
15229
152302007-10-08 Richard Stallman <rms@gnu.org>
15231
15232 * buffer.c (Foverlays_at): Doc fix.
15233
152342007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
15235
15236 * fns.c (Fplist_put): Preserve uneven tail data.
15237
152382007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
15239
15240 * termhooks.h (enum event_kind): Remove trailing comma.
15241
15242 * frame.h (enum): Remove trailing comma.
15243
152442007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
15245
15246 * w32proc.c (delete_child): Don't terminate threads of zombies.
15247
152482007-10-08 Martin Rudalics <rudalics@gmx.at>
15249
15250 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
15251
15252 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
15253 last-repeatable-command.
15254 (init_kboard): Initialize Vlast_repeatable_command.
15255 (command_loop_1): Set it to real_this_command unless that was
15256 bound to an input event.
15257 (mark_kboards): Mark it.
15258
152592007-10-08 Richard Stallman <rms@gnu.org>
15260
15261 * eval.c (condition-case): Doc fix.
15262
152632007-10-08 Masatake YAMATO <jet@gyve.org>
15264
15265 * xfaces.c (tty_supports_face_attributes_p): Fix code
15266 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
15267 was copied and not edited.
15268
152692007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
15270
15271 Add new `input-decode-map' keymap and use it for terminal
15272 escape sequences.
15273 * keyboard.h (struct kboard): Add Vinput_decode_map.
15274 Remove Vlocal_key_translation_map.
15275 * keyboard.c (read_key_sequence): Add support for input-decode-map.
15276 (init_kboard): Init input-decode-map.
15277 Replace local-key-translation-map back with key-translation-map.
15278 (syms_of_keyboard): Declare input-decode-map.
15279 Remove local-key-translation-map. Update docstrings.
15280 (mark_kboards): Mark Vinput_decode_map.
15281 Don't mark Vlocal_key_translation_map.
15282 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
15283 Replace local-key-translation-map back with key-translation-map.
15284 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
15285 Bind in input-decode-map rather than function-key-map.
15286
15287 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
15288 This was made redundant by the previous introduction of XSETPVECTYPE.
15289
152902007-10-09 Richard Stallman <rms@gnu.org>
15291
15292 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
15293
152942007-09-29 Richard Stallman <rms@gnu.org>
15295
15296 * eval.c (internal_condition_case_2, internal_condition_case_1)
15297 (internal_condition_case): Reenable abort if x_catching_errors ()
15298 to see if that really happens and why.
15299
153002007-10-06 Andreas Schwab <schwab@suse.de>
15301
15302 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
15303
153042007-10-04 Juanma Barranquero <lekktu@gmail.com>
15305
15306 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
15307
153082007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
15309
15310 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
15311
153122007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
15313
15314 * window.h (struct window):
15315 * window.c (struct save_window_data, struct saved_window):
15316 * termhooks.h (struct terminal):
15317 * process.h (struct Lisp_Process):
15318 * frame.h (struct frame):
15319 * buffer.h (struct buffer):
15320 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
15321 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
15322 The size field of (pseudo)vectors is now unsigned.
15323 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
15324
15325 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
15326 Turn `count' into an integer.
15327
15328 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
15329 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
15330 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
15331 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
15332 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
15333
15334 * alloc.c (allocate_pseudovector): New fun.
15335 (ALLOCATE_PSEUDOVECTOR): New macro.
15336 (allocate_window, allocate_terminal, allocate_frame)
15337 (allocate_process): Use it.
15338 (mark_vectorlike): New function.
15339 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
15340 (mark_terminals): Use it.
15341 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
15342 (Fmake_byte_code): Use XSETPVECTYPE.
15343
15344 * frame.c (Fframe_parameters): Minor simplification.
15345
15346 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
15347
15348 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
15349
15350 * buffer.c (Fget_buffer_create, init_buffer_once):
15351 * lread.c (defsubr):
15352 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
15353
15354 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
15355 defined differently in the m/*.h files.
15356 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
15357 (XSETPVECTYPE): New macro.
15358 (XSETPSEUDOVECTOR): Use it.
15359
15360 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
15361 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
15362
15363 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
15364 * lread.c (defvar_per_buffer):
15365 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
15366
15367 * window.c (candidate_window_p): Only consider as visible frames that
15368 are on the same terminal.
15369
15370 * m/ibms390x.h (MARKBIT): Remove unused macro.
15371
153722007-10-01 Juanma Barranquero <lekktu@gmail.com>
15373
15374 * lread.c (Fload): Fix typo in docstring.
15375
153762007-10-01 Michaël Cadilhac <michael@cadilhac.name>
15377
15378 * floatfns.c (Fexpt): Manually check for overflows, so that a power
15379 of a non-zero value can't yield zero.
15380
153812007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
15382
15383 * term.c (term_clear_mouse_face, term_mouse_highlight)
15384 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
15385
15386 * print.c (safe_debug_print): Use XHASH.
15387
15388 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
15389 Lisp elements such as tags.
15390 (XHASH): New macro.
15391 (EQ): Use it.
15392 (SREF, SSET, STRING_COPYIN): Use SDATA.
15393 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
15394
15395 * alloc.c (mark_terminal): Remove left-over declaration.
15396 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
15397 (allocate_vectorlike): Remove type argument. Adjust callers.
15398 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
15399 Only handle the one remaining MEM_TYPE_VECTORLIKE.
15400
15401 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
15402 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
15403 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
15404 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
15405 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
15406 Use them.
15407
15408 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
15409 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
15410 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
15411
154122007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
15413
15414 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
15415 loaded by default.
15416
154172007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
15418
15419 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
15420 on this tty.
15421 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
15422
15423 * term.c (mouse_face_window): Rename from Qmouse_face_window.
15424 Update all users.
15425 (handle_one_term_event): Use Gpm_DrawPointer.
15426 (Fgpm_mouse_start): Rename from Fterm_open_connection.
15427 Signal errors instead of returning nil. Always return nil.
15428 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
15429 Make it a noop if gpm-mouse was not activated.
15430 (syms_of_term): Update names.
15431
154322007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
15433
15434 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
15435 (init_sys_modes): Check that gpm_tty is the current tty.
15436
15437 * alloc.c (allocate_terminal): Set the vector size to only count the
15438 lisp fields. Initialize those to nil.
15439 (mark_object): Don't treat terminals specially.
15440 (mark_terminal): Remove.
15441 (mark_terminals): Use mark_object instead.
15442
15443 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
15444 the GC to the beginning.
15445
15446 * indent.h:
15447 * indent.c: Use EMACS_INT for ints coming from Elisp data.
15448
15449 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
15450
154512007-09-25 Jason Rumney <jasonr@gnu.org>
15452
15453 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
15454
15455 * w32console.c (create_w32cons_output): Remove.
15456
15457 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
15458
15459 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
15460 (reset_sys_modes): Use reset_terminal_modes_hook.
15461
154622007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
15463
15464 * eval.c (do_autoload): Don't output any message.
15465
154662007-09-24 Juri Linkov <juri@jurta.org>
15467
15468 * emacs.c (standard_args): Change priority of "--no-splash"
15469 from 40 to 3. Add "--no-desktop" with the same priority.
15470
154712007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
15472
15473 * alloc.c (gc_sweep): Check cons cell mark bits word by word
15474 and optimize the case where they are all 1.
15475
154762007-09-23 Johannes Weiner <hannes@saeurebad.de>
15477
15478 * lisp.h (abs): Define if not defined.
15479 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
15480 Don't define `abs', since it's defined in lisp.h.
15481
154822007-09-22 Eli Zaretskii <eliz@gnu.org>
15483
15484 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
15485 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
15486 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
15487 (init_tty): Use DEV_TTY instead of "/dev/tty".
15488 [WINDOWSNT]: No need to protect from NAME arg being null.
15489
154902007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
15491
15492 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
15493 up the tty state.
15494
154952007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15496
15497 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
15498 (gpm_tty): Change its type.
15499 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
15500 (gpm_tty): Change its type and initialize it.
15501 (Fterm_open_connection): Check the frame is indeed a tty.
15502 Use the new gpm_tty.
15503 (Fterm_close_connection): Use the new gpm_tty.
15504 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
15505 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
15506
155072007-09-21 Juanma Barranquero <lekktu@gmail.com>
15508
15509 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
15510 underline_color, to draw strike-through.
15511
155122007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
15513
15514 * lisp.h (allocate_terminal): Declare.
15515
15516 * window.c (candidate_window_p): Consider frames that are being placed
15517 by the user as somewhere between visible and iconified.
15518 (window_loop): Prefer windows on the current frame.
15519 (Fselect_window): Move the use of select-frame to the beginning so we
15520 can just delegate all the work (it'll call us back anyway).
15521
15522 * frame.c (Qdisplay_environment_variable):
15523 * frame.h (Qdisplay_environment_variable): Delete.
15524
15525 * .gdbinit (xbacktrace): Print the arg's address rather than the value
15526 of the first arg, since that value may be a union.
15527
15528 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
15529 parameter rather than Qdisplay_environment_variable. If all else
15530 fails, look for DISPLAY in initial-environment.
15531
155322007-09-21 Glenn Morris <rgm@gnu.org>
15533
15534 * Makefile.in (emacstool): Remove target.
15535 (lisp, shortlisp): Remove termdev.elc.
15536
155372007-09-21 Markus Triska <markus.triska@gmx.at>
15538
15539 * xterm.c (x_delete_display): Compile session management conditionally.
15540
155412007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
15542
15543 * callproc.c (getenv_internal_1): New function.
15544 (getenv_internal): Use it.
15545 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
15546
15547 * terminal.c (get_terminal): Don't accept ints to represent terminals.
15548 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
15549 (Fset_terminal_parameter): Work with dead terminals as well.
15550 (Fmodify_terminal_parameters): Remove.
15551
15552 * terminal.c (get_terminal): Handle terminals.
15553 Make sure the terminal returned is live.
15554 (create_terminal): Use allocate_terminal.
15555 (mark_terminals): Move to alloc.c.
15556 (delete_terminal): Use terminal->name as liveness status.
15557 NULL out fields after freeing their contents.
15558 Don't deallocate the object.
15559 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
15560 rather than an int.
15561 (Fterminal_live_p): Accept non-integer arguments.
15562 (Fterminal_list): Return terminal objects rather than an ints.
15563
15564 * alloc.c (enum mem_type): New member for `terminal' objects.
15565 (allocate_terminal): New function.
15566 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
15567 Handle terminals.
15568 (mark_terminal): New fun.
15569 (mark_terminals): Move from terminal.c.
15570
15571 * term.c (get_tty_terminal): Don't treat output_initial specially.
15572 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
15573 (delete_tty): Use terminal->name as liveness status.
15574
15575 * termhooks.h (struct terminal): Make it into a pseudovector.
15576 Remove `deleted' replaced by checking `name's nullness.
15577
15578 * print.c (print_object): Handle terminals.
15579
15580 * lisp.h (enum pvec_type): New `terminal' pseudovector.
15581 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
15582
15583 * frame.c (make_terminal_frame):
15584 * keyboard.c (tty_read_avail_input):
15585 * w32term.c (x_delete_terminal):
15586 * xfns.c (Fx_create_frame, x_create_tip_frame):
15587 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
15588
155892007-09-20 Glenn Morris <rgm@gnu.org>
15590
15591 * process.c (Fmake_network_process): Doc fix.
15592
155932007-09-19 Jason Rumney <jasonr@gnu.org>
15594
15595 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
15596
155972007-09-19 Michaël Cadilhac <michael@cadilhac.name>
15598
15599 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
15600 Fix a C warning regarding variable constness.
15601
15602 * xterm.c (handle_one_xevent): Fix a C warning.
15603
156042007-09-18 Jason Rumney <jasonr@gnu.org>
15605
15606 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
15607
156082007-09-17 Jan Djärv <jan.h.d@swipnet.se>
15609
15610 * gtkutil.c (gdpy_def): New variable.
15611 (xg_initialize): Initialize gdpy_def.
15612 (xg_display_close): If no other display exists, set gdpy_def to a
15613 new connection.
15614
156152007-09-16 Jan Djärv <jan.h.d@swipnet.se>
15616
15617 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
15618 when we have no file name for the icon.
15619 (xg_tool_bar_expose_callback): Remove.
15620 (xg_create_tool_bar): Don't connect expose signal to
15621 xg_tool_bar_expose_callback.
15622 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
15623
156242007-09-16 Andreas Schwab <schwab@suse.de>
15625
15626 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
15627 values instead of zapping them.
15628
156292007-09-14 Glenn Morris <rgm@gnu.org>
15630
15631 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
15632 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
15633 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
15634 scope and rename to omfib_buffer for clarity.
15635 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
15636
156372007-09-14 Kenichi Handa <handa@m17n.org>
15638
15639 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
15640
156412007-09-13 Jason Rumney <jasonr@gnu.org>
15642
15643 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
15644
15645 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
15646
15647 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
15648 (mac_term_init): Call here instead, passing rif.
15649
156502007-09-13 Glenn Morris <rgm@gnu.org>
15651
15652 * s/hpux.h: No longer define `static' as nothing.
15653
156542007-09-13 Johan Bockgård <bojohan@gnu.org>
15655
15656 * callint.c (Fcall_interactively): Remove unused var `fun'.
15657
156582007-09-12 Romain Francoise <romain@orebokech.com>
15659
15660 * window.c (prefer_window_split_horizontally, display_buffer):
15661 Revert 2007-09-08 change.
15662
156632007-09-12 Glenn Morris <rgm@gnu.org>
15664
15665 * alloca.c: Remove file.
15666 * Makefile.in (alloca): Do not undef.
15667 (allocaobj, alloca.o): Remove.
15668 (otherobj): Remove allocaobj.
15669 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
15670 * regex.c (C_ALLOCA): Remove all references and code that was only
15671 used when this was defined.
15672 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
15673 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
15674 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
15675
15676 * Makefile.in (SOURCES, unlock, relock): Delete.
15677
15678 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
15679 (menu_grab_callback): All uses changed.
15680
15681 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
15682 (x_reply_selection_request): All uses changed.
15683
156842007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
15685
15686 * lread.c (load_warn_old_style_backquotes): Change message to look
15687 better when it appears in the middle of byte-compiler messages.
15688
156892007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
15690
15691 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
15692
15693 * xterm.c (x_create_terminal): Add comment.
15694
15695 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
15696
156972007-09-10 Richard Stallman <rms@gnu.org>
15698
15699 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
15700
157012007-09-10 Michaël Cadilhac <michael@cadilhac.name>
15702
15703 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
15704 (DEFUN): Document `intspec', use it instead of `prompt'.
15705
15706 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
15707
15708 * data.c (Finteractive_form): If the interactive specification starts
15709 with a `(', use it as a Lisp form.
15710
15711 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
15712 name and file modes.
15713
15714 * callint.c (Fcall_interactively): Comment fixes.
15715
157162007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
15717
15718 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
15719 and compiled functions.
15720
157212007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
15722
15723 * window.c (prefer_window_split_horizontally): New variable.
15724 (display_buffer): Consider splitting window horizontally depending
15725 on prefer_window_split_horizontally.
15726
157272007-09-08 Eli Zaretskii <eliz@gnu.org>
15728
15729 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
15730
157312007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15732
15733 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
15734
15735 * frame.c (x_set_frame_parameters): Check number is positive before
15736 using XFASTINT.
15737
15738 * window.c (freeze_window_start): Don't presume selected_window holds
15739 a window object.
15740 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
15741
157422007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
15743
15744 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
15745
157462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
15747
15748 * window.c (Vsplit_window_preferred_function): New var.
15749 (Fdisplay_buffer): Use it.
15750 (syms_of_window): Export, and initialize it.
15751
157522007-09-06 Pixel <pixel@mandriva.com> (tiny change)
15753
15754 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
15755
157562007-09-06 Glenn Morris <rgm@gnu.org>
15757
15758 * gtkutil.c (menu_grab_callback) <cnt>:
15759 * xselect.c (x_reply_selection_request) <cnt>: Move static
15760 variable to file scope.
15761
157622007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
15763
15764 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
15765 consistent values of selected_frame and selected_window.
15766
157672007-09-04 Jason Rumney <jasonr@gnu.org>
15768
15769 * w32console.c (initialize_w32_display): Zero unused hooks.
15770
157712007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15772
15773 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
15774 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
15775
157762007-09-04 Jason Rumney <jasonr@gnu.org>
15777
15778 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
15779 in w32console.c. Set up input. Remove XXX comments that have been
15780 confirmed as correct.
15781
15782 * s/ms-w32.h (MULTI_KBOARD): Define.
15783
15784 * w32console.c (one_and_only_w32cons): Remove.
15785 (initialize_w32_display): Take terminal argument.
15786
15787 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
15788 initialize_w32_display.
15789 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
15790
15791 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
15792
15793 * keyboard.c (discard_mouse_events): Discard it.
15794 (make_lispy_event): Translate it to a lisp event.
15795 (lispy_wheel_names): Add wheel-left and right events.
15796 (syms_of_keyboard): Enlarge wheel_syms.
15797
15798 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
15799 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
15800
15801 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
15802
15803 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
15804 from WM_MOUSEHWHEEL.
15805 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
15806
15807 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
15808 terminal.
15809
15810 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
15811 keyboard for the terminal.
15812
158132007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
15814
15815 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
15816 (Vresume_tty_hook): Rename from Vresume_tty_functions.
15817 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
15818 and resume-tty-function to resume-tty-hook.
15819 (Fsuspend_tty, Fresume_tty): Use new names.
15820
158212007-09-02 Jan Djärv <jan.h.d@swipnet.se>
15822
15823 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
15824 if it starts with "n:".
15825
158262007-08-31 Jan Djärv <jan.h.d@swipnet.se>
15827
15828 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
15829
158302007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
15831
15832 * frame.h:
15833 * frame.c (Qterm_environment_variable): Remove.
15834 (syms_of_frame): Don't init and staticpro it.
15835
15836 * callproc.c (getenv_internal): Remove special case for $TERM.
15837
15838 * callproc.c (Vinitial_environment): New variable.
15839 (set_initial_environment): Initialize it.
15840 (syms_of_callproc): Declare it.
15841 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
15842 TERM under which a process runs is never related to the TERM in which
15843 Emacs is running.
15844
158452007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15846
15847 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
15848 * s/darwin.h: ... do it here.
15849
158502007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
15851
15852 * lisp.h (set_initial_environment): Rename from set_global_environment.
15853
15854 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
15855 removed by mistake on the multi-tty branch.
15856
15857 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
15858 (Fmodify_frame_parameters): Return a value.
15859
15860 * image.c (png_load): Comment-out var only used in commented-out code.
15861
15862 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
15863 before passing it to mark_object.
15864
15865 * xfaces.c (internal_resolve_face_name): Return a value.
15866 (internal_resolve_face_name, resolve_face_name_error): Comment out.
15867
15868 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
15869 (x_icon): Comment-out var only used in commented-out code.
15870
158712007-08-29 Romain Francoise <romain@orebokech.com>
15872
15873 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
15874 QUIT hasn't been provided.
15875
158762007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
15877
15878 * callproc.c (child_setup, getenv_internal): Use the
15879 display-environment-variable and term-environment-variable frame params.
15880 (set_initial_environment): Initialise Vprocess_environment.
15881
15882 * config.in: Disable multi-keyboard support on a mac.
15883
15884 * frame.c (Qterm_environment_variable)
15885 (Qdisplay_environment_variable): New variables.
15886 (syms_of_frame): Intern and staticpro them.
15887 (Fmake_terminal_frame): Disable output method test.
15888
15889 * frame.h: Declare them here.
15890
15891 * macfns.c (x_set_mouse_color): Get rif from the frame.
15892 (x_set_tool_bar_lines): Don't use updating_frame.
15893 (mac_window): Add 2 new parameters for consistency with other systems.
15894 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
15895 frame parameters following what is done in X11 and w32. Don't use
15896 FRAME_MAC_DISPLAY_INFO.
15897 (Fx_open_connection, start_hourglass): Remove window-system check.
15898 (x_create_tip_frame): Get the keyboard from the terminal.
15899
15900 * macmenu.c: Reorder includes.
15901 (Fx_popup_menu): Use terminal specific mouse_position_hook.
15902
15903 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
15904 terminal parameter.
15905 (x_clear_frame): Add a frame parameter.
15906 (note_mouse_movement): Get rif from the frame.
15907 (mac_term_init): Initialize the terminal.
15908 (mac_initialize): Make static and move terminal initialization ...
15909 (mac_create_terminal): ... to this new function.
15910
15911 * macterm.h (struct mac_display_info): Add terminal.
15912 (mac_initialize): Delete declaration.
15913
15914 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
15915
15916 * sysdep.c: Comment out text after #endif.
15917
15918 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
15919 is defined. Better initialize ttys in windows. Use terminal
15920 specific mouse_position_hook.
15921
15922 * termhooks.h (union display_info): Add mac_display_info.
15923
15924 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
15925 Set the default minibuffer frame, window_system and the rest of the
15926 frame parameters following what is done in X11.
15927
15928 * w32term.c (w32_initialize): Make static.
15929
15930 * xselect.c (x_handle_selection_clear): Only access
15931 terminal->kboard when MULTI_KBOARD is defined.
15932
15933 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
15934 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
15935
159362007-08-29 Jason Rumney <jasonr@gnu.org>
15937
15938 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
15939 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
15940
15941 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
15942 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
15943
15944 * keyboard.c (restore_kboard_configuration): Only define when
15945 MULTI_KBOARD defined.
15946
15947 * makefile.w32-in: Update dependancies from Makefile.in.
15948 (OBJ1): Add terminal.$(O)
15949
15950 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
15951 Don't define function body.
15952 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
15953
15954 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
15955
15956 * w32.c (request_sigio, unrequest_sigio): Remove.
15957
15958 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
15959 (w32con_clear_frame, w32con_clear_end_of_line)
15960 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
15961 (w32con_delete_glyphs, w32con_set_terminal_window)
15962 (scroll_line, w32_sys_ring_bell): Add frame arg.
15963 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
15964 Add terminal arg.
15965 (PICK_FRAME): Remove.
15966 (w32con_write_glyphs): Use frame specific terminal coding.
15967 (one_and_only_w32cons): New global variable.
15968 (initialize_w32_display): Use it for storing hooks.
15969 (create_w32cons_output): New function.
15970
15971 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
15972 arg a frame.
15973
15974 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
15975 Set window_system.
15976 (x_set_tool_bar_lines): Don't use updating_frame.
15977 (Fx_create_frame): Set terminal and ref count.
15978 (Fx_open_connection): Remove window-system check.
15979
15980 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
15981
15982 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
15983 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
15984 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
15985 Add frame arg.
15986 (x_delete_terminal, w32_create_terminal): New functions.
15987 (w32_term_init): Create a terminal.
15988 (w32_initialize): Move terminal specific initialization to
15989 w32_create_terminal.
15990
15991 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
15992 (w32_clear_rect, w32_clear_area): Use background from frame.
15993 (w32_display_info): Add terminal.
15994 (w32_sys_ring_bell, x_delete_display): Declare here.
15995
15996 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
15997
15998 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
15999
160002007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
16001
16002 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
16003 Fix get_named_tty calls for the controlling tty.
16004
160052007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
16006
16007 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error.
16008
160092007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
16010
16011 * term.c (tty_insert_glyphs): Add missing first parameter.
16012
160132007-08-29 Károly Lőrentey <karoly@lorentey.hu>
16014
16015 * buffer.c (Fbuffer_list, Fbury_buffer):
16016 Take frame->buried_buffer_list into account.
16017
16018 * cm.c (current_tty): New variable, for cmputc().
16019 (cmputc): Use it.
16020 (cmcheckmagic): Add tty parameter, look up terminal streams there.
16021 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
16022 (cmgoto): Add tty parameter. Pass it on to calccost().
16023 Use emacs_tputs() instead of tputs().
16024
16025 * cm.h (emacs_tputs): New macro to set current_tty, and then call
16026 tputs().
16027 (current_tty): New variable, for cmputc().
16028 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
16029
16030 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
16031 (internal_condition_case, internal_condition_case_1)
16032 (internal_condition_case_2): Don't abort when x_catching_errors.
16033
16034 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
16035 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
16036 prevent crashes caused by bogus longjmps in read_char.
16037
16038 * keymap.h (Fset_keymap_parent): Add EXFUN.
16039
16040 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
16041 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16042 Remove redundant definition.
16043
16044 * macfns.c (x_set_mouse_color, x_make_gc):
16045 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16046
16047 * w32term.c (x_free_frame_resources):
16048 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16049 (w32_initialize): Use the accessor macros for terminal characteristics.
16050
16051 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
16052 Use the accessor macros for terminal characteristics.
16053 * msdos.c (internal_terminal_init): Use the accessor macros for
16054 terminal characteristics.
16055 (ScreenVisualBell, internal_terminal_init):
16056 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16057
16058 * termopts.h (no_redraw_on_reenter): Declare.
16059
16060 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
16061 (mark_terminals, mark_ttys): Declare.
16062 (Fgarbage_collect): Call them.
16063 (mark_object): Mark buried_buffer_list.
16064
16065 * prefix-args.c: Include stdlib.h for exit.
16066
16067 * syssignal.h: Add comment.
16068
16069 * indent.c: Include stdio.h.
16070
16071 * window.h (Vinitial_window_system): Declare.
16072 (Vwindow_system): Delete declaration.
16073
16074 * fontset.c (Finternal_char_font): Use FRAME_RIF.
16075
16076 * image.c (lookup_image): Don't initialize `c' until the xasserts
16077 have been run.
16078
16079 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
16080 FRAME_FOREGROUND_PIXEL.
16081
16082 * print.c (print_preprocess): Don't lose print_depth levels while
16083 iterating.
16084
16085 * widget.c (update_from_various_frame_slots):
16086 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16087
16088 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
16089 frames.
16090 (window_internal_height): Remove bogus make_number call.
16091 (init_window_once): Call make_terminal_frame with two zero parameters.
16092
16093 * fileio.c (Fread_file_name): Update comment.
16094
16095 * callint.c (Fcall_interactively):
16096 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
16097 Make sure it is correctly unwound.
16098
16099 * xsmfns.c (x_session_close): New function.
16100
16101 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
16102 Delete declarations.
16103
16104 * xterm.h: Remove declaration for x_fully_uncatch_errors.
16105 (x_output): Remove background_pixel and foreground_pixel fields.
16106 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
16107 (x_delete_device, x_session_close): Declare.
16108
16109 * lread.c: Include setjmp.h. Update declaration of `read_char'.
16110 (read_filtered_event): Call `read_char' with a local
16111 `wrong_kboard_jmpbuf'.
16112
16113 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
16114 Don't call single_kboard_state. Use FRAME_RIF.
16115
16116 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
16117 systems.
16118
16119 * lisp.h (set_process_environment): Rename to `set_global_environment'.
16120 (Fframe_with_environment, Fset_input_meta_mode)
16121 (Fset_quit_char): EXFUN.
16122 (x_create_device, tty_output, terminal, tty_display_info): Declare.
16123 (init_sys_modes, reset_sys_modes): Update prototypes.
16124 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
16125
16126 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
16127 Vlocal_key_translation_map, and Vkeyboard_translate_table.
16128 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
16129 Delete declarations.
16130 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
16131 (temporarily_switch_to_single_kboard, tty_read_avail_input):
16132 New declarations.
16133
16134 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
16135 already does that during init_display(). Call syms_of_keymap
16136 before syms_of_keyboard. Call `syms_of_terminal'.
16137 Call set_initial_environment, not set_process_environment.
16138 (shut_down_emacs): Call reset_all_sys_modes() instead of
16139 reset_sys_modes().
16140
16141 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
16142 (internal_resolve_face_name, resolve_face_name_error): New functions.
16143 (resolve_face_name): Protect against loops and errors thrown by Fget.
16144 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
16145 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
16146
16147 * scroll.c: Replace CURTTY() with local variables throughout the
16148 file (where applicable).
16149 (calculate_scrolling, calculate_direct_scrolling)
16150 (scrolling_1, scroll_cost): Use the accessor macros for terminal
16151 characteristics.
16152
16153 * keymap.c (Vfunction_key_map): Remove.
16154 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
16155 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
16156 (Vkey_translation_map): Remove.
16157 (syms_of_keymap): Remove DEFVAR for key-translation-map.
16158 (Fdescribe_buffer_bindings)
16159 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
16160 Update for terminal-local key-translation-map.
16161
16162 * Makefile.in (callproc.o): Update dependencies.
16163 (lisp, shortlisp): Add termdev.elc.
16164 (obj): Add terminal.o.
16165 (terminal.o): Add dependencies.
16166 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
16167 (data.o, fns.o): Add termhooks.h dependency.
16168 (SOME_MACHINE_LISP): Add dnd.elc.
16169 (minibuf.o): Fix typo.
16170 Update dependencies.
16171
16172 * data.c (do_symval_forwarding, store_symval_forwarding)
16173 (find_symbol_value): Use the selected frame's keyboard, not
16174 current_kboard.
16175
16176 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
16177 Vwindow_system.
16178
16179 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
16180 Fmenu_bar_open.
16181 (syms_of_xmenu): Update defsubr.
16182 (mouse_position_for_popup, Fx_popup_menu)
16183 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
16184 (set_frame_menubar, free_frame_menubar)
b97439ce 16185 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
16186 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
16187 an X frame.
16188
16189 * xselect.c (x_own_selection): Abort if not an X frame.
16190 (some_frame_on_display): Check if it is an X frame.
16191 (x_handle_selection_clear): Deal with MULTI_KBOARD.
16192
16193 * coding.c: Include frame.h and termhooks.h.
16194 (terminal_coding, keyboard_coding): Delete.
16195 (Fset_terminal_coding_system_internal)
16196 (Fset_keyboard_coding_system_internal)
16197 (Fkeyboard_coding_system)
16198 (Fterminal_coding_system): Add a terminal parameter.
16199 Get terminal_coding from the terminal.
16200 (init_coding_once): Don't call setup_coding_system here.
16201
16202 * dispextern.h (set_scroll_region, turn_off_insert)
16203 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
16204 (tty_clear_end_of_line, tty_setup_colors)
16205 (delete_tty, updating_frame)
16206 (produce_special_glyphs, produce_glyphs, write_glyphs)
16207 (insert_glyphs): Remove.
16208 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
16209 (tty_turn_off_highlight, get_tty_size): Add declaration.
16210 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
16211
16212 * frame.h (enum output_method): Add output_initial.
16213 (struct x_output): Delete.
16214 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
16215 Access foreground_pixel and background_pixel directly from the frame.
16216 (tty_display): Delete.
16217 (struct frame): Add buried_buffer_list, foreground_pixel,
16218 background_pixel and terminal. Delete kboard.
16219 (union output_data): Add tty.
16220 (FRAME_KBOARD): Get the kboard from the terminal.
16221 (FRAME_INITIAL_P): New macro.
16222 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
16223 (Qterm_environment_variable, Qdisplay_environment_variable)
16224 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
16225 New declarations.
16226
16227 * termchar.h (tty_output, tty_display_info): New structures.
16228 (tty_list): Declare.
16229 (FRAME_TTY, CURTTY): New macros.
16230 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
16231 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
16232 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
16233 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
16234
16235 * callproc.c: Include frame.h and termhooks.h, for terminal
16236 parameters.
16237 (add_env): New function.
16238 (child_setup): Use it.
16239 (child_setup, getenv_internal): Handle the new Vprocess_environment.
16240 (getenv_internal): Fix get_terminal_param call.
16241 (Fgetenv_internal, egetenv): Update doc.
16242 (syms_of_callproc): Initialize Vprocess_environment to nil.
16243 Register and initialize them. Remove obsolete defvars. Update doc
16244 strings.
16245 (child_setup): Handle Vlocal_environment_variables.
16246 (getenv_internal): Add terminal parameter.
16247 Handle Vlocal_environment_variables.
16248 (Fgetenv_internal): Add terminal parameter.
16249 (child_setup, getenv_internal, Fgetenv_internal): Store the local
16250 environment in a frame (not terminal) parameter. Update doc strings.
16251 (set_initial_environment): Rename from set_global_environment.
16252 Store Emacs environment in initial frame parameter.
16253
16254 * xdisp.c (redisplay_internal): Update references to
16255 `previous_terminal_frame'.
16256 (display_mode_line, Fformat_mode_line): Replace calls to
16257 `push_frame_kboard' with `push_kboard'.
16258 (get_glyph_string_clip_rects): Add extra parentheses and
16259 braces to prevent compiler warnings.
16260 (calc_pixel_width_or_height): Add xassert to check that the
16261 frame is alive. Don't call `lookup_image' on a termcap frame.
16262 (message2_nolog, message3_nolog, redisplay_internal)
16263 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
16264 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
16265 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
16266 (Fx_display_pixel_width, Fx_display_pixel_height)
16267 (Fx_display_planes, Fx_display_color_cells)
16268 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
16269 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
16270 (Fx_display_backing_store, Fx_display_visual_class)
16271 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
16272 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
16273
16274 * xfns.c (x_set_foreground_color x_set_background_color)
16275 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
16276 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16277 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
16278 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
16279 terminal that is being deleted.
16280 (Fx_create_frame): Use `store_frame_param' to set `window-system'
16281 frame parameter, and make sure it overrides any user-supplied setting.
16282 (Fx_close_connection, Fx_synchronize): Unify argument names with
16283 the rest of the DEFUNs.
16284
16285 * dispnew.c (Fsend_string_to_terminal): Update call to
16286 `get_tty_terminal'.
16287 (Fredraw_frame, Fsend_string_to_terminal)
16288 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
16289 FRAME_TERMCAP_P and FRAME_TTY.
16290 (window_change_signal): Don't believe width/height values that are
16291 impossibly small.
16292 (Vinitial_window_system): Rename from Vwindow_system.
16293 (termscript, Wcm, rif): Delete.
16294
16295 * termhooks.h (struct terminal): New struct containing the
16296 previously global text display hooks and new members NAME,
16297 DELETED and PARAM_ALIST.
16298 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
16299 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
16300 (FRAME_RIF): New macros.
16301 (get_terminal_param, get_device): New declarations.
16302 (termscript): Delete declaration.
16303
16304 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
16305 (XTflash, x_free_frame_resources, x_scroll_bar_create)
16306 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
16307 FRAME_FOREGROUND_PIXEL.
16308 (x_fully_uncatch_errors): Disable definition.
16309 (x_scroll_bar_expose): Fix reference to foreground pixel.
16310 (XTread_socket): Disable loop on all X displays.
16311 (x_delete_terminal): Don't set terminal->deleted and let
16312 delete_terminal delete the frames on the terminal.
16313 (x_delete_display): Doc update to reflect changes in
16314 delete_terminal.
16315 (x_display_info) <terminal>: Move member earlier in the struct.
16316 (deleting_tty): Remove old variable.
16317 (Fsuspend_tty): Call clear_tty_hooks.
16318 (Fresume_tty, init_tty): Call set_tty_hooks.
16319 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
16320 errors on X frames.
16321 (x_catch_errors_unwind): Abort if x_error_message is NULL.
16322 (handle_one_xevent): Initialize `f' to NULL.
16323 (x_delete_terminal, x_create_terminal): New functions.
16324 (XTset_terminal_modes, XTreset_terminal_modes)
16325 (XTread_socket, x_connection_closed, x_term_init)
16326 (x_term_init, x_delete_display): Add terminal parameter.
16327 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
16328 X connections.
16329
16330 * frame.c: Include termchar.h.
16331 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
16332 (Qwindow_system, Qenvironment, Qterm_environment_variable)
16333 (Qdisplay_environment_variable): New vars.
16334 (Fframep): Deal with output_initial.
16335 (Fframe-live-p): Doc fix.
16336 (Fwindow-system): New function.
16337 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
16338 (make_terminal_frame): Don't create frames on a terminal that is
16339 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
16340 (store_frame_param): Check for found_for_frame before calling XFRAME.
16341 (Fmake_terminal_frame): Handle NULL tty names correctly.
16342 (syms_of_frame): Enhance doc string of `default-frame-alist'.
16343 (Fdelete_frame): Remove unused variable `count'. Don't allow other
16344 frames to refer to a deleted frame in their 'environment parameter.
16345 (Fframe_with_environment): New function.
16346 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
16347 (get_future_frame_param): New function.
16348 (Fmake_terminal_frame): Use it.
16349 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
16350
16351 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
16352 * sysdep.c (reset_sys_modes): Update for renames.
16353
16354 * keyboard.c (tty_read_avail_input): New function.
16355 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
16356 (syms_of_keyboard): Defsubr them.
16357 (Fset_input_meta_mode, Fset_quit_char): New functions.
16358 (Fset_input_mode): Split to above functions.
16359 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
16360 parameter. Use it in call to `read_char'.
16361 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
16362 Set wrong_kboard_jmpbuf correctly in recursive calls.
16363 Use current_kboard to access Vkeyboard_translate_table.
16364 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
16365 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
16366 Update longjmp invocations. Remember the original current_kboard,
16367 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
16368 changes it. Comment out unnecessary calls to
16369 `record_single_kboard_state' and `any_kboard_state'.
16370 Update recursive calls.
16371 (wrong_kboard_jmpbuf): Remove global variable.
16372 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
16373 Handle deleted interrupted_kboards correctly; that is a legal
16374 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
16375 and read_char calls. Abort if interrupted_kboard died in read_char.
16376 (any_kboard_state, single_kboard_state)
16377 (push_frame_kboard): Remove function.
16378 (pop_kboard): Switch out of single_kboard mode if the kboard has
16379 been deleted. Remove unused variable. Help debugging by not
16380 changing current_kboard unnecessarily. Set current_kboard to the
16381 kboard of the selected frame when the stored kboard object has
16382 been deleted before pop_kboard.
16383 (temporarily_switch_to_single_kboard): Change first parameter to a
16384 frame pointer. Throw an error when caller wants to change kboards
16385 while in single_kboard mode. Don't push_kboard if we weren't in
16386 single kboard state. Don't pop_kboard if we popped into any
16387 kboard state.
16388 (restore_kboard_configuration): Abort if pop_kboard changed the
16389 kboard in single_kboard mode. Call pop_kboard only after setting
16390 up single_kboard mode.
16391 (Frecursive_edit): Switch to single_kboard mode only in nested
16392 command loops.
16393 (cmd_error, command_loop, command_loop_1, timer_check):
16394 Comment out unnecessary call to `any_kboard_state' and
16395 `record_single_kboard_state'.
16396 (delete_kboard): Exit single_kboard mode if we have just deleted
16397 that kboard. Use FRAME_KBOARD.
16398 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
16399 `fatal_error_signal'.
16400 (record_single_kboard_state): Don't push_kboard if we weren't in
16401 single kboard state. Don't pop_kboard if we popped into any
16402 kboard state.
16403 (push_frame_kboard): Rename to push_kboard.
16404 (kbd_buffer_get_event): Use FRAME_TERMINAL.
16405 (read_avail_input): Read input from all terminals.
16406 (mark_kboards): Also mark Vkeyboard_translate_table.
16407 (kbd_buffer_store_event_hold): Simplify condition.
16408 (read_key_sequence): Reinitialize fkey and keytran at each replay.
16409 (Vkeyboard_translate_table): Move to struct kboard.
16410 (init_kboard): Initialize Vkeyboard_translate_table.
16411 (syms_of_keyboard): Use DEFVAR_KBOARD to define
16412 Vkeyboard_translate_table. Update doc strings. Update docs of
16413 local-function-key-map and function-key-map.
16414
16415 * terminal.c: New file.
16416
16417 * term.c: Include errno.h.
16418 (Vring_bell_function, device_list, initial_device)
16419 (next_device_id, ring_bell, update_begin, update_end)
16420 (set_terminal_window, cursor_to, raw_cursor_to)
16421 (clear_to_end, clear_frame, clear_end_of_line)
16422 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
16423 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
16424 (syms_of_term): Move their initialization to terminal.c.
16425 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
16426 (Ftty_display_color_cells)
16427 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
16428 (clear_tty_hooks, set_tty_hooks)
16429 (init_tty, maybe_fatal): New functions.
16430 (Ftty_type): Return nil if terminal is not on a tty instead of
16431 throwing an error. Doc update.
16432 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
16433 Doc update. Initialize new subrs and variables.
16434 (delete_tty): Use terminal->deleted.
16435 (tty_set_terminal_modes): Rename from set_terminal_modes.
16436 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
16437 (set_scroll_region): Rename to `tty_set_scroll_region'.
16438 (turn_on_insert): Rename to `tty_turn_on_insert'.
16439 (turn_off_insert): Rename to `tty_turn_off_insert'.
16440 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
16441 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
16442 (toggle_highligh): Rename to `tty_toggle_highlight'.
16443 (background_highlight): Rename to `tty_background_highlight'.
16444 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
16445 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
16446 (tty_set_scroll_region, tty_background_highlight)
16447 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
16448 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
16449 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
16450 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
16451 Add static modifier.
16452 (tty_reset_terminal_modes, tty_set_terminal_window)
16453 (tty_set_scroll_region, tty_background_highlight)
16454 (tty_highlight_if_desired, tty_cursor_to)
16455 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
16456 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
16457 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
16458 renames.
16459
164602007-08-28 Jan Djärv <jan.h.d@swipnet.se>
16461
16462 * keyboard.c: Qrtl is new.
16463 (parse_tool_bar_item): Handle :rtl keyword.
16464 (syms_of_keyboard): Intern :rtl keyword.
16465
16466 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
16467
16468 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
16469 so no Lisp code is executed.
16470 (file_for_image, find_rtl_image): New functions.
16471 (xg_get_image_for_pixmap): Use file_for_image.
16472 (update_frame_tool_bar): If direction is RTL, use RTL image if
16473 defined. Use Gtk stock images if defined.
16474
164752007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16476
16477 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
16478 for nonexistent or zero-width glyph in composition glyph.
16479
164802007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
16481
16482 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
16483
16484 * xdisp.c (Finvisible_p): New function.
16485 (syms_of_xdisp): defsubr it.
16486
164872007-08-24 Juanma Barranquero <lekktu@gmail.com>
16488
16489 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
16490 Doc fixes.
16491
164922007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16493
16494 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
16495
164962007-08-24 Martin Rudalics <rudalics@gmx.at>
16497
16498 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
16499 whether decoding has modified buffer contents.
16500
165012007-08-24 Jason Rumney <jasonr@gnu.org>
16502
16503 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
16504 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
16505 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
16506 (init_svg_functions) [HAVE_NTGUI]: New function.
16507 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
16508 (svg_load_image): Use them.
16509 (svg_load_image) [HAVE_NTGUI]: Implement background.
16510
165112007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16512
16513 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
16514 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
16515 (LIBX): Remove @RSVG_LIBS@.
16516 (LIBES): Add $(RSVG_LIBS).
16517
16518 * image.c (svg_load_image): Blend with specified background if exists.
16519 Use IMAGE_BACKGROUND. Add Mac OS Support.
16520
16521 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
16522 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
16523 Remove macros.
16524 [MAC_OSX] (socket_callback): Do nothing.
16525 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
16526 ReceiveNextEvent.
16527 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
16528 socket_callback.
16529 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
16530
165312007-08-22 Glenn Morris <rgm@gnu.org>
16532
16533 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
16534
165352007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
16536
16537 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
16538
16539 * image.c: Add support for SVG images. Some additional comments
16540 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
16541 (svg_image_p): New function to test for SVG image.
16542 (svg_load): New function to load SVG image.
16543 (svg_load_image): New function, helper for svg_load.
16544 (Qsvg): New Lisp_object.
16545 (svg_keyword_index): New enum.
16546 (svg_format): New static `image_keyword' struct.
16547 (svg_type): New static `image_type' struct.
16548 (librsvg/rsvg.h): Include it.
16549
165502007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
16551
16552 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
16553
165542007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
16555
16556 * lread.c (Qold_style_backquotes): New var.
16557 (syms_of_lread): Init and staticpro it.
16558 (load_warn_old_style_backquotes): New fun.
16559 (Fload): Use them to warn about old style backquotes.
16560 (end_of_file_error, Fload): Remove unused vars.
16561
16562 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
16563
16564 * lread.c (Vold_style_backquotes): New var.
16565 (syms_of_lread): Init and export it to Elisp.
16566 (read1): Set it when we find an old-style (back)quote.
16567
165682007-08-22 Jason Rumney <jasonr@gnu.org>
16569
16570 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
16571
165722007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
16573
16574 * puresize.h (BASE_PURESIZE): Increase to 1140000.
16575
165762007-08-19 Richard Stallman <rms@gnu.org>
16577
16578 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
16579
165802007-08-19 Andreas Schwab <schwab@suse.de>
16581
16582 * alloc.c (pure): Round PURESIZE up.
16583
165842007-08-17 Jan Djärv <jan.h.d@swipnet.se>
16585
16586 * xterm.c (handle_one_xevent): Remove check that mouse click is in
16587 active frame.
16588
165892007-08-16 Richard Stallman <rms@gnu.org>
16590
16591 * eval.c (Fcommandp): Add parens to clarify.
16592
16593 * minibuf.c (Fall_completions): Use enum for type of table.
16594
16595 * emacs.c (USAGE2): Improve text.
16596
165972007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
16598
16599 * term.c (tty_default_color_capabilities): Declare static
16600 variables in file scope, to avoid HPUX compiler problem.
16601
166022007-08-13 Jan Djärv <jan.h.d@swipnet.se>
16603
16604 * gtkutil.c (update_frame_tool_bar): Use -1 as index
16605 to gtk_toolbar_insert.
16606
166072007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
16608
16609 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
16610
16611 * insdel.c (reset_var_on_error): New fun.
16612 (signal_before_change, signal_after_change):
16613 Use it to reset (after|before)-change-functions to nil in case of error.
16614 Bind inhibit-modification-hooks to t.
16615 Don't bind (after|before)-change-functions to nil while they run.
16616
166172007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16618
16619 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
16620 filling pixmap with stippled background.
16621
166222007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16623
16624 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
16625 Don't use invisible frame as parent window for repositioning.
16626
166272007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
16628
16629 * print.c (new_backquote_output): Rename from old_backquote_output.
16630 (print): Inverse its logic (according to its name) so as to match the
16631 behavior of new_backquote_flag in lread.c.
16632
166332007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16634
16635 * gmalloc.c (posix_memalign): New function.
16636
16637 * macterm.c (frame_highlight, frame_unhighlight): Don't call
16638 ActivateControl/DeactivateControl here.
16639 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
16640 frame-notice-user-settings is non-nil.
16641 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
16642 for kEventParamFMFontStyle.
16643 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
16644 mac_pass_command_to_system and mac_pass_control_to_system here.
16645 (XTread_socket): Call ActivateControl/DeactivateControl here.
16646 (XTread_socket) [TARGET_API_MAC_CARBON]:
16647 Check mac_pass_command_to_system and mac_pass_control_to_system here.
16648 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
16649 for window repositioning.
16650
166512007-08-08 Glenn Morris <rgm@gnu.org>
16652
16653 * Replace `iff' in doc-strings and comments.
16654
166552007-08-07 Chong Yidong <cyd@stupidchicken.com>
16656
16657 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
16658
166592007-08-07 Martin Rudalics <rudalics@gmx.at>
16660
16661 * fileio.c (Finsert_file_contents): Run format-decode and
16662 after_insert_file_functions on entire buffer when REPLACE is
16663 non-nil and inhibit modification_hooks and point_motion_hooks.
16664 For consistency, run after_insert_file_functions iff something
16665 got inserted. Move signal_after_change and update_compositions
16666 after code running after_insert_file_functions. Make sure that
16667 undo_list doesn't record intermediate steps of the decoding process.
16668
166692007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16670
16671 * emacs.c (main)
16672 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
16673 Call malloc_enable_thread on interactive startup.
16674
16675 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
16676 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
16677 [USE_PTHREAD]: Conditionalize with it.
16678 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
16679 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
16680 New functions.
16681
166822007-08-06 Chong Yidong <cyd@stupidchicken.com>
16683
16684 * xdisp.c (redisplay_window): When restoring original buffer
16685 position, make sure it is still valid.
16686
16687 * image.c (png_load): Ignore png-supplied background color.
16688
166892007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16690
16691 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
16692 Use kCFAbsoluteTimeIntervalSince1970.
16693
16694 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
16695 New variable.
16696 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
16697 event loop should be quit.
16698 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
16699 Quit dialog event loop if quit_dialog_event_loop is set.
16700
16701 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
16702 (Selection): New typedef. Use instead of ScrapRef.
16703 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
16704 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
16705 (mac_clear_selection): Rename from clear_scrap.
16706 (get_flavor_type_from_symbol): New argument SEL and subsume function of
16707 scrap_has_target_type. All uses changed.
16708 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16709 (mac_selection_has_target_p): New functions.
16710 (mac_put_selection_value): Rename from put_scrap_string.
16711 (mac_get_selection_value): Rename from get_scrap_string.
16712 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
16713 (put_scrap_private_timestamp, scrap_has_target_type)
16714 (get_scrap_private_timestamp): Remove functions.
16715 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
16716 (x_own_selection, x_get_local_selection):
16717 Use mac_valid_selection_value_p.
16718 (x_own_selection): Don't use put_scrap_private_timestamp.
16719 Record OWNERSHIP-INFO into Vselection_alist instead.
16720 (x_get_local_selection): Don't check type if request is local.
16721 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
16722 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
16723
167242007-08-04 Jan Djärv <jan.h.d@swipnet.se>
16725
16726 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
16727 add comment explaining why.
16728
167292007-08-03 Richard Stallman <rms@gnu.org>
16730
16731 * fileio.c (Fvisited_file_modtime): Use make_time.
16732
167332007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
16734
16735 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
16736 build.
16737
167382007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
16739
16740 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
16741
167422007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
16743
16744 * puresize.h (BASE_PURESIZE): Increase to 1130000.
16745
167462007-07-30 Richard Stallman <rms@gnu.org>
16747
16748 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
16749
167502007-07-29 Jan Djärv <jan.h.d@swipnet.se>
16751
16752 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
16753
167542007-07-28 Nick Roberts <nickrob@snap.net.nz>
16755
16756 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
16757 remote default-directory.
16758
16759 * buffer.c (mode-line-format): Update doc string.
16760
167612007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16762
16763 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
16764 scroll bar gap.
16765 (x_scroll_bar_create): Set bar->fringe_extended_p.
16766 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
16767 on frame edge. Check fringe background extension. Don't clear
16768 extended fringe background area.
16769
16770 * w32term.h (struct scroll_bar): New member fringe_extended_p.
16771 (w32_fill_area): Enclose multiple statements with do ... while (0).
16772
16773 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
16774 Extend fringe background to scroll bar gap.
16775 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
16776 Set bar->fringe_extended_p.
16777 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16778 Put leftmost/rightmost scroll bars on frame edge. Check fringe
16779 background extension. Don't clear extended fringe background area.
16780
16781 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
16782 New member fringe_extended_p.
16783
167842007-07-25 Glenn Morris <rgm@gnu.org>
16785
16786 * Relicense all FSF files to GPLv3 or later.
16787
16788 * COPYING: Switch to GPLv3.
16789
167902007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
16791
16792 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
16793
16794 * data.c (Finteractive_form): Check for the presence of an
16795 `interactive-form' symbol property more thoroughly.
16796
16797 * data.c (Finteractive_form): Use an `interactive-form' property if
16798 present, analogous to the function-documentation property.
16799
168002007-07-24 Jason Rumney <jasonr@gnu.org>
16801
16802 * w32fns.c (x_real_positions): Get real position from OS instead of
16803 calculating it.
16804
168052007-07-23 Jason Rumney <jasonr@gnu.org>
16806
16807 * filelock.c (current_lock_owner): Allow for @ sign in username.
16808
168092007-07-22 Nick Roberts <nickrob@snap.net.nz>
16810
16811 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
16812 remote default-directory.
16813
16814 * buffer.c (mode-line-format): Describe above case in doc string.
16815
168162007-07-20 Eli Zaretskii <eliz@gnu.org>
16817
16818 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
16819 Define if not defined.
16820
168212007-07-18 Jason Rumney <jasonr@gnu.org>
16822
16823 * w32proc.c (w32_executable_type): Handle 64 bit executables.
16824
168252007-07-18 Richard Stallman <rms@gnu.org>
16826
16827 * data.c (Fsetq_default): Doc fix.
16828
16829 * eval.c (Fsetq): Doc fix.
16830
168312007-07-18 Juanma Barranquero <lekktu@gmail.com>
16832
16833 * coding.c (Ffind_operation_coding_system):
16834 * eval.c (For, Fand): Doc fixes.
16835 Reported by Johan Bockgård.
16836
168372007-07-18 Jan Djärv <jan.h.d@swipnet.se>
16838
16839 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
16840
16841 * xterm.h: Declare x_ewmh_activate_frame.
16842
16843 * xterm.c (x_ewmh_activate_frame): New function.
16844 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
16845
168462007-07-17 Martin Rudalics <rudalics@gmx.at>
16847
16848 * window.c (Fdisplay_buffer): If largest or LRU window is the
16849 only window, split it even if it is not eligible for splitting.
16850 This restores the original behavior broken by the 2007-07-15
16851 change.
16852
168532007-07-17 Glenn Morris <rgm@gnu.org>
16854
16855 * abbrev.c (abbrev_check_chars): New function.
16856 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
16857 Call abbrev_check_chars to check abbrev characters are word
16858 constituents. Doc fix.
16859
168602007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
16861
16862 * process.c (Fstart_process, Fmake_network_process)
16863 (read_process_output): Fix up last changes.
16864
168652007-07-16 Eli Zaretskii <eliz@gnu.org>
16866
16867 * makefile.w32-in (clean): Don't delete *~.
16868
168692007-07-16 Andreas Schwab <schwab@suse.de>
16870
16871 * window.c (Fdisplay_buffer): Use NILP.
16872 (Fset_window_scroll_bars): Likewise.
16873
168742007-07-15 Martin Rudalics <rudalics@gmx.at>
16875
16876 * window.c (window_min_size_2): New function.
16877 (window_min_size_1, size_window, Fdisplay_buffer)
16878 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
16879 windows without mode- or header-lines when window-min-height is
16880 too small.
16881 (size_window): Reset nodelete_p after testing it, following an
16882 earlier note by Kim F. Storm.
16883 (display_buffer): Do not set split_height_threshold to twice the
16884 value of window_min_height to avoid changing the value of a
16885 customizable variable. Rather explicitly check whether the
16886 height of the window that shall be splitted is at least as large
16887 as split_height_threshold.
16888 (Fwindow_full_width_p): New defun.
16889 (syms_of_window): Defsubr it.
16890
16891 * window.h: Add EXFUN for Fwindow_full_width_p.
16892
168932007-07-14 Jason Rumney <jasonr@gnu.org>
16894
16895 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
16896
168972007-07-14 Richard Stallman <rms@gnu.org>
16898
16899 * eval.c (maybe_call_debugger): New function.
16900 (find_handler_clause): Use maybe_call_debugger.
16901 Call it when the handler says `debug'.
16902 Eliminate DEBUGGER_VALUE_PTR.
16903 (Fsignal): Eliminate debugger_value.
16904 (Qdebug): New variable.
16905 (syms_of_eval): Initialize it.
16906
169072007-07-14 Juanma Barranquero <lekktu@gmail.com>
16908
16909 * eval.c (Fprogn):
16910 * keyboard.c (Ftrack_mouse):
16911 * print.c (Fwith_output_to_temp_buffer):
16912 * window.c (Fsave_window_excursion): Doc fix.
16913
169142007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
16915
16916 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
16917
169182007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
16919
16920 * process.h (struct Lisp_Process): Turn slots infd, outfd,
16921 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
16922 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
16923 read_output_delay, and read_output_skip from Lisp_Objects to ints.
16924 Remove unused encoding_carryover.
16925 * process.c: Adjust all functions accordingly.
16926
169272007-07-12 Richard Stallman <rms@gnu.org>
16928
16929 * term.c: Include unistd.h only if HAVE_UNISTD_H.
16930
169312007-07-11 Jason Rumney <jasonr@gnu.org>
16932
16933 * makefile.w32-in (LIBS): Include OLE32.
16934
16935 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
16936 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
16937
169382007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
16939
16940 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
16941 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
16942 from a Lisp_Object into a bare pointer.
16943 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
16944 Adjust the code correspondingly.
16945
16946 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
16947
16948 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
16949 (term_show_mouse_face): Remove unused var `j'.
16950 (handle_one_term_event): Remove unused vars `i' and `j'.
16951 Don't cast return value of ttyname since it's not necessary.
16952
169532007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
16954
16955 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
16956 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
16957
16958 * fns.c (map_char_table): Use an array of int for `indices' rather than
16959 an array of Lisp_Objects (which are only ever integers anyway).
16960 (Fmap_char_table): Update caller.
16961 * lisp.h: Update prototype.
16962 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
16963 * fontset.c (Ffontset_info):
16964 * casetab.c (set_case_table): Update callers.
16965
16966 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
16967
16968 * keymap.c (struct accessible_keymaps_data)
16969 (struct where_is_internal_data): New structures.
16970 (accessible_keymaps_1, where_is_internal_1): Use them to change
16971 interface to adhere to the one used by map_keymap.
16972 (Faccessible_keymaps, where_is_internal): Use map_keymap.
16973 (accessible_keymaps_char_table, where_is_internal_2): Remove.
16974
16975 * keymap.h (map_keymap_function_t): More informative prototype.
16976
169772007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
16978
16979 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
16980 (looking_at_1): Don't change search_regs and last_thing_searched
16981 if `inhibit-changing-match-data' is non-nil.
16982 (string_match_1, search_buffer, set_search_regs): Likewise.
16983 (syms_of_search): Add Lisp level definition for
16984 `inhibit-changing-match-data' and set it to nil.
16985 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
16986 start and end of the match, instead of using values in search_regs.
16987
169882007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
16989
16990 * minibuf.c (Fcompleting_read): New value `confirm-only'
16991 for `require-match'.
16992
169932007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
16994
16995 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
16996 part of the 2007-06-27 change to syms_of_fileio.
16997
169982007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16999
17000 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
17001 Check WINDOWP before using XWINDOW. Consolidate return statements.
17002
170032007-06-27 Richard Stallman <rms@gnu.org>
17004
17005 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
17006
170072007-06-27 Juanma Barranquero <lekktu@gmail.com>
17008
17009 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
17010
170112007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17012
17013 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
17014 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
17015 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
17016 (_free_internal, memalign): Use them.
17017 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
17018 Initialize to PTHREAD_MUTEX_INITIALIZER.
17019 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
17020 (morecore_nolock): Rename from morecore. All uses changed.
17021 Use only nolock versions of internal allocation functions.
17022 (_malloc_internal_nolock, _realloc_internal_nolock)
17023 (_free_internal_nolock): New functions created from
17024 _malloc_internal, _realloc_internal, and _free_internal.
17025 (_malloc_internal, _realloc_internal, _free_internal): Use them.
17026 Copy hook value to automatic variable before its use.
17027 (memalign): Copy hook value to automatic variable before its use.
17028
170292007-06-26 Kenichi Handa <handa@m17n.org>
17030
17031 * coding.c (Ffind_operation_coding_system): Docstring improved.
17032 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
17033
170342007-06-25 David Kastrup <dak@gnu.org>
17035
17036 * keymap.c (Fcurrent_active_maps): Add `position' argument.
17037 (Fwhere_is_internal): Adjust call to `current-active-maps' to
17038 cater for additional parameter.
17039
17040 * keymap.h: Adjust number of parameters to `current-active-maps'.
17041
17042 * doc.c (Fsubstitute_command_keys): Adjust call of
17043 `current-active-maps'.
17044
170452007-06-25 David Kastrup <dak@gnu.org>
17046
17047 * callint.c (Fcall_interactively): Make the parsing of interactive
17048 specs somewhat more readable.
17049
170502007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17051
17052 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
17053 to scroll bar gap also when bitmap fills fringe. Draw only foreground
17054 if extended background has already been filled.
17055
170562007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17057
17058 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
17059 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
17060
17061 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
17062 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
17063 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
17064 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
17065 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
17066 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
17067 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
17068 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
17069 Run timers during dialog popup.
17070 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
17071
170722007-06-21 Jason Rumney <jasonr@gnu.org>
17073
17074 * image.c (convert_mono_to_color_image): Swap fore and background.
17075
170762007-06-20 Jason Rumney <jasonr@gnu.org>
17077
17078 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
17079 (w32_free_bdf_font): Unmap memory not handle.
17080
170812007-06-20 Sam Steingold <sds@gnu.org>
17082
17083 * gmalloc.c (__morecore): Fix the declaration to comply with the
17084 definition.
17085
170862007-06-20 Juanma Barranquero <lekktu@gmail.com>
17087
17088 * w32term.c (w32_delete_display): Remove leftover declaration.
17089 (w32_define_cursor, w32_initialize): Make static.
17090
17091 * w32.c (_wsa_errlist): Fix typo in error message.
17092 (init_environment): Ignore any environment variable from the
17093 registry having a null value.
17094
170952007-06-20 Glenn Morris <rgm@gnu.org>
17096
17097 * Makefile.in (LIBGIF): Default to -lgif.
17098
170992007-06-17 Jason Rumney <jasonr@gnu.org>
17100
17101 * w32menu.c (add_menu_item): Don't use multibyte string functions on
17102 unicode strings.
17103
171042007-06-16 Juanma Barranquero <lekktu@gmail.com>
17105
17106 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
17107 Fix typo in docstring.
17108
171092007-06-16 Eli Zaretskii <eliz@gnu.org>
17110
17111 * w32menu.c (add_menu_item): Escape `&' characters in menu items
17112 and their keybindings.
17113
171142007-06-15 Chong Yidong <cyd@stupidchicken.com>
17115
17116 * composite.c (update_compositions): Fix last fix.
17117
171182007-06-14 Jason Rumney <jasonr@gnu.org>
17119
17120 * w32.c (get_process_times_fn): New function pointer.
17121 (globals_of_w32): Intialize it if present in kernel32.dll.
17122 (w32_get_internal_run_time): New function.
17123
17124 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
17125
171262007-06-14 Kenichi Handa <handa@etlken.m17n.org>
17127
17128 * composite.c (update_compositions): Check the validness of
17129 compositions.
17130
171312007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17132
17133 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
17134 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
17135
17136 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
17137 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
17138
17139 * macgui.h (USE_MAC_TOOLBAR): New define.
17140
17141 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17142 Return immediately unless popup is activated.
17143
17144 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
17145 background to scroll bar gap.
17146 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
17147 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
17148 scroll bars on frame edge. Check fringe background extension.
17149 Don't clear extended fringe background area.
17150 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
17151 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
17152 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
17153 [USE_MAC_TOOLBAR]: New macros.
17154 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
17155 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
17156 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
17157 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
17158 [USE_MAC_TOOLBAR]: New functions.
17159 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
17160 manually if previous repositioning has failed.
17161 (mac_handle_keyboard_event): Use precomputed event kind.
17162 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
17163 as tool bar item click. Handle mouse movement over tool bar items.
17164
17165 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
17166 toolbar_win_gravity.
17167 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
17168 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
17169 Add externs.
17170
17171 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
17172 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
17173
171742007-06-14 Chong Yidong <cyd@stupidchicken.com>
17175
17176 * image.c (search_image_cache): Remove unused variable.
17177
171782007-06-13 Chong Yidong <cyd@stupidchicken.com>
17179
17180 * xfns.c, xmenu.c: Link to xaw3d if available.
17181
171822007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17183
17184 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
17185 frame_foreground and frame_background.
17186
17187 * image.c (lookup_image): Save frame foreground and background colors.
17188 (search_image_cache): Check if saved and current frame colors match.
17189
171902007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
17191
17192 * regex.c (regex_compile): Remove the `regnum' counter.
17193 Use bufp->re_nsub instead. Add support for \(?N:RE\).
17194
171952007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
17196
17197 * term.c: Include intervals.h to declare Fget_text_property.
17198
171992007-06-10 Jason Rumney <jasonr@gnu.org>
17200
17201 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
17202
172032007-06-08 Juanma Barranquero <lekktu@gmail.com>
17204
17205 * callint.c (Fcall_interactively):
17206 * editfns.c (Fdelete_and_extract_region):
17207 * fileio.c (Fread_file_name):
17208 * fns.c (Fmapconcat):
17209 * keyboard.c (cmd_error_internal):
17210 * keymap.c (Fkey_description):
17211 * lread.c (openp):
17212 * minibuf.c (read_minibuf):
17213 * search.c (wordify):
17214 * sunfns.c (sel_read):
17215 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
17216 * xfns.c (x_default_scroll_bar_color_parameter):
17217 * xmenu.c (menu_help_callback):
17218 * xselect.c (Fx_get_atom_name):
17219 * xterm.c (x_term_init): Use empty_unibyte_string.
17220
172212007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
17222
17223 * alloc.c (init_strings): Initialize canonical empty strings.
17224 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
17225 canonical empty string when the requested size is 0.
17226
17227 * emacs.c (empty_unibyte_string): Rename from empty_string.
17228 (empty_multibyte_string): New canonical empty string.
17229 (syms_of_emacs): Don't initialize empty_string.
17230
17231 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
17232 string, if appropriate.
17233 (empty_unibyte_string, empty_multibyte_string): New externs.
17234 (empty_string): Remove extern.
17235
17236 * lread.c (syms_of_lread): Use empty_unibyte_string.
17237
172382007-06-07 Jason Rumney <jasonr@gnu.org>
17239
17240 * s/ms-w32.h: Don't define HAVE_TZNAME.
17241
17242 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
17243
172442007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17245
17246 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
17247
17248 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
17249 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
17250
17251 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
17252 Don't call next handler.
17253 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
17254 Remove argument. Install handler to application.
17255 (set_frame_menubar): Don't change deep_p.
17256 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
17257 FRAME_OUTER_TO_INNER_DIFF_Y.
17258 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
17259 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
17260 [HAVE_DIALOGS]: New macros.
17261 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
17262 Use them.
17263 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
17264
17265 * macselect.c [MAC_OSX] (install_service_handler): Rename from
17266 init_service_handler. All callers changed. Return OSStatus value.
17267
17268 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
17269 All callers changed so as not to call SetPortWindowPort.
17270 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
17271 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
17272 mac_draw_string_common.
17273 (mac_draw_image_string_qd): Likewise.
17274 (mac_draw_string_common): Use them. Add INLINE.
17275 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
17276 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
17277 GetGlobalMouse.
17278 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
17279 and FRAME_OUTER_TO_INNER_DIFF_Y.
17280 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
17281 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
17282 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
17283 repositioning window to mac_handle_window_event.
17284 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
17285 saving window location to mac_handle_window_event
17286 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
17287 (install_menu_target_item_handler): Remove argument in extern.
17288 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
17289 Also accept command events.
17290 (do_keystroke): New function created from XTread_socket.
17291 (init_command_handler): Remove functions.
17292 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
17293 and save window location by kEventWindowShowing and kEventWindowHiding
17294 handlers here. Don't call next handler for window state change and
17295 focus events.
17296 (mac_handle_application_event, mac_handle_keyboard_event)
17297 [TARGET_API_MAC_CARBON]: New functions.
17298 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
17299 kEventWindowShowing and kEventWindowHiding events. Move installation
17300 of mouse, font, text input and menu target item handlers to
17301 install_application_handler.
17302 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
17303 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17304 New function.
17305 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
17306 Register it.
17307 (XTread_socket) [TARGET_API_MAC_CARBON]:
17308 Consolidate SendEventToEventTarget calls.
17309 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
17310 Move application activation handler to mac_handle_application_event.
17311 Move keyboard handler to mac_handle_keyboard_event.
17312 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
17313 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
17314 init_command_handler. Call install_application_handler.
17315
17316 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
17317 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
17318
173192007-06-07 Glenn Morris <rgm@gnu.org>
17320
17321 * emacs.c (main): Use `emacs-copyright' in --version output.
17322
173232007-06-06 Chong Yidong <cyd@stupidchicken.com>
17324
17325 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
17326
173272007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17328
17329 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
17330
17331 * macgui.h: Replace WindowPtr with WindowRef.
17332
17333 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17334 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17335 Replace ControlHandle with ControlRef.
17336 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
17337
17338 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
17339 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
17340 Replace ControlHandle with ControlRef.
17341 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
17342 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
17343
17344 * macterm.h (struct scroll_bar): Rename member control_handle_low
17345 and control_handle_high to control_ref_low and control_ref_high.
17346 All uses changed.
17347 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
17348 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
17349 respectively. All uses changed.
17350 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
17351 (install_window_handler, remove_window_handler): Replace WindowPtr
17352 with WindowRef in externs.
17353
173542007-06-05 Juanma Barranquero <lekktu@gmail.com>
17355
17356 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
17357
173582007-06-03 Nick Roberts <nickrob@snap.net.nz>
17359
17360 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
17361
17362 * frame.c (Fmouse_position, Fmouse_pixel_position):
17363 Condition on HAVE_GPM too.
17364
17365 * term.c (term_mouse_highlight): Remove unused variables.
17366 (Fterm_open_connection): Set gpm_zerobased to 1.
17367 (term_mouse_movement, term_mouse_click, handle_one_term_event):
17368 Use zero based co-ordinates.
17369 (handle_one_term_event): Report a drag as mouse movement too.
17370
17371 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
17372
173732007-06-03 Chong Yidong <cyd@stupidchicken.com>
17374
17375 * image.c (search_image_cache): New function. Require background
17376 color match if background color is unspecified in the image spec.
17377 (uncache_image, lookup_image): Use it.
17378
173792007-06-01 Juanma Barranquero <lekktu@gmail.com>
17380
17381 * window.c (Fshrink_window): Reflow docstring.
17382
173832007-06-02 Chong Yidong <cyd@stupidchicken.com>
17384
17385 * Version 22.1 released.
17386
173872007-06-01 Richard Stallman <rms@gnu.org>
17388
17389 * xfns.c (x_encode_text): Add GCPRO.
17390
173912007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17392
17393 * xfns.c (x_set_name_internal): Save encoded name before
17394 x_encode_text in case string data is relocated.
17395
173962007-05-31 Richard Stallman <rms@gnu.org>
17397
17398 * buffer.c (syms_of_buffer): Doc fix.
17399
174002007-05-30 Nick Roberts <nickrob@snap.net.nz>
17401
17402 * sysdep.c (init_sys_modes): Add rather than replace with
17403 O_NONBLOCK.
17404
17405 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
17406 term_mouse_moveto.
17407
17408 * termhooks.h (term_mouse_moveto): New extern.
17409
17410 * term.c (mouse_face_window): Rename...
17411 (Qmouse_face_window): ...to this.
17412 (term_show_mouse_face, term_clear_mouse_face)
17413 (term_mouse_highlight): Use Qmouse_face_window.
17414 (term_mouse_moveto): New function.
17415 (term_mouse_position): Make it work.
17416 (syms_of_term): Uncomment assignment to mouse_position_hook.
17417 Staticpro Qmouse_face_window.
17418
174192007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17420
17421 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
17422 around current_column call.
17423
174242007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
17425
17426 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
17427 * xdisp.c (next_element_from_buffer):
17428 * window.c (delete_window):
17429 * term.c (term_mouse_highlight):
17430 * msdos.c (getdefdir):
17431 * macterm.c (mac_create_bitmap_from_bitmap_data)
17432 (init_font_name_table):
17433 * fns.c (Fsxhash):
17434 * data.c (Fmake_local_variable):
17435 * ccl.c (ccl_driver): Likewise.
17436
174372007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17438
17439 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
17440 Call mac_wakeup_from_rne on window size change.
17441
174422007-05-25 Chong Yidong <cyd@stupidchicken.com>
17443
17444 * image.c (uncache_image): Fix typo.
17445
174462007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
17447
17448 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
17449
174502007-05-22 Richard Stallman <rms@gnu.org>
17451
17452 * xterm.c (x_connection_closed): Remove NO_RETURN.
17453
174542007-05-22 Martin Rudalics <rudalics@gmx.at>
17455
17456 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
17457
174582007-05-21 Chong Yidong <cyd@stupidchicken.com>
17459
17460 * image.c (uncache_image): New function.
17461 (Fimage_refresh): New function.
17462
174632007-05-20 Jan Djärv <jan.h.d@swipnet.se>
17464
17465 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
17466
174672007-05-20 Nick Roberts <nickrob@snap.net.nz>
17468
17469 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
17470 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
17471
174722007-05-20 Nick Roberts <nickrob@snap.net.nz>
17473
17474 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
17475 conditional on [HAVE_GPM_H].
17476
174772007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
17478
17479 * syntax.c (skip_chars): Update syntax-table only after we checked that
17480 the new location is valid.
17481
174822007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17483
17484 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
17485 mac_get_window_bounds.
17486
174872007-05-20 Nick Roberts <nickrob@snap.net.nz>
17488
17489 * Makefile.in (LIBGPM): Allow it to be set from configure.
17490 If set then link Emacs with it.
17491
17492 * config.in: Regenerate.
17493
17494 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
17495 New externs.
17496
17497 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
17498 Include gpm.h.
17499 (handle_one_term_event, term_gpm): New externs.
17500
17501 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
17502 and allow it to be interrupted by SIGIO.
17503
17504 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
17505 (wait_reading_process_output): Wait on gpm_fd too.
17506 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
17507 (add_gpm_wait_descriptor_called_flag): New variable.
17508 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
17509
17510 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
17511 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
17512 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
17513 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
17514 (make_lispy_event): Add case GPM_CLICK_EVENT.
17515 (read_avail_input): Handle mouse input.
17516
17517 * term.c (write_glyphs_with_face): New function.
17518 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
17519 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
17520 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
17521 (mouse_face_face_id, term_gpm, pos_x, pos_y)
17522 (last_mouse_x, last_mouse_y): New variables.
17523 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
17524 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
17525 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
17526 (Fterm_close_connection): New functions.
17527 (term_init): Initialise mouse_face_window.
17528
175292007-05-19 Chong Yidong <cyd@stupidchicken.com>
17530
17531 * xdisp.c (redisplay_window): If first window line is a
17532 continuation line, recompute the new window start instead of
17533 recentering.
17534
175352007-05-18 Glenn Morris <rgm@gnu.org>
17536
17537 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
17538 Suggested by Alfred M. Szmidt <ams@gnu.org>.
17539
175402007-05-17 Glenn Morris <rgm@gnu.org>
17541
17542 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
17543
175442007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17545
17546 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
17547 dead key repeat and up events.
17548
175492007-05-14 Chong Yidong <cyd@stupidchicken.com>
17550
17551 * image.c (pbm_load): Check image size for monochrome pbm.
17552
175532007-05-13 Chong Yidong <cyd@stupidchicken.com>
17554
17555 * xterm.c (XTread_socket): Revert last change.
17556
175572007-05-12 Chong Yidong <cyd@stupidchicken.com>
17558
17559 * image.c (pbm_load): Correctly check image size for greyscale pbm.
17560
17561 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
17562
175632007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17564
17565 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
17566 mixup (YAILOM).
17567
175682007-05-07 Andreas Schwab <schwab@suse.de>
17569
17570 * keymap.c (Flookup_key): Fix typo in last change.
17571
175722007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
17573
17574 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
17575 mapping for unibyte strings.
17576
175772007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17578
17579 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
17580 (Fx_popup_dialog) [MAC_OSX]: Likewise.
17581
175822007-04-29 Richard Stallman <rms@gnu.org>
17583
17584 * insdel.c (replace_range): For undo, record insertion first.
17585
175862007-04-29 Andreas Schwab <schwab@suse.de>
17587
17588 * lisp.h (VECSIZE): Use OFFSETOF.
17589
175902007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17591
17592 * xdisp.c (try_window_reusing_current_matrix): Fix number of
17593 disabled lines.
17594
175952007-04-28 Richard Stallman <rms@gnu.org>
17596
17597 * lread.c (read_escape): In a string, \s is always space.
17598
175992007-04-27 Jan Djärv <jan.h.d@swipnet.se>
17600
17601 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
17602
17603 * gtkutil.c (xg_update_menubar, create_menus): Create empty
17604 submenu for menu bar items.
17605
17606See ChangeLog.10 for earlier changes.
17607
17608;; Local Variables:
17609;; coding: utf-8
17610;; add-log-time-zone-rule: t
17611;; bug-reference-url-format: "http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=%s"
17612;; End:
17613
76b6f707 17614 Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
aac0c6e3
MR
17615
17616 This file is part of GNU Emacs.
17617
17618 GNU Emacs is free software: you can redistribute it and/or modify
17619 it under the terms of the GNU General Public License as published by
17620 the Free Software Foundation, either version 3 of the License, or
17621 (at your option) any later version.
17622
17623 GNU Emacs is distributed in the hope that it will be useful,
17624 but WITHOUT ANY WARRANTY; without even the implied warranty of
17625 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17626 GNU General Public License for more details.
17627
17628 You should have received a copy of the GNU General Public License
17629 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
17630
17631;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40