diff options
| author | Ravi R Kiran <aine.marina@gmail.com> | 2017-05-26 03:11:45 (GMT) |
|---|---|---|
| committer | Ravi R Kiran <aine.marina@gmail.com> | 2017-05-26 03:11:45 (GMT) |
| commit | 63f7ae8e52ca86b6b2a19130b4c03d289a177176 (patch) | |
| tree | 79fc5c8134bc50fa839b690cfe3703cd2b97a444 /lisp | |
| parent | 2d265497e173c5925dc48fa025212b7f41b1ca30 (diff) | |
| download | dotemacs-63f7ae8e52ca86b6b2a19130b4c03d289a177176.zip dotemacs-63f7ae8e52ca86b6b2a19130b4c03d289a177176.tar.gz dotemacs-63f7ae8e52ca86b6b2a19130b4c03d289a177176.tar.bz2 | |
Handle empty license header
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ravi-init-cpp.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/ravi-init-cpp.el b/lisp/ravi-init-cpp.el index e99e132..58e8eb9 100644 --- a/lisp/ravi-init-cpp.el +++ b/lisp/ravi-init-cpp.el @@ -323,14 +323,14 @@ this to 3 makes header-protection define KIG_MISC_NEWTYPE_H for a file named (save-excursion (let ((start (point-min)) (comment-style 'box) + (license-header (ravi-license-header)) (end) ) - (goto-char start) - (insert (ravi-license-header)) - (setq end (point)) - (comment-region start end) - ) - ) + (when license-header + (goto-char start) + (insert license-header) + (setq end (point)) + (comment-region start end)))) (end-of-buffer) (next-line -1) |
