summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-11-02 19:19:02 +0000
committerTom Yu <tlyu@mit.edu>2009-11-02 19:19:02 +0000
commit3f9a584e767baf09ac0bc91359235bea6f9520fe (patch)
tree3b4df4396684e78a2b5dac41c15741450a90bfe3 /src
parent5bf926ba4c8047b5dec75be2277d5f9b78fc04c2 (diff)
downloadkrb5-3f9a584e767baf09ac0bc91359235bea6f9520fe.tar.gz
krb5-3f9a584e767baf09ac0bc91359235bea6f9520fe.tar.xz
krb5-3f9a584e767baf09ac0bc91359235bea6f9520fe.zip
Emacs 21 doesn't have custom-variable-p. Also, adjust to use the
correct controlling variables for older incarnations of whitespace-mode. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23121 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/util/krb5-batch-reindent.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util/krb5-batch-reindent.el b/src/util/krb5-batch-reindent.el
index a22ef7b2c..668c64c85 100644
--- a/src/util/krb5-batch-reindent.el
+++ b/src/util/krb5-batch-reindent.el
@@ -30,13 +30,13 @@
;; Old style whitespace.el uses different variables.
(defun whitespace-old ()
- (let (whitespace-check-indent-whitespace
- whitespace-check-spacetab-whitespace)
+ (let (whitespace-check-buffer-indent
+ whitespace-check-buffer-spacetab)
(if (local-variable-p 'indent-tabs-mode)
(progn
(message "Enabling tab cleanups.")
- (setq whitespace-check-indent-whitespace indent-tabs-mode)
- (setq whitespace-check-spacetab-whitespace t)))
+ (setq whitespace-check-buffer-indent indent-tabs-mode)
+ (setq whitespace-check-buffer-spacetab t)))
(message "Cleaning whitespace...")
(whitespace-cleanup)))
@@ -59,7 +59,7 @@
(if (equal c-indentation-style "krb5")
(c-indent-region (point-min) (point-max)))
- (if (custom-variable-p 'whitespace-style)
+ (if (fboundp 'whitespace-newline-mode)
(whitespace-new)
(whitespace-old))