diff options
author | Brad King <brad.king@kitware.com> | 2016-08-01 19:15:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-01 19:15:39 (GMT) |
commit | 5f99e61cadada755ad8c19ec1f114079c660b400 (patch) | |
tree | 170f9da4f81324e9abfbce9e7828922b47a62703 /Auxiliary | |
parent | b1cd292335d4d760d2bbd5062e21fdb6d24fcbd8 (diff) | |
parent | 82388543d2b7984fb98583817a3683f789c84cdd (diff) | |
download | CMake-5f99e61cadada755ad8c19ec1f114079c660b400.zip CMake-5f99e61cadada755ad8c19ec1f114079c660b400.tar.gz CMake-5f99e61cadada755ad8c19ec1f114079c660b400.tar.bz2 |
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.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Auxiliary/cmake-mode.el b/Auxiliary/cmake-mode.el index 20def8b..f29b59b 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)) ) ) |