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.
This commit is contained in:
Brad King 2016-08-01 15:15:39 -04:00 committed by CMake Topic Stage
commit 5f99e61cad
1 changed files with 9 additions and 8 deletions

View File

@ -113,6 +113,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.
;;
@ -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))
)
)