Skip to content

Commit

Permalink
fix wrong close parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
laishulu committed Dec 29, 2024
1 parent 5caf701 commit a611efb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sis.el
Original file line number Diff line number Diff line change
Expand Up @@ -1324,13 +1324,12 @@ If POSITION is not provided, then default to be the current position."
(dolist (hook sis-context-hooks)
(remove-hook hook #'sis-context nil))))
(dolist (trigger sis-context-triggers)
(let ((trigger-fn (eval (nth 0 trigger)))
;; delete advices with property of 'sis--context-trigger-advice
(advice-mapc
(lambda (advice _)
(when (get (intern advice) 'sis--context-trigger-advice)
(advice-remove trigger-fn advice))
trigger-fn))))))))
(let ((trigger-fn (eval (nth 0 trigger))))
;; delete advices with property of 'sis--context-trigger-advice
(advice-mapc (lambda (advice _)
(when (get (intern advice) 'sis--context-trigger-advice)
(advice-remove trigger-fn advice)))
trigger-fn))))))

;;;###autoload
(define-globalized-minor-mode
Expand Down

0 comments on commit a611efb

Please sign in to comment.