summaryrefslogtreecommitdiff
path: root/tests/test-custom-comments-delete-buffer-comments.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-11-14 01:53:30 -0600
committerCraig Jennings <c@cjennings.net>2025-11-14 01:53:30 -0600
commitf7c038a851ffdde8711ef87d28c6f341374d17f5 (patch)
treec33c1286603a3483ffc41acccc55987f82d9c443 /tests/test-custom-comments-delete-buffer-comments.el
parenta0d3be0f8c5c222195776aa746b06aca74c64672 (diff)
downloaddotemacs-f7c038a851ffdde8711ef87d28c6f341374d17f5.tar.gz
dotemacs-f7c038a851ffdde8711ef87d28c6f341374d17f5.zip
feat(ui): Add buffer modification state to color indicators
Change modeline filename and cursor colors to indicate buffer modification status, not just read-only/overwrite state. Color scheme changes: - White (#ffffff): Unmodified writeable buffer - Green (#64aa0f): Modified writeable buffer (unsaved changes) - Red (#f06a3f): Read-only buffer - Gold (#c48702): Overwrite mode active Previously: All writeable buffers were green regardless of modification Now: White when clean, green when dirty (better visual feedback) Implementation: - Updated cj/buffer-status-colors in user-constants.el: - Changed 'normal' → 'unmodified' (white) - Added new 'modified' state (green) - Updated state detection in modeline-config.el: - Now checks (buffer-modified-p) before defaulting to unmodified - Updated cursor color logic in ui-config.el: - Same state detection as modeline for consistency - Added after-change-functions hook for real-time updates - Added after-save-hook to update on save Priority order (highest to lowest): 1. Read-only (red) - takes precedence over everything 2. Overwrite mode (gold) - takes precedence over modified state 3. Modified (green) - buffer has unsaved changes 4. Unmodified (white) - default for clean writeable buffers Tests: - 18 comprehensive tests in test-ui-buffer-status-colors.el - Tests state detection logic and priority order - Tests color constant definitions and mappings - Tests integration with cursor and modeline - All tests passing
Diffstat (limited to 'tests/test-custom-comments-delete-buffer-comments.el')
0 files changed, 0 insertions, 0 deletions