[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt c009c2df44 130/323: Trim left side of strings
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt c009c2df44 130/323: Trim left side of strings to activate 'starting with period' opt |
Date: |
Thu, 9 Mar 2023 10:58:24 -0500 (EST) |
branch: externals/beardbolt
commit c009c2df443da3c463ad02e1893f353e4dd2202d
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>
Trim left side of strings to activate 'starting with period' opt
Issue #9
---
rmsbolt.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/rmsbolt.el b/rmsbolt.el
index 13fc1856ff..b0d3f10eea 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -675,9 +675,9 @@ Lifted from
https://emacs.stackexchange.com/questions/35936/disassembly-of-a-byt
(labels-used (make-hash-table :test #'equal))
(weak-usages (make-hash-table :test #'equal)))
(dolist (line asm-lines)
- (setq match (and
- (string-match rmsbolt-label-def line)
- (match-string 1 line)))
+ (setq line (string-trim-left line)
+ match (and (string-match rmsbolt-label-def line)
+ (match-string 1 line)))
(when match
(setq current-label match))
(setq match (and (string-match rmsbolt-defines-global line)
@@ -685,8 +685,8 @@ Lifted from
https://emacs.stackexchange.com/questions/35936/disassembly-of-a-byt
(when match
(puthash match t labels-used))
;; When we have no line or a period started line, skip
- (unless (or (= 0 (length line))
- (string-prefix-p "." line)
+ (unless (or (string-empty-p line)
+ (eq (elt line 0) ?.)
(not (string-match-p rmsbolt-label-find line)))
(if (or (not (buffer-local-value 'rmsbolt-filter-directives
src-buffer))
(rmsbolt--has-opcode-p line)
@@ -694,7 +694,6 @@ Lifted from
https://emacs.stackexchange.com/questions/35936/disassembly-of-a-byt
;; Add labels indescriminantly
(dolist (l (rmsbolt-re-seq rmsbolt-label-find line))
(puthash l t labels-used))
-
(when (and current-label
(or (string-match-p rmsbolt-data-defn line)
(rmsbolt--has-opcode-p line)))
- [elpa] externals/beardbolt 26fc524912 083/323: Fix usage of if-let*, (continued)
- [elpa] externals/beardbolt 26fc524912 083/323: Fix usage of if-let*, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 060f170a61 085/323: Clear overlays upon exiting rmsbolt mode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 47e9fa1f59 112/323: Update README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c6831044c6 092/323: Update README, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5c5e0e35db 115/323: Add prototype support for emacs lisp bytecode, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 032b3d8eef 107/323: Add melpa badge, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d1b0f7c2ba 118/323: Fix compilation warnings, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 0ed6a01cd1 119/323: Fix initial run of emacs-lisp disassembler, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 77842a5f78 126/323: Add elisp support to docs, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c00d09a850 122/323: Use hashtables instead of lists as sets for labels used, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt c009c2df44 130/323: Trim left side of strings to activate 'starting with period' opt,
ELPA Syncer <=
- [elpa] externals/beardbolt 9e38f2238b 135/323: Add support for functions as arguments to :compile-cmd, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1cc069a121 132/323: Quote filenames before passing them as shell arguments, ELPA Syncer, 2023/03/09
- [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