[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt 609f781b3a 165/323: Fix usages of when-let
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt 609f781b3a 165/323: Fix usages of when-let |
Date: |
Thu, 9 Mar 2023 10:58:27 -0500 (EST) |
branch: externals/beardbolt
commit 609f781b3afbd4365c0a9691c5745c0c649ff2ad
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Fix usages of when-let
when-let was not defined in emacs25
---
rmsbolt.el | 48 ++++++++++++++++++++++++------------------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 4e693d52e3..404cc9ff7f 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -648,34 +648,34 @@ https://github.com/derickr/vld"
;;;;; Language Integrations
(defun rmsbolt--parse-compile-commands (comp-cmds file)
"Parse COMP-CMDS and extract a compilation dir and command for FILE."
- (when-let* ((json-object-type 'alist)
- (json-array-type 'vector)
- (cmds (json-read-file comp-cmds))
- (stripped-file (file-name-nondirectory file))
- (entry (cl-find-if
- (lambda (elt)
- (string=
- stripped-file
- (file-name-nondirectory
- (alist-get 'file elt ""))))
- cmds))
- (dir (alist-get 'directory entry))
- (cmd (alist-get 'command entry)))
+ (when-let ((json-object-type 'alist)
+ (json-array-type 'vector)
+ (cmds (json-read-file comp-cmds))
+ (stripped-file (file-name-nondirectory file))
+ (entry (cl-find-if
+ (lambda (elt)
+ (string=
+ stripped-file
+ (file-name-nondirectory
+ (alist-get 'file elt ""))))
+ cmds))
+ (dir (alist-get 'directory entry))
+ (cmd (alist-get 'command entry)))
(list dir cmd)))
(defun rmsbolt--handle-c-compile-cmd (src-buffer)
"Handle compile_commands.json for c/c++ for a given SRC-BUFFER.
return t if successful."
- (when-let* ((defaults (buffer-local-value 'rmsbolt--default-variables
src-buffer))
- (default-dir (cl-find 'rmsbolt-default-directory defaults))
- (default-cmd (cl-find 'rmsbolt-command defaults))
- (ccj "compile_commands.json")
- (compile-cmd-file
- (locate-dominating-file
- (buffer-file-name src-buffer)
- ccj))
- (compile-cmd-file (expand-file-name ccj compile-cmd-file))
- (to-ret (rmsbolt--parse-compile-commands
- compile-cmd-file (buffer-file-name src-buffer))))
+ (when-let ((defaults (buffer-local-value 'rmsbolt--default-variables
src-buffer))
+ (default-dir (cl-find 'rmsbolt-default-directory defaults))
+ (default-cmd (cl-find 'rmsbolt-command defaults))
+ (ccj "compile_commands.json")
+ (compile-cmd-file
+ (locate-dominating-file
+ (buffer-file-name src-buffer)
+ ccj))
+ (compile-cmd-file (expand-file-name ccj compile-cmd-file))
+ (to-ret (rmsbolt--parse-compile-commands
+ compile-cmd-file (buffer-file-name src-buffer))))
(with-current-buffer src-buffer
(setq-local rmsbolt-default-directory (cl-first to-ret))
(setq-local rmsbolt-command
- [elpa] externals/beardbolt 495d481a94 136/323: Move rmsbolt-command initialization to end, (continued)
- [elpa] externals/beardbolt 495d481a94 136/323: Move rmsbolt-command initialization to end, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 39055a3dc4 133/323: Fix disassembly of partial files in C/C++, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 27e7bb714f 139/323: Add suppport for PHP, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 4b6abc5ef8 129/323: Optimize rmsbolt-process-src-asm-lines, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 67238e0272 138/323: Add rmsbolt-default-directory customization, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9b2c85397c 149/323: Add texinfo version of docs, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ec99a1aa31 146/323: Attempt to fix whitespace clearing on hot recompiles, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5e389a88d9 152/323: Add rmsbolt splitter for splitting and mutating commands, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0fbc3d3f09 153/323: Enable compile_commands.json parsing for c/cpp, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 743f9a68ec 158/323: Handle non absolute .file paths, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 609f781b3a 165/323: Fix usages of when-let,
ELPA Syncer <=
- [elpa] externals/beardbolt c9f3b839e9 156/323: Add support for D, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt a4f794666d 160/323: Add D to commentary, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b7d318dfe1 178/323: Add Swift language support, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 98e984493b 170/323: Prevent hot recompile on deleted buffers, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c655e2af39 186/323: Add check for dead buffers in compilation finish fn, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d51e71f894 188/323: Use special named buffer for compilation, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 712981e16c 187/323: Remove langauges godbolt has added support for, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ff496660cc 205/323: Migrate irc channel to libera, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 42edd955ae 201/323: Move filename massaging out of hot loop, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 972e6f41a2 207/323: Merge branch 'faerryn-master-patch-16796' into 'master', ELPA Syncer, 2023/03/09