Parcourir la source

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.
Brad King il y a 9 ans
Parent
commit
5f99e61cad
1 fichiers modifiés avec 9 ajouts et 8 suppressions
  1. 9 8
      Auxiliary/cmake-mode.el

+ 9 - 8
Auxiliary/cmake-mode.el

@@ -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))
     )
   )