summaryrefslogtreecommitdiff
path: root/Auxiliary
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-01 15:15:39 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2016-08-01 15:15:39 -0400
commit5f99e61cadada755ad8c19ec1f114079c660b400 (patch)
tree170f9da4f81324e9abfbce9e7828922b47a62703 /Auxiliary
parentb1cd292335d4d760d2bbd5062e21fdb6d24fcbd8 (diff)
parent82388543d2b7984fb98583817a3683f789c84cdd (diff)
downloadcmake-5f99e61cadada755ad8c19ec1f114079c660b400.tar.gz
Merge topic 'emacs-mode-compilation-warning'
82388543 cmake-mode.el: Replace use of obsolete function (since Emacs 24.3). ca684ccb cmake-mode.el: Fix byte-compilation warnings.
Diffstat (limited to 'Auxiliary')
-rw-r--r--Auxiliary/cmake-mode.el17
1 files changed, 9 insertions, 8 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el
index 20def8be26..f29b59bd70 100644
--- a/Auxiliary/cmake-mode.el
+++ b/Auxiliary/cmake-mode.el
@@ -114,6 +114,14 @@ set the path with these commands:
;------------------------------------------------------------------------------
;;
+;; Indentation increment.
+;;
+(defcustom cmake-tab-width 2
+ "Number of columns to indent cmake blocks"
+ :type 'integer
+ :group 'cmake)
+
+;;
;; Line indentation function.
;;
(defun cmake-indent ()
@@ -225,13 +233,6 @@ the indentation. Otherwise it retains the same position on the line"
;;
(defvar cmake-mode-hook nil)
-;;
-;; Indentation increment.
-;;
-(defcustom cmake-tab-width 2
- "Number of columns to indent cmake blocks"
- :type 'integer)
-
;------------------------------------------------------------------------------
;; For compatibility with Emacs < 24
@@ -270,7 +271,7 @@ optional argument topic will be appended to the argument list."
(save-selected-window
(select-window (display-buffer buffer 'not-this-window))
(cmake-mode)
- (toggle-read-only t))
+ (read-only-mode 1))
)
)