@@ -416,26 +416,26 @@ With prefix argument NOCOMMIT, do not create a commit."
416416 (today (format-time-string " %F" )))
417417 (goto-char (line-beginning-position ))
418418 (cond
419- (stub
420- (sisyphus--bump-changelog-insert-heading version " UNRELEASED" ))
421- ((equal vers prev)
422- (sisyphus--bump-changelog-insert-heading version today)
423- (setq err " CHANGELOG entry missing; inserting stub" ))
424- ((equal vers version)
425- (when (and (not (equal date today))
426- (match-beginning 2 ))
427- (replace-match today nil t nil 2 )))
428- ((y-or-n-p
429- (format " %s CHANGELOG version is %s , change%s to %s ?"
430- (if prev (format " Previous version is %s , " prev) " " )
431- vers
432- (if prev " latter" " " )
433- version))
434- (delete-region (point ) (line-end-position ))
435- (when (re-search-forward " \\= \n +" nil t )
436- (delete-region (match-beginning 0 ) (match-end 0 )))
437- (sisyphus--bump-changelog-insert-heading version today))
438- ((user-error " Abort" ))))
419+ (stub
420+ (sisyphus--bump-changelog-insert-heading version " UNRELEASED" ))
421+ ((equal vers prev)
422+ (sisyphus--bump-changelog-insert-heading version today)
423+ (setq err " CHANGELOG entry missing; inserting stub" ))
424+ ((equal vers version)
425+ (when (and (not (equal date today))
426+ (match-beginning 2 ))
427+ (replace-match today nil t nil 2 )))
428+ ((y-or-n-p
429+ (format " %s CHANGELOG version is %s , change%s to %s ?"
430+ (if prev (format " Previous version is %s , " prev) " " )
431+ vers
432+ (if prev " latter" " " )
433+ version))
434+ (delete-region (point ) (line-end-position ))
435+ (when (re-search-forward " \\= \n +" nil t )
436+ (delete-region (match-beginning 0 ) (match-end 0 )))
437+ (sisyphus--bump-changelog-insert-heading version today))
438+ ((user-error " Abort" ))))
439439 (user-error " Unsupported CHANGELOG format" )))
440440 (when err
441441 (magit-refresh)
@@ -584,6 +584,9 @@ With prefix argument NOCOMMIT, do not create a commit."
584584(provide 'sisyphus )
585585; ; Local Variables:
586586; ; indent-tabs-mode: nil
587+ ; ; lisp-indent-local-overrides: (
588+ ; ; (cond . 0)
589+ ; ; (interactive . 0))
587590; ; read-symbol-shorthands: (
588591; ; ("and-let" . "cond-let--and-let")
589592; ; ("if-let" . "cond-let--if-let")
0 commit comments