Skip to content

Commit 3d30649

Browse files
committed
Prefer if-let* to if-let (fixes #881)
1 parent 3a23ab0 commit 3d30649

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lisp/init-lisp.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ there is no current file, eval the current buffer."
136136
(defun sanityinc/trust-current-file ()
137137
"Quickly mark current elisp file as trusted content."
138138
(interactive)
139-
(if-let ((file (and (derived-mode-p 'emacs-lisp-mode)
140-
(buffer-file-name))))
139+
(if-let* ((file (and (derived-mode-p 'emacs-lisp-mode)
140+
(buffer-file-name))))
141141
(progn (push file trusted-content)
142142
(when (bound-and-true-p flymake-mode)
143143
(flymake-mode nil)

lisp/init-minibuffer.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
(if (use-region-p)
3333
(buffer-substring-no-properties
3434
(region-beginning) (region-end))
35-
(if-let ((s (symbol-at-point)))
35+
(if-let* ((s (symbol-at-point)))
3636
(symbol-name s)))))
3737
(consult-ripgrep dir initial))
3838
(sanityinc/no-consult-preview sanityinc/consult-ripgrep-at-point)

0 commit comments

Comments
 (0)