Permalink
Browse files

comment-normalize-var was always needed

  • Loading branch information...
1 parent 873eec9 commit e324bd872bf9832ed0de1c47d76d1dd78b33f519 Le Wang committed Oct 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 rebox2.el
View
3 rebox2.el
@@ -828,6 +828,9 @@ header.
(make-local-variable 'normal-auto-fill-function)
(setq normal-auto-fill-function 'rebox-do-auto-fill)
(auto-fill-mode 1)
+ ;; we call non-autoloaded functions from newcomment, so this is needed
+ (when comment-start
+ (comment-normalize-vars))
(when (fboundp 'yas/minor-mode)
(add-hook 'yas/before-expand-snippet-hook 'turn-off-rebox nil t)
(add-hook 'yas/after-exit-snippet-hook 'turn-on-rebox nil t))

0 comments on commit e324bd8

Please sign in to comment.