diff options
| author | Eli Zaretskii | 2010-10-22 12:35:31 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-10-22 12:35:31 +0200 |
| commit | 89baa1df6943eb3e8b4ff2a11b1c3e2463f85849 (patch) | |
| tree | 18ab4ed1fc4af2305c56aca3f0e9e6256c8f1169 /doc | |
| parent | efd498859f416fb49d76dc5b35ea34ef669bf9af (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 8 |
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 @@ | |||
| 1 | 2010-10-22 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * display.texi (Window Systems): Deprecate use of window-system as | ||
| 4 | a predicate. | ||
| 5 | |||
| 1 | 2010-09-05 Alexander Klimov <alserkli@inbox.ru> (tiny change) | 6 | 2010-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 | |||
| 5878 | one documented for the variable @code{window-system} above. | 5878 | one 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, | ||
| 5883 | if you want to write code that works differently on text terminals and | ||
| 5884 | graphic displays. That is because @code{window-system} is not a good | ||
| 5885 | indicator of Emacs capabilities on a given display type. Instead, use | ||
| 5886 | @code{display-graphic-p} or any of the other @code{display-*-p} | ||
| 5887 | predicates described in @ref{Display Feature Testing}. | ||
| 5888 | |||
| 5881 | @defvar window-setup-hook | 5889 | @defvar window-setup-hook |
| 5882 | This variable is a normal hook which Emacs runs after handling the | 5890 | This variable is a normal hook which Emacs runs after handling the |
| 5883 | initialization files. Emacs runs this hook after it has completed | 5891 | initialization files. Emacs runs this hook after it has completed |