Skip to content

Commit 0b52294

Browse files
committed
Use lexical binding
1 parent 4212972 commit 0b52294

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

magit-stgit.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;;; magit-stgit.el --- StGit extension for Magit
1+
;;; magit-stgit.el --- StGit extension for Magit -*- lexical-binding: t; -*-
22

33
;; Copyright (C) 2011-2019 The Magit Project Contributors
44

@@ -370,8 +370,7 @@ Use ARGS to pass additional arguments."
370370
(not magit-current-popup))
371371
(let ((target (magit-stgit-read-patch "Target patch (default is bottom)")))
372372
(when target
373-
(add-to-list 'args "-t" t)
374-
(add-to-list 'args target t))))
373+
(setq args (append args (list "-t" target))))))
375374
(magit-run-stgit-and-mark-remove patches "sink" args "--" patches))
376375

377376
(magit-define-popup magit-stgit-commit-popup
@@ -425,7 +424,7 @@ Use ARGS to pass additional arguments."
425424
(magit-stgit-refresh-arguments)))
426425
(setq patch (nth 0 patch))
427426
(when patch
428-
(add-to-list 'args (format "--patch=%s" patch) t))
427+
(setq args (append args (list (format "--patch=%s" patch)))))
429428
(magit-run-stgit-async "refresh" args))
430429

431430
;;;###autoload
@@ -482,7 +481,7 @@ Use ARGS to pass additional arguments."
482481
(when (and (called-interactively-p 'any)
483482
(not magit-current-popup)
484483
(and affected-files (y-or-n-p "Spill contents? ")))
485-
(add-to-list 'args "--spill")))
484+
(setq args (append args (list "--spill")))))
486485
(let ((spill (member "--spill" args)))
487486
(when spill
488487
(setq spill (list "--spill")))

0 commit comments

Comments
 (0)