Skip to content
Browse files

Fix "Wrong type argument: markerp, nil" error upon saving

  • Loading branch information...
1 parent be67825 commit 3a637131808810fb29fafd03cd689be6eb237586 @dabrahams committed Jun 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 initsplit.el
View
3 initsplit.el
@@ -280,7 +280,8 @@ Used to remove empty custom-set-* stanzas."
activate compile preactivate)
"Remember the position where custom is about to write its stanza"
(when (boundp (make-local-variable 'initsplit-stanza-position))
- (set-marker initsplit-stanza-position nil))
+ (when (markerp initsplit-stanza-position)
+ (set-marker initsplit-stanza-position nil)))
(setq initsplit-stanza-position (point-marker)))
(defadvice custom-save-variables (around no-empty-stanzas

0 comments on commit 3a63713

Please sign in to comment.
Something went wrong with that request. Please try again.