diff options
| -rw-r--r-- | lisp/whitespace.el | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/lisp/whitespace.el b/lisp/whitespace.el index 6db1e2b2f3c..ac31a4d820b 100644 --- a/lisp/whitespace.el +++ b/lisp/whitespace.el | |||
| @@ -150,33 +150,26 @@ visited by the buffers.") | |||
| 150 | don't define it." | 150 | don't define it." |
| 151 | `(defvar ,sym ,val ,doc)))) | 151 | `(defvar ,sym ,val ,doc)))) |
| 152 | 152 | ||
| 153 | (if (fboundp 'make-overlay) | 153 | (defalias 'whitespace-make-overlay |
| 154 | (progn | 154 | (if (featurep 'xemacs) 'make-extent 'make-overlay)) |
| 155 | (defalias 'whitespace-make-overlay 'make-overlay) | 155 | (defalias 'whitespace-overlay-put |
| 156 | (defalias 'whitespace-overlay-put 'overlay-put) | 156 | (if (featurep 'xemacs) 'set-extent-property 'overlay-put)) |
| 157 | (defalias 'whitespace-delete-overlay 'delete-overlay) | 157 | (defalias 'whitespace-delete-overlay |
| 158 | (defalias 'whitespace-overlay-start 'overlay-start) | 158 | (if (featurep 'xemacs) 'delete-extent 'delete-overlay)) |
| 159 | (defalias 'whitespace-overlay-end 'overlay-end) | 159 | (defalias 'whitespace-overlay-start |
| 160 | (defalias 'whitespace-mode-line-update 'force-mode-line-update)) | 160 | (if (featurep 'xemacs) 'extent-start 'overlay-start)) |
| 161 | (defalias 'whitespace-make-overlay 'make-extent) | 161 | (defalias 'whitespace-overlay-end |
| 162 | (defalias 'whitespace-overlay-put 'set-extent-property) | 162 | (if (featurep 'xemacs) 'extent-end 'overlay-end)) |
| 163 | (defalias 'whitespace-delete-overlay 'delete-extent) | 163 | (defalias 'whitespace-mode-line-update |
| 164 | (defalias 'whitespace-overlay-start 'extent-start) | 164 | (if (featurep 'xemacs) 'redraw-modeline 'force-mode-line-update)) |
| 165 | (defalias 'whitespace-overlay-end 'extent-end) | 165 | |
| 166 | (defalias 'whitespace-mode-line-update 'redraw-modeline)) | ||
| 167 | |||
| 168 | (if (featurep 'xemacs) | ||
| 169 | (defgroup whitespace nil | ||
| 170 | "Check for and fix five different types of whitespaces in source code." | ||
| 171 | ;; Since XEmacs doesn't have a 'convenience group, use the next best group | ||
| 172 | ;; which is 'editing? | ||
| 173 | :link '(emacs-commentary-link "whitespace.el") | ||
| 174 | :group 'editing) | ||
| 175 | (defgroup whitespace nil | 166 | (defgroup whitespace nil |
| 176 | "Check for and fix five different types of whitespaces in source code." | 167 | "Check for and fix five different types of whitespaces in source code." |
| 177 | :version "21.1" | 168 | :version "21.1" |
| 178 | :link '(emacs-commentary-link "whitespace.el") | 169 | :link '(emacs-commentary-link "whitespace.el") |
| 179 | :group 'convenience)) | 170 | ;; Since XEmacs doesn't have a 'convenience group, use the next best group |
| 171 | ;; which is 'editing? | ||
| 172 | :group (if (featurep 'xemacs) 'editing 'convenience)) | ||
| 180 | 173 | ||
| 181 | (defcustom whitespace-check-leading-whitespace t | 174 | (defcustom whitespace-check-leading-whitespace t |
| 182 | "Flag to check leading whitespace. This is the global for the system. | 175 | "Flag to check leading whitespace. This is the global for the system. |