[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/beardbolt ed99686703 267/323: Handle TTYs with unknown
From: |
ELPA Syncer |
Subject: |
[elpa] externals/beardbolt ed99686703 267/323: Handle TTYs with unknown background color |
Date: |
Thu, 9 Mar 2023 10:58:37 -0500 (EST) |
branch: externals/beardbolt
commit ed99686703b3c611435bc7d2ab01c04817ddcf87
Author: João Távora <joaotavora@gmail.com>
Commit: João Távora <joaotavora@gmail.com>
Handle TTYs with unknown background color
---
beardbolt.el | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/beardbolt.el b/beardbolt.el
index 6254097bf3..a994ae4d1d 100644
--- a/beardbolt.el
+++ b/beardbolt.el
@@ -491,14 +491,16 @@ Returns a list (SPEC ...) where SPEC looks like (WHAT FN
CMD)."
((match bb-endblock) (setq reachable-label nil)))
(bb--demangle-overlays demangle-ovs))))
-(defun bb--rainbowize (line-mappings src-buffer)
+(cl-defun bb--rainbowize (line-mappings src-buffer)
(let* ((background-hsl
- (apply #'color-rgb-to-hsl (color-name-to-rgb (face-background
'default))))
+ (ignore-errors
+ (apply #'color-rgb-to-hsl (color-name-to-rgb (face-background
'default)))))
all-ovs
(idx 0)
;; The 1+ helps us keep our hue distance from the actual
;; background color
(total (1+ (hash-table-count line-mappings))))
+ (unless background-hsl (cl-return-from bb--rainbowize nil))
(maphash
(lambda (src-line asm-regions)
(when (not (zerop src-line))
@@ -661,9 +663,9 @@ Interactively, determine LANG from `major-mode'."
(cl-letf (((symbol-function 'hack-local-variables-confirm)
(lambda (_all-vars unsafe-vars risky-vars &rest _)
(when unsafe-vars
- (error "[beardbolt] Some variables unsafe %s" unsafe-vars))
+ (message "[beardbolt] Some variables unsafe %s" unsafe-vars))
(when risky-vars
- (error "[beardbolt] Some variables risky %s" risky-vars)))))
+ (message "[beardbolt] Some variables risky %s" risky-vars)))))
(hack-local-variables))
(let* ((dump-file
(let ((inhibit-message t))
@@ -688,12 +690,7 @@ Interactively, determine LANG from `major-mode'."
(setq-local compilation-skip-threshold 2)
(setq-local compilation-always-kill t)
(setq-local inhibit-message t)
- (add-hook 'compilation-finish-functions
- #'(lambda (&rest whatever)
- (let ((inhibit-message nil))
- (benchmark-progn
- (apply #'bb--handle-finish-compile whatever))))
- nil t)
+ (add-hook 'compilation-finish-functions #'bb--handle-finish-compile nil
t)
(setq bb--source-buffer src-buffer)
(setq bb--compile-spec spec)
(setq bb--dump-file dump-file)
- [elpa] externals/beardbolt 3baf531b55 238/323: Refactor: Move let binding closer to point of usage, (continued)
- [elpa] externals/beardbolt 3baf531b55 238/323: Refactor: Move let binding closer to point of usage, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 24ac775643 246/323: Support Nim 1.6.6, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e634757395 235/323: Remove unneeded lambda, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3514e6f288 237/323: rmsbolt-compile: Only ask to save the current buffer, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ea22302660 258/323: Delete beardbolt-split.el, doesn't justify separate file, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 7619539a86 243/323: starters/elisp: Fix compiler warning, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt d37371b088 249/323: Fix byte-compilation warnings, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 1873e605ab 256/323: Remove unused test/test-helper.el, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ce91938102 261/323: Simplify management of bb--temp-dir, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 264b614805 264/323: * beardbolt.el (bb-compile): Better handling of hack-local-variables., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt ed99686703 267/323: Handle TTYs with unknown background color,
ELPA Syncer <=
- [elpa] externals/beardbolt 715f132d0e 263/323: Started rewriting. Too many changes to mention., ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 325327bc70 273/323: Use inhibit-modification-hooks when modifying buffer, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 5131185d13 272/323: Add a Makefile, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 9aba82b6cd 271/323: Update starter/test files, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt b6958c3e0a 277/323: * beardbolt.el: preserve-library-functions -> preserve-weak-symbols, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 2a11095c75 281/323: Rethink and simplify asm-processing algorithm, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 7ff619c375 283/323: Add some benchmarks, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 11a19cfa66 282/323: Simplify line correspondence and overlay management, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt e18e3ee5ae 289/323: Support compile_commands.json, ELPA Syncer, 2023/03/09
- [elpa] externals/beardbolt 3b7a5bc85a 288/323: Simplify M-x beardbolt-starter. Less tmp directory cruft., ELPA Syncer, 2023/03/09