emacs.rst
changeset 499 ab94e51efbc6
parent 478 d602ea06bb76
child 500 0126175e6252
equal deleted inserted replaced
498:71ee42742a81 499:ab94e51efbc6
    97 Select region, type C-u M-| sort -u RET.
    97 Select region, type C-u M-| sort -u RET.
    98 
    98 
    99 With transient-mark-mode and delete-selection-mode enabled: select region,
    99 With transient-mark-mode and delete-selection-mode enabled: select region,
   100 type M-| sort -u RET to replace selection with sorted and uniquified lines.
   100 type M-| sort -u RET to replace selection with sorted and uniquified lines.
   101 
   101 
   102 ** Determining running environment.
   102 ** Determining running environment/platform.
   103 
   103 
   104 Check such variable:
   104 Check variables:
   105 
   105 
   106   emacs-major-version
   106   emacs-major-version
   107   emacs-minor-version
   107   emacs-minor-version
   108   window-system - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window.
   108   window-system - 'nil' if in terminal, 'w32' if native Windows build, 'x' if under X Window.
   109   window-system-version
   109   window-system-version
   113   system-time-locale
   113   system-time-locale
   114   system-type
   114   system-type
   115   system-uses-terminfo
   115   system-uses-terminfo
   116   window-size-fixed
   116   window-size-fixed
   117 
   117 
   118 Run such checks:
   118 or check functions:
       
   119 
       
   120   (fboundp ...)             - return t if SYMBOL's function definition is not void
       
   121   (featurep ...)            - returns t if FEATURE is present in this Emacs
       
   122   (display-graphic-p)       - return non-nil if DISPLAY is a graphic display; graphical
       
   123                               displays are those which are capable of displaying several
       
   124                               frames and several different fonts at once
       
   125   (display-multi-font-p)    - same as 'display-graphic-p'
       
   126   (display-multi-frame-p)   - same as 'display-graphic-p'
       
   127   (display-color-p)         - return t if DISPLAY supports color
       
   128   (display-images-p)        - return non-nil if DISPLAY can display images
       
   129   (display-grayscale-p)     - return non-nil if frames on DISPLAY can display shades of gray
       
   130   (display-mouse-p)         - return non-nil if DISPLAY has a mouse available
       
   131   (display-popup-menus-p)   - return non-nil if popup menus are supported on DISPLAY
       
   132   (display-selections-p)    - return non-nil if DISPLAY supports selections
       
   133 
       
   134 Run those checks as below:
   119 
   135 
   120   (when window-system ...)
   136   (when window-system ...)
   121   (when (eq window-system 'x) ...)
   137   (when (eq window-system 'x) ...)
   122   (when (>= emacs-major-version 22) ...)
   138   (when (>= emacs-major-version 22) ...)
   123   (when (fboundp '...) ...)
   139   (when (fboundp '...) ...)