aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2010-04-03 22:21:58 +0200
committerJoakim Verona2010-04-03 22:21:58 +0200
commit245e223a57ac14d168702891f6efbe0eb11b0384 (patch)
treebe6f5e3324a4ddaaf89ff0e64fbec3140e537c0a /src
parent3de25479216a2ecec509df8933047873d084f708 (diff)
parent202ff0d6ee56d743219c01870be24ccc0d14b429 (diff)
downloademacs-245e223a57ac14d168702891f6efbe0eb11b0384.tar.gz
emacs-245e223a57ac14d168702891f6efbe0eb11b0384.zip
merge from trunk
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog89
-rw-r--r--src/ChangeLog.1018
-rw-r--r--src/ChangeLog.842
-rw-r--r--src/Makefile.in6
-rw-r--r--src/bidi.c4
-rw-r--r--src/buffer.c6
-rw-r--r--src/callproc.c5
-rw-r--r--src/dispnew.c3
-rw-r--r--src/ecrt0.c71
-rw-r--r--src/emacs.c3
-rw-r--r--src/fileio.c6
-rw-r--r--src/filelock.c3
-rw-r--r--src/floatfns.c4
-rw-r--r--src/keyboard.c4
-rw-r--r--src/lread.c4
-rw-r--r--src/m/intel386.h4
-rw-r--r--src/m/vax.h4
-rw-r--r--src/process.c4
-rw-r--r--src/s/msdos.h4
-rw-r--r--src/s/netbsd.h2
-rw-r--r--src/sysdep.c6
-rw-r--r--src/unexaix.c1
-rw-r--r--src/unexec.c3
-rw-r--r--src/w32fns.c4
-rw-r--r--src/w32term.c4
-rw-r--r--src/xdisp.c14
-rw-r--r--src/xrdb.c3
-rw-r--r--src/xterm.c2
28 files changed, 125 insertions, 198 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index aea5701ec9c..6629a29ed9e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,26 +1,79 @@
12010-04-03 Eli Zaretskii <eliz@gnu.org>
2
3 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
6
7 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
8 in this function. (Bug#5703)
9
102010-04-03 Chong Yidong <cyd@stupidchicken.com>
11
12 * nsterm.h: Fix last change.
13
142010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
15
16 * m/intel386.h (NO_REMAP): Move definition ...
17 * s/msdos.h (NO_REMAP): ... here.
18
19 * m/vax.h (CRT0_DUMMIES): Remove, unused.
20
21 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
22 used on those platforms.
23
242010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
25
26 Remove extern errno declarations.
27 * xterm.c:
28 * xrdb.c:
29 * w32term.c:
30 * unexec.c:
31 * unexaix.c:
32 * sysdep.c:
33 * process.c:
34 * lread.c:
35 * keyboard.c:
36 * floatfns.c:
37 * filelock.c:
38 * fileio.c:
39 * emacs.c (main):
40 * ecrt0.c:
41 * dispnew.c:
42 * callproc.c:
43 * buffer.c: Remove errno extern declarations.
44 * s/netbsd.h (NEED_ERRNO): Remove.
45
462010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
47
48 Remove all uses of LIBX11_SYSTEM.
49 * Makefile.in (LIBX11_SYSTEM): Remove.
50 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
51 instead.
52
12010-04-01 Eli Zaretskii <eliz@gnu.org> 532010-04-01 Eli Zaretskii <eliz@gnu.org>
2 54
3 Remove support for DJGPP v1.x (bug#5813). 55 Remove support for DJGPP v1.x (bug#5813).
4 56
5 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility. 57 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
6 * s/msdos.h: 58 * s/msdos.h:
7 * unexec.c (make_hdr, copy_text_and_data): 59 * unexec.c (make_hdr, copy_text_and_data):
8 * sysdep.c (wait_for_termination, sys_subshell): 60 * sysdep.c (wait_for_termination, sys_subshell):
9 * msdos.c (dos_set_window_size, msdos_set_cursor_shape) 61 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
10 (IT_set_terminal_modes): 62 (IT_set_terminal_modes, __write, _rename, gethostname)
11 (__write, _rename, gethostname, gettimeofday, alarm, fork, kill) 63 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
12 (dos_ttraw, dos_ttcooked, run_msdos_command, abort): Remove DJGPP 64 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
13 v1.x code and tests of the value of __DJGPP__. 65 the value of __DJGPP__.
14 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x 66 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
15 compatibility code. 67 compatibility code.
16 68 * lread.c:
17 * lread.c: 69 * gmalloc.c (memalign):
18 * gmalloc.c (memalign): 70 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
19 * fileio.c (Fcopy_file, check_executable, Ffile_modes): 71 * emacs.c (main):
20 * emacs.c (main): 72 * dosfns.c (init_dosfns):
21 * dosfns.c (init_dosfns):
22 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__. 73 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
23 74
752010-04-01 Eli Zaretskii <eliz@gnu.org>
76
24 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the 77 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
25 string with `cursor' property comes from an `after-string' 78 string with `cursor' property comes from an `after-string'
26 overlay. (Bug#5816) 79 overlay. (Bug#5816)
@@ -88,7 +141,7 @@
88 141
89 * xdisp.c (x_consider_frame_title, update_window_cursor): 142 * xdisp.c (x_consider_frame_title, update_window_cursor):
90 Remove HAVE_NS conditionals. 143 Remove HAVE_NS conditionals.
91 (prepare_menu_bars)[HAVE_NS]: Call ns_set_doc_edited. 144 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
92 145
93 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use 146 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
94 filename for the title. 147 filename for the title.
@@ -445,7 +498,7 @@
4452010-03-12 Eli Zaretskii <eliz@gnu.org> 4982010-03-12 Eli Zaretskii <eliz@gnu.org>
446 499
447 These changes remove termcap.c from the build on Posix platforms. 500 These changes remove termcap.c from the build on Posix platforms.
448 * Makefilie.in (termcapobj): Move termcap.o from here... 501 * Makefile.in (termcapobj): Move termcap.o from here...
449 (MSDOS_OBJ): ...to here. 502 (MSDOS_OBJ): ...to here.
450 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is 503 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
451 now identical to when LIBS_TERMCAP is defined. 504 now identical to when LIBS_TERMCAP is defined.
@@ -730,7 +783,7 @@
7302010-01-19 Alan Mackenzie <acm@muc.de> 7832010-01-19 Alan Mackenzie <acm@muc.de>
731 784
732 Fix spurious before-change-functions invocation from (insert ?\n). 785 Fix spurious before-change-functions invocation from (insert ?\n).
733 * textprop.c (set_text_properties): rename parameter 786 * textprop.c (set_text_properties): Rename parameter
734 `signal_after_change_p' to `coherent_change_p', and make the 787 `signal_after_change_p' to `coherent_change_p', and make the
735 invocation of `modify_region' conditional on it. 788 invocation of `modify_region' conditional on it.
736 789
@@ -10752,7 +10805,7 @@
10752 10805
10753 * font.c (Vfont_encoding_alist, find_font_encoding): Move from 10806 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
10754 fontset.c. 10807 fontset.c.
10755 (font_pixel_size)[! HAVE_WINDOW_SYSTEM]: Return 1. 10808 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
10756 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts, 10809 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
10757 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f) 10810 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
10758 only when HAVE_WINDOW_SYSTEM is defined. 10811 only when HAVE_WINDOW_SYSTEM is defined.
@@ -20586,7 +20639,7 @@
20586 20639
205872007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change) 206402007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20588 20641
20589 * term.c (dissociate_if_controlling_tty)[USG]: Fix parse error. 20642 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
20590 20643
205912007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change) 206442007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20592 20645
diff --git a/src/ChangeLog.10 b/src/ChangeLog.10
index d4d99a80a18..39b70d9b199 100644
--- a/src/ChangeLog.10
+++ b/src/ChangeLog.10
@@ -2137,7 +2137,7 @@
2137 2137
2138 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies. 2138 * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
2139 2139
2140 * keymap.c: include "window.h". 2140 * keymap.c: Include "window.h".
2141 (Fcommand_remapping): New optional POSITION argument. 2141 (Fcommand_remapping): New optional POSITION argument.
2142 (Fkey_binding): New optional POSITION argument. Completely rework 2142 (Fkey_binding): New optional POSITION argument. Completely rework
2143 handling of mouse clicks to get the same order of keymaps as 2143 handling of mouse clicks to get the same order of keymaps as
@@ -5867,9 +5867,9 @@
5867 5867
58682005-12-26 Luc Teirlinck <teirllm@auburn.edu> 58682005-12-26 Luc Teirlinck <teirllm@auburn.edu>
5869 5869
5870 * keyboard.h: extern last_point_position_window. 5870 * keyboard.h: Extern last_point_position_window.
5871 5871
5872 * undo.c: include keyboard.h. 5872 * undo.c: Include keyboard.h.
5873 5873
5874 * Makefile.in (undo.o): Depend on keyboard.h. 5874 * Makefile.in (undo.o): Depend on keyboard.h.
5875 5875
@@ -8276,7 +8276,7 @@
8276 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix. 8276 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
8277 (syms_of_xdisp) <void-text-area-pointer>: Doc fix. 8277 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
8278 8278
8279 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows. 8279 * fileio.c (Frename_file) [!DOS_NT]: Don't call chown on MSDOS/Windows.
8280 8280
82812005-06-23 Richard M. Stallman <rms@gnu.org> 82812005-06-23 Richard M. Stallman <rms@gnu.org>
8282 8282
@@ -12611,7 +12611,7 @@
12611 * macterm.c (mac_check_for_quit_char): Remove warning for using 12611 * macterm.c (mac_check_for_quit_char): Remove warning for using
12612 NULL where 0 should be used. 12612 NULL where 0 should be used.
12613 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of 12613 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
12614 objc/malloc.h 12614 objc/malloc.h.
12615 * mac.c: Include time.h for Tiger compatibility. 12615 * mac.c: Include time.h for Tiger compatibility.
12616 12616
126172004-10-07 Kim F. Storm <storm@cua.dk> 126172004-10-07 Kim F. Storm <storm@cua.dk>
@@ -12843,7 +12843,7 @@
12843 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and 12843 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12844 blockinput.h. 12844 blockinput.h.
12845 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h, 12845 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12846 charset.h, and coding.h 12846 charset.h, and coding.h.
12847 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h. 12847 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
12848 (term.o): Depend on window.h and keymap.h. 12848 (term.o): Depend on window.h and keymap.h.
12849 (abbrev.o): Depend on syntax.h. 12849 (abbrev.o): Depend on syntax.h.
@@ -17222,7 +17222,7 @@
172222003-09-01 Jason Rumney <jasonr@gnu.org> 172222003-09-01 Jason Rumney <jasonr@gnu.org>
17223 17223
17224 * makefile.w32-in (alloca.o): Remove. 17224 * makefile.w32-in (alloca.o): Remove.
17225 (coding.o): Depend on intervals.h 17225 (coding.o): Depend on intervals.h.
17226 (emacs.o, bytecode.o): Depend on window.h. 17226 (emacs.o, bytecode.o): Depend on window.h.
17227 17227
172282003-09-01 Dave Love <fx@gnu.org> 172282003-09-01 Dave Love <fx@gnu.org>
@@ -22643,7 +22643,7 @@
22643 (Fx_popup_menu): Don't show pop up menu until preceding one is 22643 (Fx_popup_menu): Don't show pop up menu until preceding one is
22644 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block. 22644 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
22645 22645
22646 * w32menu.c: Changes adapted from xmenu.c 22646 * w32menu.c: Changes adapted from xmenu.c.
22647 (set_frame_menubar): First parse all submenus, 22647 (set_frame_menubar): First parse all submenus,
22648 then make widget_value trees from them. 22648 then make widget_value trees from them.
22649 Don't allocate any widget_value objects 22649 Don't allocate any widget_value objects
@@ -24232,7 +24232,7 @@
24232 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h, 24232 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
24233 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h, 24233 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
24234 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h, 24234 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
24235 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h 24235 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h,
24236 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h, 24236 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
24237 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h, 24237 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
24238 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h, 24238 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
diff --git a/src/ChangeLog.8 b/src/ChangeLog.8
index de162cb39bc..6da7b6862a5 100644
--- a/src/ChangeLog.8
+++ b/src/ChangeLog.8
@@ -2886,10 +2886,10 @@
2886 2886
2887 * sysdep.c: Define numerous routines to emulate Unix system calls. 2887 * sysdep.c: Define numerous routines to emulate Unix system calls.
2888 2888
2889 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt 2889 * xfaces.c: On MacOS, define the set of colors listed in rgb.txt
2890 file of an X Window environment. 2890 file of an X Window environment.
2891 2891
2892 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, 2892 * xfaces.c: On MacOS, define the Lisp functions x-display-color-p,
2893 x-display-grayscale, x-color-defined-p, and x-color-values. 2893 x-display-grayscale, x-color-defined-p, and x-color-values.
2894 2894
2895 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) 2895 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
@@ -3160,7 +3160,7 @@
3160 3160
31611999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> 31611999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
3162 3162
3163 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c 3163 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c.
3164 * m/iris4d.h: Use unexelf for IRIX 5.*. 3164 * m/iris4d.h: Use unexelf for IRIX 5.*.
3165 * m/iris5d.h: Use unexelf for IRIX 6.*. 3165 * m/iris5d.h: Use unexelf for IRIX 6.*.
3166 * unexsgi.c: Deleted. 3166 * unexsgi.c: Deleted.
@@ -3767,8 +3767,8 @@
37671999-08-06 Gerd Moellmann <gerd@gnu.org> 37671999-08-06 Gerd Moellmann <gerd@gnu.org>
3768 3768
3769 * xdisp.c (compute_line_metrics): If first line's physical ascent 3769 * xdisp.c (compute_line_metrics): If first line's physical ascent
3770 is larger than its logical ascent, use the physical ascent, and 3770 is larger than its logical ascent, use the physical ascent, and
3771 make the row taller. Set row's overlapping_p flag. 3771 make the row taller. Set row's overlapping_p flag.
3772 3772
3773 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. 3773 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
3774 (direct_output_for_insert): Ditto. 3774 (direct_output_for_insert): Ditto.
@@ -4675,7 +4675,7 @@
4675 4675
46761999-06-04 Gerd Moellmann <gerd@gnu.org> 46761999-06-04 Gerd Moellmann <gerd@gnu.org>
4677 4677
4678 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return 4678 * xfaces.c (recompute_basic_faces) [GLYPH_DEBUG]: Check return
4679 value of realize_basic_faces. 4679 value of realize_basic_faces.
4680 (load_face_font_or_fontset): Store full font name in face. 4680 (load_face_font_or_fontset): Store full font name in face.
4681 (realize_default_face): Use full font name. 4681 (realize_default_face): Use full font name.
@@ -5601,9 +5601,9 @@
5601 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. 5601 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
5602 5602
5603 * xdisp.c (redisplay_window): If mode line height has changed, 5603 * xdisp.c (redisplay_window): If mode line height has changed,
5604 arrange for a thorough immediate redisplay using the correct mode 5604 arrange for a thorough immediate redisplay using the correct mode
5605 line height. 5605 line height.
5606 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. 5606 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
5607 5607
5608 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. 5608 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
5609 (CURRENT_MODE_LINE_HEIGHT): New. 5609 (CURRENT_MODE_LINE_HEIGHT): New.
@@ -7062,7 +7062,7 @@
70621998-05-04 Gerd Moellmann <gerd@gnu.org> 70621998-05-04 Gerd Moellmann <gerd@gnu.org>
7063 7063
7064 * Makefile.in (LIBXPM): If not already defined, define to -lXpm. 7064 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
7065 (LIBX)[HAVE_X11]: Add LIBXPM. 7065 (LIBX) [HAVE_X11]: Add LIBXPM.
7066 7066
7067 * xfns.c (xpm_image_p): Implementation of image type functions 7067 * xfns.c (xpm_image_p): Implementation of image type functions
7068 for XPM. 7068 for XPM.
@@ -10052,7 +10052,7 @@
10052 10052
10053 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed. 10053 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
10054 10054
10055 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c 10055 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c.
10056 10056
10057 * xfns.c (x_contour_region): Use pixel coordinates from window 10057 * xfns.c (x_contour_region): Use pixel coordinates from window
10058 cursor instead of WINDOW_TO_FRAME_H/VPOS. 10058 cursor instead of WINDOW_TO_FRAME_H/VPOS.
@@ -10897,7 +10897,7 @@
10897 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P. 10897 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
10898 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P 10898 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
10899 10899
10900 * all files: use above new names. 10900 * all files: Use above new names.
10901 10901
10902 * dispnew.c (scroll_frame_lines): Simplified. Use 10902 * dispnew.c (scroll_frame_lines): Simplified. Use
10903 SCROLL_GLYPH_MATRIX. 10903 SCROLL_GLYPH_MATRIX.
@@ -10961,7 +10961,7 @@
10961 (init_display): Ditto. 10961 (init_display): Ditto.
10962 (syms_of_display): Ditto. 10962 (syms_of_display): Ditto.
10963 10963
10964 * dispextern.h: add prototypes for REDRAW_FRAME, 10964 * dispextern.h: Add prototypes for REDRAW_FRAME,
10965 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS, 10965 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
10966 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS, 10966 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
10967 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS, 10967 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
@@ -11108,9 +11108,9 @@
11108 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX. 11108 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
11109 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX 11109 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
11110 11110
11111 * Makefile.in (window.o): Add dependency window.c -> dispextern.h 11111 * Makefile.in (window.o): Add dependency window.c -> dispextern.h.
11112 11112
11113 * window.c: Include dispextern.h 11113 * window.c: Include dispextern.h.
11114 11114
11115 * scroll.c (do_scrolling): Use new glyphs. 11115 * scroll.c (do_scrolling): Use new glyphs.
11116 (do_direct_scrolling): Ditto. 11116 (do_direct_scrolling): Ditto.
@@ -11141,9 +11141,9 @@
11141 (write_glyphs): Ditto. 11141 (write_glyphs): Ditto.
11142 (insert_glyphs): Ditto. 11142 (insert_glyphs): Ditto.
11143 11143
11144 * Makefile.in (term.o): term.c depends on dispextern.h 11144 * Makefile.in (term.o): term.c depends on dispextern.h.
11145 11145
11146 * term.c: Include dispextern.h 11146 * term.c: Include dispextern.h.
11147 11147
11148 * dispnew.c (direct_output_forward_char): Old glyph functions 11148 * dispnew.c (direct_output_forward_char): Old glyph functions
11149 removed, new inserted. 11149 removed, new inserted.
@@ -11560,8 +11560,8 @@
115601999-05-02 Andrew Innes <andrewi@gnu.org> 115601999-05-02 Andrew Innes <andrewi@gnu.org>
11561 11561
11562 * s/ms-w32.h (HAVE_FSYNC): New macro. 11562 * s/ms-w32.h (HAVE_FSYNC): New macro.
11563 (fsync): Map to _commit. 11563 (fsync): Map to _commit.
11564 (ftruncate): Map to _chsize. 11564 (ftruncate): Map to _chsize.
11565 11565
11566 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even 11566 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
11567 for ASCII, if enabled, to avoid memory allocation overhead for 11567 for ASCII, if enabled, to avoid memory allocation overhead for
@@ -11666,7 +11666,7 @@
11666 11666
11667 * fontset.c (Fquery_fontset): Don't check for fontset aliases here. 11667 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
11668 (Fnew_fontset, Fset_fontset_font): Check for them here. 11668 (Fnew_fontset, Fset_fontset_font): Check for them here.
11669 (Ffontset_info, Fnew_fontset, Fset_fontset_font): 11669 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
11670 Fix error message syntax. 11670 Fix error message syntax.
11671 11671
11672 * buffer.c (Fmake_indirect_buffer): Copy multibyte status 11672 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
@@ -12775,7 +12775,7 @@
127751998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org> 127751998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
12776 12776
12777 * Makefile.in (msdos.o): Depend on termchar.h, charset.h, 12777 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
12778 coding.h, and disptab.h 12778 coding.h, and disptab.h.
12779 12779
12780 * msdos.c (Vdos_unsupported_char_glyph): New variable. 12780 * msdos.c (Vdos_unsupported_char_glyph): New variable.
12781 (syms_of_msdos): DEFVAR_LISP it. 12781 (syms_of_msdos): DEFVAR_LISP it.
diff --git a/src/Makefile.in b/src/Makefile.in
index a71292e14f7..2d68910667f 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -287,10 +287,6 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
287#endif 287#endif
288 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< 288 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
289 289
290#ifndef LIBX11_SYSTEM
291#define LIBX11_SYSTEM
292#endif
293
294#ifndef LIB_X11_LIB 290#ifndef LIB_X11_LIB
295#define LIB_X11_LIB -lX11 291#define LIB_X11_LIB -lX11
296#endif 292#endif
@@ -379,7 +375,7 @@ LIBXT=$(LIBW)
379/* LD_SWITCH_X_DEFAULT comes after everything else that specifies 375/* LD_SWITCH_X_DEFAULT comes after everything else that specifies
380 options for where to find X libraries, but before those libraries. */ 376 options for where to find X libraries, but before those libraries. */
381X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT 377X11_LDFLAGS = LD_SWITCH_X_SITE LD_SWITCH_X_DEFAULT
382LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) $(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) LIB_X11_LIB LIBX11_SYSTEM $(XFT_LIBS) 378LIBX= $(LIBXMENU) $(X11_LDFLAGS) $(LIBXT) $(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) LIB_X11_LIB $(XFT_LIBS)
383#else /* not HAVE_X11 */ 379#else /* not HAVE_X11 */
384LIBX= $(LIBXMENU) LD_SWITCH_X_SITE 380LIBX= $(LIBXMENU) LD_SWITCH_X_SITE
385#endif /* not HAVE_X11 */ 381#endif /* not HAVE_X11 */
diff --git a/src/bidi.c b/src/bidi.c
index ea47cd33fec..7da8cd4a88c 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -1242,7 +1242,7 @@ bidi_resolve_explicit (struct bidi_it *bidi_it)
1242 if (prev_level < new_level 1242 if (prev_level < new_level
1243 && bidi_it->type == WEAK_BN 1243 && bidi_it->type == WEAK_BN
1244 && bidi_it->ignore_bn_limit == 0 /* only if not already known */ 1244 && bidi_it->ignore_bn_limit == 0 /* only if not already known */
1245 && bidi_it->ch != BIDI_EOB /* not already at EOB */ 1245 && bidi_it->bytepos < ZV_BYTE /* not already at EOB */
1246 && bidi_explicit_dir_char (FETCH_CHAR (bidi_it->bytepos 1246 && bidi_explicit_dir_char (FETCH_CHAR (bidi_it->bytepos
1247 + bidi_it->ch_len))) 1247 + bidi_it->ch_len)))
1248 { 1248 {
@@ -1648,7 +1648,7 @@ bidi_level_of_next_char (struct bidi_it *bidi_it)
1648 if (bidi_it->scan_dir == 1) 1648 if (bidi_it->scan_dir == 1)
1649 { 1649 {
1650 /* There's no sense in trying to advance if we hit end of text. */ 1650 /* There's no sense in trying to advance if we hit end of text. */
1651 if (bidi_it->ch == BIDI_EOB) 1651 if (bidi_it->bytepos >= ZV_BYTE)
1652 return bidi_it->resolved_level; 1652 return bidi_it->resolved_level;
1653 1653
1654 /* Record the info about the previous character. */ 1654 /* Record the info about the previous character. */
diff --git a/src/buffer.c b/src/buffer.c
index 0c6e57d45be..9035a986b4c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -28,11 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#include <stdio.h> 28#include <stdio.h>
29#include <setjmp.h> 29#include <setjmp.h>
30 30
31#ifndef USE_CRT_DLL
32extern int errno;
33#endif
34
35
36#ifdef HAVE_UNISTD_H 31#ifdef HAVE_UNISTD_H
37#include <unistd.h> 32#include <unistd.h>
38#endif 33#endif
@@ -4627,7 +4622,6 @@ buffer_slot_type_mismatch (newval, type)
4627#endif 4622#endif
4628 4623
4629#include <stdio.h> 4624#include <stdio.h>
4630#include <errno.h>
4631 4625
4632#if MAP_ANON == 0 4626#if MAP_ANON == 0
4633#include <fcntl.h> 4627#include <fcntl.h>
diff --git a/src/callproc.c b/src/callproc.c
index bed3302e508..378c647f385 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -25,10 +25,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
25#include <stdio.h> 25#include <stdio.h>
26#include <setjmp.h> 26#include <setjmp.h>
27 27
28#ifndef USE_CRT_DLL
29extern int errno;
30#endif
31
32/* Define SIGCHLD as an alias for SIGCLD. */ 28/* Define SIGCHLD as an alias for SIGCLD. */
33 29
34#if !defined (SIGCHLD) && defined (SIGCLD) 30#if !defined (SIGCHLD) && defined (SIGCLD)
@@ -61,7 +57,6 @@ extern int errno;
61#include <fcntl.h> 57#include <fcntl.h>
62#include <sys/stat.h> 58#include <sys/stat.h>
63#include <sys/param.h> 59#include <sys/param.h>
64#include <errno.h>
65#endif /* MSDOS */ 60#endif /* MSDOS */
66 61
67#ifndef O_RDONLY 62#ifndef O_RDONLY
diff --git a/src/dispnew.c b/src/dispnew.c
index 52d7f38728f..2be00c9c3b0 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -5809,9 +5809,6 @@ window_change_signal (signalnum) /* If we don't have an argument, */
5809 int signalnum; /* some compilers complain in signal calls. */ 5809 int signalnum; /* some compilers complain in signal calls. */
5810{ 5810{
5811 int width, height; 5811 int width, height;
5812#ifndef USE_CRT_DLL
5813 extern int errno;
5814#endif
5815 int old_errno = errno; 5812 int old_errno = errno;
5816 5813
5817 struct tty_display_info *tty; 5814 struct tty_display_info *tty;
diff --git a/src/ecrt0.c b/src/ecrt0.c
index 7dbbd6c5ef1..0d7d26d3685 100644
--- a/src/ecrt0.c
+++ b/src/ecrt0.c
@@ -59,13 +59,7 @@ And always:
59 59
60int data_start = 0; 60int data_start = 0;
61 61
62#ifdef NEED_ERRNO
63int errno;
64#endif
65
66#ifndef MSDOS
67char **environ; 62char **environ;
68#endif
69 63
70#ifndef static 64#ifndef static
71/* On systems where the static storage class is usable, this function 65/* On systems where the static storage class is usable, this function
@@ -104,70 +98,7 @@ start1 (CRT0_DUMMIES argc, xargv)
104 and optimize it out. */ 98 and optimize it out. */
105 (void) &start1; 99 (void) &start1;
106} 100}
107#else /* not CRT0_DUMMIES */ 101#endif /* CRT0_DUMMIES */
108
109/* This is a kludge. Now that the CRT0_DUMMIES mechanism above exists,
110 most of these machines could use the vax code above
111 with some suitable definition of CRT0_DUMMIES.
112 Then the symbol m68k could be flushed.
113 But I don't want to risk breaking these machines
114 in a version 17 patch release, so that change is being put off. */
115
116#ifdef m68k /* Can't do it all from C */
117 asm (" global _start");
118 asm (" text");
119 asm ("_start:");
120 asm (" comm splimit%,4");
121 asm (" global exit");
122 asm (" text");
123 asm (" mov.l %d0,splimit%");
124 asm (" jsr start1");
125 asm (" mov.l %d0,(%sp)");
126 asm (" jsr exit");
127 asm (" mov.l &1,%d0"); /* d0 = 1 => exit */
128 asm (" trap &0");
129
130/* ignore takes care of skipping the a6 value pushed in start. */
131static
132start1 (argc, xargv)
133 int argc;
134 char *xargv;
135{
136 register char **argv = &xargv;
137 environ = argv + argc + 1;
138
139 if ((char *)environ == xargv)
140 environ--;
141 exit (main (argc, argv, environ));
142}
143
144#endif /* m68k */
145
146#endif /* not CRT0_DUMMIES */
147
148#ifdef __sparc__
149asm (".global __start");
150asm (".text");
151asm ("__start:");
152asm (" mov 0, %fp");
153asm (" ld [%sp + 64], %o0");
154asm (" add %sp, 68, %o1");
155asm (" sll %o0, 2, %o2");
156asm (" add %o2, 4, %o2");
157asm (" add %o1, %o2, %o2");
158asm (" sethi %hi(_environ), %o3");
159asm (" st %o2, [%o3+%lo(_environ)]");
160asm (" andn %sp, 7, %sp");
161asm (" call _main");
162asm (" sub %sp, 24, %sp");
163asm (" call __exit");
164asm (" nop");
165
166#endif /* __sparc__ */
167
168#if __FreeBSD__ == 2
169char *__progname;
170#endif
171 102
172/* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74 103/* arch-tag: 4025c2fb-d6b1-4d29-b1b6-8100b6bd1e74
173 (do not change this comment) */ 104 (do not change this comment) */
diff --git a/src/emacs.c b/src/emacs.c
index 0d90776df83..400a6b0e594 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -756,9 +756,6 @@ main (int argc, char **argv)
756 char stack_bottom_variable; 756 char stack_bottom_variable;
757 int do_initial_setlocale; 757 int do_initial_setlocale;
758 int skip_args = 0; 758 int skip_args = 0;
759#ifndef USE_CRT_DLL
760 extern int errno;
761#endif
762#ifdef HAVE_SETRLIMIT 759#ifdef HAVE_SETRLIMIT
763 struct rlimit rlim; 760 struct rlimit rlim;
764#endif 761#endif
diff --git a/src/fileio.c b/src/fileio.c
index 4ae74de5c67..c62d5724eff 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -53,12 +53,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53#include <ctype.h> 53#include <ctype.h>
54#include <errno.h> 54#include <errno.h>
55 55
56#ifndef vax11c
57#ifndef USE_CRT_DLL
58extern int errno;
59#endif
60#endif
61
62#include "lisp.h" 56#include "lisp.h"
63#include "intervals.h" 57#include "intervals.h"
64#include "buffer.h" 58#include "buffer.h"
diff --git a/src/filelock.c b/src/filelock.c
index 7c69ea954fc..b11338c58b6 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -47,9 +47,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
47#endif /* __FreeBSD__ */ 47#endif /* __FreeBSD__ */
48 48
49#include <errno.h> 49#include <errno.h>
50#ifndef errno
51extern int errno;
52#endif
53 50
54#include "lisp.h" 51#include "lisp.h"
55#include "buffer.h" 52#include "buffer.h"
diff --git a/src/floatfns.c b/src/floatfns.c
index 97d9ec00aae..3f7030b7605 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -99,10 +99,6 @@ extern double logb ();
99 99
100#ifdef FLOAT_CHECK_ERRNO 100#ifdef FLOAT_CHECK_ERRNO
101# include <errno.h> 101# include <errno.h>
102
103#ifndef USE_CRT_DLL
104extern int errno;
105#endif
106#endif 102#endif
107 103
108#ifdef FLOAT_CATCH_SIGILL 104#ifdef FLOAT_CATCH_SIGILL
diff --git a/src/keyboard.c b/src/keyboard.c
index 3cd042fb21e..f2aeff89542 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -79,10 +79,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
79#include "nsterm.h" 79#include "nsterm.h"
80#endif 80#endif
81 81
82#ifndef USE_CRT_DLL
83extern int errno;
84#endif
85
86/* Variables for blockinput.h: */ 82/* Variables for blockinput.h: */
87 83
88/* Non-zero if interrupt input is blocked right now. */ 84/* Non-zero if interrupt input is blocked right now. */
diff --git a/src/lread.c b/src/lread.c
index 90edca90a16..83ebc8b3b10 100644
--- a/src/lread.c
+++ b/src/lread.c
@@ -73,10 +73,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
73#define file_tell ftell 73#define file_tell ftell
74#endif 74#endif
75 75
76#ifndef USE_CRT_DLL
77extern int errno;
78#endif
79
80/* hash table read constants */ 76/* hash table read constants */
81Lisp_Object Qhash_table, Qdata; 77Lisp_Object Qhash_table, Qdata;
82Lisp_Object Qtest, Qsize; 78Lisp_Object Qtest, Qsize;
diff --git a/src/m/intel386.h b/src/m/intel386.h
index 8b3c5fff064..dc50d5ea6a2 100644
--- a/src/m/intel386.h
+++ b/src/m/intel386.h
@@ -85,10 +85,6 @@ NOTE-END */
85#define TEXT_START 0 85#define TEXT_START 0
86#endif /* USG */ 86#endif /* USG */
87 87
88#ifdef MSDOS
89#define NO_REMAP
90#endif
91
92#ifdef WINDOWSNT 88#ifdef WINDOWSNT
93#define VIRT_ADDR_VARIES 89#define VIRT_ADDR_VARIES
94#define DATA_START get_data_start () 90#define DATA_START get_data_start ()
diff --git a/src/m/vax.h b/src/m/vax.h
index 62c78e68ab0..f33c2d5227a 100644
--- a/src/m/vax.h
+++ b/src/m/vax.h
@@ -34,10 +34,6 @@ NOTE-END */
34 34
35/* #define vax -- appears to be done automatically */ 35/* #define vax -- appears to be done automatically */
36 36
37/* crt0.c should use the vax-bsd style of entry, with no dummy args. */
38
39#define CRT0_DUMMIES
40
41/* USG systems I know of running on Vaxes do not actually 37/* USG systems I know of running on Vaxes do not actually
42 support the load average, so disable it for them. */ 38 support the load average, so disable it for them. */
43 39
diff --git a/src/process.c b/src/process.c
index 43fa78c7bd4..3c539024b0a 100644
--- a/src/process.c
+++ b/src/process.c
@@ -195,10 +195,6 @@ extern int serial_open (char *port);
195extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact); 195extern void serial_configure (struct Lisp_Process *p, Lisp_Object contact);
196#endif 196#endif
197 197
198#ifndef USE_CRT_DLL
199extern int errno;
200#endif
201
202#ifndef HAVE_H_ERRNO 198#ifndef HAVE_H_ERRNO
203extern int h_errno; 199extern int h_errno;
204#endif 200#endif
diff --git a/src/s/msdos.h b/src/s/msdos.h
index 29fbdab8369..15c3c5b1452 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -149,7 +149,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
149 commentary below, in the non-X branch. The 140KB number was 149 commentary below, in the non-X branch. The 140KB number was
150 measured on GNU/Linux and on MS-WIndows. */ 150 measured on GNU/Linux and on MS-WIndows. */
151#define SYSTEM_PURESIZE_EXTRA (-170000+140000) 151#define SYSTEM_PURESIZE_EXTRA (-170000+140000)
152#define LIBX11_SYSTEM -lxext -lsys 152#define LIBS_SYSTEM -lxext -lsys
153#else 153#else
154/* We need a little extra space, see ../../lisp/loadup.el. 154/* We need a little extra space, see ../../lisp/loadup.el.
155 As of 20091024, DOS-specific files use up 62KB of pure space. But 155 As of 20091024, DOS-specific files use up 62KB of pure space. But
@@ -170,5 +170,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
170#define GC_SETJMP_WORKS 1 170#define GC_SETJMP_WORKS 1
171#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS 171#define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
172 172
173#define NO_REMAP
174
173/* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0 175/* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0
174 (do not change this comment) */ 176 (do not change this comment) */
diff --git a/src/s/netbsd.h b/src/s/netbsd.h
index 5552aece50a..682b9482352 100644
--- a/src/s/netbsd.h
+++ b/src/s/netbsd.h
@@ -28,8 +28,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28 28
29#define LIBS_TERMCAP -ltermcap 29#define LIBS_TERMCAP -ltermcap
30 30
31#define NEED_ERRNO
32
33#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o 31#define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o
34#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 32#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1
35#undef LIB_GCC 33#undef LIB_GCC
diff --git a/src/sysdep.c b/src/sysdep.c
index 71b2a0f461b..37e7dfbaf9c 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -94,12 +94,6 @@ extern int etext;
94extern unsigned start __asm__ ("start"); 94extern unsigned start __asm__ ("start");
95#endif 95#endif
96 96
97#ifndef USE_CRT_DLL
98#ifndef errno
99extern int errno;
100#endif
101#endif
102
103#include <sys/file.h> 97#include <sys/file.h>
104 98
105#ifdef HAVE_FCNTL_H 99#ifdef HAVE_FCNTL_H
diff --git a/src/unexaix.c b/src/unexaix.c
index 97b69d7e5c7..2657d144296 100644
--- a/src/unexaix.c
+++ b/src/unexaix.c
@@ -435,7 +435,6 @@ write_segment (int new, char *ptr, char *end)
435{ 435{
436 int i, nwrite, ret; 436 int i, nwrite, ret;
437 char buf[80]; 437 char buf[80];
438 extern int errno;
439 char zeros[UnexBlockSz]; 438 char zeros[UnexBlockSz];
440 439
441 for (i = 0; ptr < end;) 440 for (i = 0; ptr < end;)
diff --git a/src/unexec.c b/src/unexec.c
index 6cb27b35c36..1a27db1232d 100644
--- a/src/unexec.c
+++ b/src/unexec.c
@@ -466,9 +466,6 @@ write_segment (new, ptr, end)
466{ 466{
467 register int i, nwrite, ret; 467 register int i, nwrite, ret;
468 char buf[80]; 468 char buf[80];
469#ifndef USE_CRT_DLL
470 extern int errno;
471#endif
472 /* This is the normal amount to write at once. 469 /* This is the normal amount to write at once.
473 It is the size of block that NFS uses. */ 470 It is the size of block that NFS uses. */
474 int writesize = 1 << 13; 471 int writesize = 1 << 13;
diff --git a/src/w32fns.c b/src/w32fns.c
index 938bd463b25..795e7208569 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -5427,6 +5427,10 @@ x_create_tip_frame (dpyinfo, parms, text)
5427 5427
5428 kb = dpyinfo->terminal->kboard; 5428 kb = dpyinfo->terminal->kboard;
5429 5429
5430 /* The calls to x_get_arg remove elements from PARMS, so copy it to
5431 avoid destructive changes behind our caller's back. */
5432 parms = Fcopy_alist (parms);
5433
5430 /* Get the name of the frame to use for resource lookup. */ 5434 /* Get the name of the frame to use for resource lookup. */
5431 name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING); 5435 name = x_get_arg (dpyinfo, parms, Qname, "name", "Name", RES_TYPE_STRING);
5432 if (!STRINGP (name) 5436 if (!STRINGP (name)
diff --git a/src/w32term.c b/src/w32term.c
index 4ed7beda233..7222e26efd2 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -228,10 +228,6 @@ static int input_signal_count;
228 228
229extern Lisp_Object Vcommand_line_args, Vsystem_name; 229extern Lisp_Object Vcommand_line_args, Vsystem_name;
230 230
231#ifndef USE_CRT_DLL
232extern int errno;
233#endif
234
235/* A mask of extra modifier bits to put into every keyboard char. */ 231/* A mask of extra modifier bits to put into every keyboard char. */
236extern EMACS_INT extra_keyboard_modifiers; 232extern EMACS_INT extra_keyboard_modifiers;
237 233
diff --git a/src/xdisp.c b/src/xdisp.c
index c6ae6ad4c14..997c76934d4 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12606,7 +12606,8 @@ set_cursor_from_row (w, row, matrix, delta, delta_bytes, dy, dvpos)
12606 } 12606 }
12607 if (INTEGERP (glyph->object) && glyph->charpos < 0) 12607 if (INTEGERP (glyph->object) && glyph->charpos < 0)
12608 --glyph; 12608 --glyph;
12609 /* By default, put the cursor on the rightmost glyph. */ 12609 /* By default, in reversed rows we put the cursor on the
12610 rightmost (first in the reading order) glyph. */
12610 for (g = end + 1; g < glyph; g++) 12611 for (g = end + 1; g < glyph; g++)
12611 x += g->pixel_width; 12612 x += g->pixel_width;
12612 cursor_x = x; 12613 cursor_x = x;
@@ -12683,7 +12684,16 @@ set_cursor_from_row (w, row, matrix, delta, delta_bytes, dy, dvpos)
12683 bpos_covered = bpos_max + XINT (chprop); 12684 bpos_covered = bpos_max + XINT (chprop);
12684 /* If the `cursor' property covers buffer positions up 12685 /* If the `cursor' property covers buffer positions up
12685 to and including point, we should display cursor on 12686 to and including point, we should display cursor on
12686 this glyph. */ 12687 this glyph. Note that overlays and text properties
12688 with string values stop bidi reordering, so every
12689 buffer position to the left of the string is always
12690 smaller than any position to the right of the
12691 string. Therefore, if a `cursor' property on one
12692 of the string's characters has an integer value, we
12693 will break out of the loop below _before_ we get to
12694 the position match above. IOW, integer values of
12695 the `cursor' property override the "exact match for
12696 point" strategy of positioning the cursor. */
12687 /* Implementation note: bpos_max == pt_old when, e.g., 12697 /* Implementation note: bpos_max == pt_old when, e.g.,
12688 we are in an empty line, where bpos_max is set to 12698 we are in an empty line, where bpos_max is set to
12689 MATRIX_ROW_START_CHARPOS, see above. */ 12699 MATRIX_ROW_START_CHARPOS, see above. */
diff --git a/src/xrdb.c b/src/xrdb.c
index c8cb55cb7b8..7808bacc59f 100644
--- a/src/xrdb.c
+++ b/src/xrdb.c
@@ -28,6 +28,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
28#include <unistd.h> 28#include <unistd.h>
29#endif 29#endif
30 30
31#include <errno.h>
31#include <epaths.h> 32#include <epaths.h>
32 33
33#include <stdio.h> 34#include <stdio.h>
@@ -734,8 +735,6 @@ fatal (msg, prog, x1, x2, x3, x4, x5)
734 char *msg, *prog; 735 char *msg, *prog;
735 int x1, x2, x3, x4, x5; 736 int x1, x2, x3, x4, x5;
736{ 737{
737 extern int errno;
738
739 if (errno) 738 if (errno)
740 perror (prog); 739 perror (prog);
741 740
diff --git a/src/xterm.c b/src/xterm.c
index 1114fcccc53..90db15d9ed4 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -309,8 +309,6 @@ extern Lisp_Object Vx_no_window_manager;
309 309
310extern Lisp_Object Qeql; 310extern Lisp_Object Qeql;
311 311
312extern int errno;
313
314/* A mask of extra modifier bits to put into every keyboard char. */ 312/* A mask of extra modifier bits to put into every keyboard char. */
315 313
316extern EMACS_INT extra_keyboard_modifiers; 314extern EMACS_INT extra_keyboard_modifiers;