destructuring-bind => cl-destructuring-bind
This commit is contained in:
parent
c493ad80f4
commit
822c78554f
9 changed files with 10 additions and 10 deletions
|
@ -15,7 +15,7 @@
|
|||
with project-root = (doom-project-root)
|
||||
for buf in buffer-list
|
||||
collect
|
||||
(destructuring-bind (type mode path)
|
||||
(cl-destructuring-bind (type mode path)
|
||||
(with-current-buffer buf
|
||||
(list (concat
|
||||
(let ((buffer-name (buffer-name buf)))
|
||||
|
@ -121,7 +121,7 @@ limit to buffers in the current workspace."
|
|||
"Jump to the file and line of the current task."
|
||||
(let ((location (cadr (split-string x " | ")))
|
||||
(type (car (split-string x " "))))
|
||||
(destructuring-bind (file line) (split-string location ":")
|
||||
(cl-destructuring-bind (file line) (split-string location ":")
|
||||
(with-ivy-window
|
||||
(find-file (expand-file-name file (doom-project-root)))
|
||||
(goto-char (point-min))
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
(defun +evil/reselect-paste ()
|
||||
"Go back into visual mode and reselect the last pasted region."
|
||||
(interactive)
|
||||
(destructuring-bind (_ _ _ beg end &optional _)
|
||||
(cl-destructuring-bind (_ _ _ beg end &optional _)
|
||||
evil-last-paste
|
||||
(evil-visual-make-selection
|
||||
(save-excursion (goto-char beg) (point-marker))
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
(evil-initialize-state 'insert))))
|
||||
|
||||
(defun +file-templates-add (args)
|
||||
(destructuring-bind (regexp trigger mode &optional project-only-p) args
|
||||
(cl-destructuring-bind (regexp trigger mode &optional project-only-p) args
|
||||
(define-auto-insert
|
||||
regexp
|
||||
(vector `(lambda () (+file-templates--expand ,trigger ',mode ,project-only-p))))))
|
||||
|
|
|
@ -56,7 +56,7 @@ Tries xref and falls back to `dumb-jump', then rg/ag, then
|
|||
|
||||
((and (featurep 'evil)
|
||||
evil-mode
|
||||
(destructuring-bind (beg end)
|
||||
(cl-destructuring-bind (beg end)
|
||||
(bounds-of-thing-at-point 'symbol)
|
||||
(evil-goto-definition)
|
||||
(let ((pt (point)))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
repository root."
|
||||
(interactive)
|
||||
(require 'git-link)
|
||||
(destructuring-bind (beg end)
|
||||
(cl-destructuring-bind (beg end)
|
||||
(if buffer-file-name (git-link--get-region))
|
||||
(let ((git-link-open-in-browser t))
|
||||
(git-link (git-link--select-remote) beg end))))
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
(let ((delim "~~"))
|
||||
(if (markdown-use-region-p)
|
||||
;; Active region
|
||||
(destructuring-bind (beg end)
|
||||
(cl-destructuring-bind (beg end)
|
||||
(markdown-unwrap-things-in-region
|
||||
(region-beginning) (region-end)
|
||||
+markdown--regex-del 2 4)
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(interactive)
|
||||
;; TODO Remove evil dependency
|
||||
(save-excursion
|
||||
(destructuring-bind (beg end)
|
||||
(cl-destructuring-bind (beg end)
|
||||
(or (ignore-errors (evil-a-curly))
|
||||
(user-error "No block found"))
|
||||
(if (= (line-number-at-pos beg) (line-number-at-pos end))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue