Fix conditions for before-save check
This commit is contained in:
parent
cc78719844
commit
78a20efb2f
1 changed files with 1 additions and 4 deletions
|
@ -274,10 +274,7 @@ should already have been set up."
|
|||
|
||||
(defun gac--before-save (buffer)
|
||||
(unwind-protect
|
||||
(when (and (buffer-live-p buffer)
|
||||
(or (and gac-automatically-add-new-files-p
|
||||
(not (gac--buffer-is-tracked buffer)))
|
||||
(gac--buffer-has-changes buffer)))
|
||||
(when (buffer-live-p buffer)
|
||||
(with-current-buffer buffer
|
||||
;; with-current-buffer required here because gac-automatically-pull-p
|
||||
;; is buffer-local
|
||||
|
|
Loading…
Add table
Reference in a new issue