Puppet: System Administration Automated

Support

Ticket #1160: additional-diff

File additional-diff, 1.0 kB (added by rra, 9 months ago)

Additional patch against puppet.el to apply on top of previous

Line 
1 --- dvl/puppet/ext/emacs/puppet-mode.el 2008-04-03 17:33:01.000000000 -0700
2 +++ lisp/puppet-mode.el 2008-04-01 10:15:01.000000000 -0700
3 @@ -21,14 +21,13 @@
4    :type 'integer :group 'puppet)
5  
6  (defvar puppet-mode-map
7 -  "Key map used in puppet-mode buffers."
8    (let ((map (make-sparse-keymap)))
9      (define-key map "\C-j" 'newline-and-indent)
10      (define-key map "\C-m" 'newline-and-indent)
11 -    map))
12 +    map)
13 +  "Key map used in puppet-mode buffers.")
14  
15 -(defvar puppet-mode-syntax-table nil
16 -  "Syntax table in use in puppet-mode buffers."
17 +(defvar puppet-mode-syntax-table
18    (let ((table (make-syntax-table)))
19      (modify-syntax-entry ?\' "\"" table)
20      (modify-syntax-entry ?\" "\"" table)
21 @@ -46,7 +45,8 @@
22      (modify-syntax-entry ?\} "){" table)
23      (modify-syntax-entry ?\[ "(]" table)
24      (modify-syntax-entry ?\] ")[" table)
25 -    table))
26 +    table)
27 +  "Syntax table in use in puppet-mode buffers.")
28  
29  (defcustom puppet-indent-tabs-mode nil
30    "*Indentation can insert tabs in puppet mode if this is non-nil."