aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/admin.el3
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/frame.el4
-rw-r--r--lisp/textmodes/artist.el2
-rw-r--r--src/dispnew.c12
-rw-r--r--src/msdos.c1
-rw-r--r--src/nsterm.m11
-rw-r--r--src/pgtkfns.c2
-rw-r--r--src/w32fns.c3
-rw-r--r--src/xfns.c3
10 files changed, 2 insertions, 43 deletions
diff --git a/admin/admin.el b/admin/admin.el
index c84287a7024..fececc86a4b 100644
--- a/admin/admin.el
+++ b/admin/admin.el
@@ -124,9 +124,6 @@ Root must be the root of an Emacs source tree."
124 ;; Major version only. 124 ;; Major version only.
125 (when (string-match "\\([0-9]\\{2,\\}\\)" version) 125 (when (string-match "\\([0-9]\\{2,\\}\\)" version)
126 (let ((newmajor (match-string 1 version))) 126 (let ((newmajor (match-string 1 version)))
127 (set-version-in-file root "src/msdos.c" newmajor
128 (rx (and "Vwindow_system_version" (1+ not-newline)
129 ?\( (submatch (1+ (in "0-9"))) ?\))))
130 (set-version-in-file root "etc/refcards/ru-refcard.tex" newmajor 127 (set-version-in-file root "etc/refcards/ru-refcard.tex" newmajor
131 "\\\\newcommand{\\\\versionemacs}\\[0\\]\ 128 "\\\\newcommand{\\\\versionemacs}\\[0\\]\
132{\\([0-9]\\{2,\\}\\)}.+%.+version of Emacs"))) 129{\\([0-9]\\{2,\\}\\)}.+%.+version of Emacs")))
diff --git a/etc/NEWS b/etc/NEWS
index 9aafbbcab4e..c77d275ba7a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2574,8 +2574,8 @@ but switching to `ash` is generally much preferable.
2574'url-recreate-url-attributes', 'user-variable-p', 2574'url-recreate-url-attributes', 'user-variable-p',
2575'vc-string-prefix-p', 'vc-toggle-read-only', 'view-return-to-alist', 2575'vc-string-prefix-p', 'vc-toggle-read-only', 'view-return-to-alist',
2576'view-return-to-alist-update', 'w32-default-color-map' (function), 2576'view-return-to-alist-update', 'w32-default-color-map' (function),
2577'which-func-mode' (function), 'winner-mode-leave-hook', 2577'which-func-mode' (function), 'window-system-version',
2578'x-cut-buffer-or-selection-value'. 2578'winner-mode-leave-hook', 'x-cut-buffer-or-selection-value'.
2579 2579
2580--- 2580---
2581** Some functions and variables obsolete since Emacs 23 have been removed: 2581** Some functions and variables obsolete since Emacs 23 have been removed:
diff --git a/lisp/frame.el b/lisp/frame.el
index 9361683c28a..ae8449d0ea8 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -3050,10 +3050,6 @@ See also `toggle-frame-maximized'."
3050 3050
3051(make-variable-buffer-local 'show-trailing-whitespace) 3051(make-variable-buffer-local 'show-trailing-whitespace)
3052 3052
3053;; Defined in dispnew.c.
3054(make-obsolete-variable
3055 'window-system-version "it does not give useful information." "24.3")
3056
3057(defun set-frame-property--interactive (prompt number) 3053(defun set-frame-property--interactive (prompt number)
3058 "Get a value for `set-frame-width' or `set-frame-height', prompting with PROMPT. 3054 "Get a value for `set-frame-width' or `set-frame-height', prompting with PROMPT.
3059Offer NUMBER as default value, if it is a natural number." 3055Offer NUMBER as default value, if it is a natural number."
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el
index 2cf9ded04bf..76675328daa 100644
--- a/lisp/textmodes/artist.el
+++ b/lisp/textmodes/artist.el
@@ -5341,8 +5341,6 @@ The event, EV, is the mouse event."
5341 (require 'reporter) 5341 (require 'reporter)
5342 (if (y-or-n-p "Do you want to submit a bug report on Artist? ") 5342 (if (y-or-n-p "Do you want to submit a bug report on Artist? ")
5343 (let ((vars '(window-system 5343 (let ((vars '(window-system
5344 window-system-version
5345 ;;
5346 artist-rubber-banding 5344 artist-rubber-banding
5347 artist-interface-with-rect 5345 artist-interface-with-rect
5348 artist-aspect-ratio 5346 artist-aspect-ratio
diff --git a/src/dispnew.c b/src/dispnew.c
index 53a47c4b2f2..8932f103f1f 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6504,9 +6504,6 @@ init_display_interactive (void)
6504 if (!inhibit_window_system && display_arg) 6504 if (!inhibit_window_system && display_arg)
6505 { 6505 {
6506 Vinitial_window_system = Qx; 6506 Vinitial_window_system = Qx;
6507#ifdef HAVE_X11
6508 Vwindow_system_version = make_fixnum (11);
6509#endif
6510#ifdef USE_NCURSES 6507#ifdef USE_NCURSES
6511 /* In some versions of ncurses, 6508 /* In some versions of ncurses,
6512 tputs crashes if we have not called tgetent. 6509 tputs crashes if we have not called tgetent.
@@ -6521,7 +6518,6 @@ init_display_interactive (void)
6521 if (!inhibit_window_system) 6518 if (!inhibit_window_system)
6522 { 6519 {
6523 Vinitial_window_system = Qw32; 6520 Vinitial_window_system = Qw32;
6524 Vwindow_system_version = make_fixnum (1);
6525 return; 6521 return;
6526 } 6522 }
6527#endif /* HAVE_NTGUI */ 6523#endif /* HAVE_NTGUI */
@@ -6530,7 +6526,6 @@ init_display_interactive (void)
6530 if (!inhibit_window_system && !will_dump_p ()) 6526 if (!inhibit_window_system && !will_dump_p ())
6531 { 6527 {
6532 Vinitial_window_system = Qns; 6528 Vinitial_window_system = Qns;
6533 Vwindow_system_version = make_fixnum (10);
6534 return; 6529 return;
6535 } 6530 }
6536#endif 6531#endif
@@ -6539,7 +6534,6 @@ init_display_interactive (void)
6539 if (!inhibit_window_system && !will_dump_p ()) 6534 if (!inhibit_window_system && !will_dump_p ())
6540 { 6535 {
6541 Vinitial_window_system = Qpgtk; 6536 Vinitial_window_system = Qpgtk;
6542 Vwindow_system_version = make_fixnum (3);
6543 return; 6537 return;
6544 } 6538 }
6545#endif 6539#endif
@@ -6548,7 +6542,6 @@ init_display_interactive (void)
6548 if (!inhibit_window_system && !will_dump_p ()) 6542 if (!inhibit_window_system && !will_dump_p ())
6549 { 6543 {
6550 Vinitial_window_system = Qhaiku; 6544 Vinitial_window_system = Qhaiku;
6551 Vwindow_system_version = make_fixnum (1);
6552 return; 6545 return;
6553 } 6546 }
6554#endif 6547#endif
@@ -6766,10 +6759,6 @@ Use of this variable as a boolean is deprecated. Instead,
6766use `display-graphic-p' or any of the other `display-*-p' 6759use `display-graphic-p' or any of the other `display-*-p'
6767predicates which report frame's specific UI-related capabilities. */); 6760predicates which report frame's specific UI-related capabilities. */);
6768 6761
6769 DEFVAR_LISP ("window-system-version", Vwindow_system_version,
6770 doc: /* The version number of the window system in use.
6771For X windows, this is 11. */);
6772
6773 DEFVAR_BOOL ("cursor-in-echo-area", cursor_in_echo_area, 6762 DEFVAR_BOOL ("cursor-in-echo-area", cursor_in_echo_area,
6774 doc: /* Non-nil means put cursor in minibuffer, at end of any message there. */); 6763 doc: /* Non-nil means put cursor in minibuffer, at end of any message there. */);
6775 6764
@@ -6817,5 +6806,4 @@ static void
6817syms_of_display_for_pdumper (void) 6806syms_of_display_for_pdumper (void)
6818{ 6807{
6819 Vinitial_window_system = Qnil; 6808 Vinitial_window_system = Qnil;
6820 Vwindow_system_version = Qnil;
6821} 6809}
diff --git a/src/msdos.c b/src/msdos.c
index 1608245904c..1d3fdd528d7 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -1794,7 +1794,6 @@ internal_terminal_init (void)
1794 } 1794 }
1795 1795
1796 Vinitial_window_system = Qpc; 1796 Vinitial_window_system = Qpc;
1797 Vwindow_system_version = make_fixnum (29); /* RE Emacs version */
1798 tty->terminal->type = output_msdos_raw; 1797 tty->terminal->type = output_msdos_raw;
1799 1798
1800 /* If Emacs was dumped on DOS/V machine, forget the stale VRAM 1799 /* If Emacs was dumped on DOS/V machine, forget the stale VRAM
diff --git a/src/nsterm.m b/src/nsterm.m
index e3f47eb905e..4db78fb48cc 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5605,17 +5605,6 @@ ns_term_init (Lisp_Object display_name)
5605 5605
5606 NSTRACE_MSG ("Versions"); 5606 NSTRACE_MSG ("Versions");
5607 5607
5608 {
5609#ifdef NS_IMPL_GNUSTEP
5610 Vwindow_system_version = build_string (gnustep_base_version);
5611#else
5612 /* PSnextrelease (128, c); */
5613 char c[DBL_BUFSIZE_BOUND];
5614 int len = dtoastr (c, sizeof c, 0, 0, NSAppKitVersionNumber);
5615 Vwindow_system_version = make_unibyte_string (c, len);
5616#endif
5617 }
5618
5619 delete_keyboard_wait_descriptor (0); 5608 delete_keyboard_wait_descriptor (0);
5620 5609
5621 ns_app_name = [[NSProcessInfo processInfo] processName]; 5610 ns_app_name = [[NSProcessInfo processInfo] processName];
diff --git a/src/pgtkfns.c b/src/pgtkfns.c
index beaf28f69d9..9473e14f5cf 100644
--- a/src/pgtkfns.c
+++ b/src/pgtkfns.c
@@ -164,8 +164,6 @@ pgtk_display_info_for_name (Lisp_Object name)
164 if (dpyinfo == 0) 164 if (dpyinfo == 0)
165 error ("Cannot connect to display server %s", SDATA (name)); 165 error ("Cannot connect to display server %s", SDATA (name));
166 166
167 XSETFASTINT (Vwindow_system_version, 11);
168
169 return dpyinfo; 167 return dpyinfo;
170} 168}
171 169
diff --git a/src/w32fns.c b/src/w32fns.c
index 28d13a68d45..745458d0a03 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -6699,8 +6699,6 @@ w32_display_info_for_name (Lisp_Object name)
6699 if (dpyinfo == 0) 6699 if (dpyinfo == 0)
6700 error ("Cannot connect to server %s", SDATA (name)); 6700 error ("Cannot connect to server %s", SDATA (name));
6701 6701
6702 XSETFASTINT (Vwindow_system_version, w32_major_version);
6703
6704 return dpyinfo; 6702 return dpyinfo;
6705} 6703}
6706 6704
@@ -6781,7 +6779,6 @@ DEFUN ("x-open-connection", Fx_open_connection, Sx_open_connection,
6781 error ("Cannot connect to server %s", SDATA (display)); 6779 error ("Cannot connect to server %s", SDATA (display));
6782 } 6780 }
6783 6781
6784 XSETFASTINT (Vwindow_system_version, w32_major_version);
6785 return Qnil; 6782 return Qnil;
6786} 6783}
6787 6784
diff --git a/src/xfns.c b/src/xfns.c
index a275e3e11a8..922fd5a6d46 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -7228,8 +7228,6 @@ x_display_info_for_name (Lisp_Object name)
7228 if (dpyinfo == 0) 7228 if (dpyinfo == 0)
7229 error ("Cannot connect to X server %s", SDATA (name)); 7229 error ("Cannot connect to X server %s", SDATA (name));
7230 7230
7231 XSETFASTINT (Vwindow_system_version, 11);
7232
7233 return dpyinfo; 7231 return dpyinfo;
7234} 7232}
7235 7233
@@ -7273,7 +7271,6 @@ An insecure way to solve the problem may be to use `xhost'.\n",
7273 error ("Cannot connect to X server %s", SDATA (display)); 7271 error ("Cannot connect to X server %s", SDATA (display));
7274 } 7272 }
7275 7273
7276 XSETFASTINT (Vwindow_system_version, 11);
7277 return Qnil; 7274 return Qnil;
7278} 7275}
7279 7276