aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2010-10-22 12:35:31 +0200
committerEli Zaretskii2010-10-22 12:35:31 +0200
commit89baa1df6943eb3e8b4ff2a11b1c3e2463f85849 (patch)
tree18ab4ed1fc4af2305c56aca3f0e9e6256c8f1169 /doc
parentefd498859f416fb49d76dc5b35ea34ef669bf9af (diff)
downloademacs-89baa1df6943eb3e8b4ff2a11b1c3e2463f85849.tar.gz
emacs-89baa1df6943eb3e8b4ff2a11b1c3e2463f85849.zip
Document values of window-system and deprecate its use as predicate.
src/frame.c (Fframep, Fwindow_system): Deprecate use as a predicate. Document all values. src/dispnew.c (syms_of_display) <initial-window-system, window-system>: Deprecate use as a boolean flag. Document all values. src/display.texi (Window Systems): Deprecate use of window-system as a predicate.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/display.texi8
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 2aca9fce5bf..ccbbe1b9c81 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12010-10-22 Eli Zaretskii <eliz@gnu.org>
2
3 * display.texi (Window Systems): Deprecate use of window-system as
4 a predicate.
5
12010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change) 62010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change)
2 7
3 * files.texi (Directory Names): Use \` rather than ^. 8 * files.texi (Directory Names): Use \` rather than ^.
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 71680c56821..ba4cfca0854 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -5878,6 +5878,14 @@ selected frame). The list of possible symbols it returns is the same
5878one documented for the variable @code{window-system} above. 5878one documented for the variable @code{window-system} above.
5879@end defun 5879@end defun
5880 5880
5881 Do @emph{not} use @code{window-system} and
5882@code{initial-window-system} as predicates or boolean flag variables,
5883if you want to write code that works differently on text terminals and
5884graphic displays. That is because @code{window-system} is not a good
5885indicator of Emacs capabilities on a given display type. Instead, use
5886@code{display-graphic-p} or any of the other @code{display-*-p}
5887predicates described in @ref{Display Feature Testing}.
5888
5881@defvar window-setup-hook 5889@defvar window-setup-hook
5882This variable is a normal hook which Emacs runs after handling the 5890This variable is a normal hook which Emacs runs after handling the
5883initialization files. Emacs runs this hook after it has completed 5891initialization files. Emacs runs this hook after it has completed