[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic 497a4eda39 267/333: Checks lentic-config before
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic 497a4eda39 267/333: Checks lentic-config before re-running init. |
Date: |
Tue, 27 Feb 2024 13:00:43 -0500 (EST) |
branch: externals/lentic
commit 497a4eda39caa7767553a2ae59b42502e93614bb
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Checks lentic-config before re-running init.
Lentic-mode now inits all only if lentic-config is nil, or if it is
forced. The message now reports the number of buffers created, rather
than the number that actually exist.
Closes #31
---
lentic-mode.el | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/lentic-mode.el b/lentic-mode.el
index f11988977d..4e9de58a18 100644
--- a/lentic-mode.el
+++ b/lentic-mode.el
@@ -108,11 +108,15 @@ Lentics are listed in the same order as in fundamental
(bury-buffer before-buffer)))
;;;###autoload
-(defun lentic-mode-create-from-init ()
- (interactive)
- (let ((all (lentic-init-all-create)))
- (message "Created %s buffers"
- (length all))))
+(defun lentic-mode-create-from-init (&optional force)
+ (interactive "P")
+ (if (and lentic-config (not force))
+ (message "Already initialized. C-u to force.")
+ (let ((before (length lentic-config))
+ (all (lentic-init-all-create)))
+ (message "Created %s buffers"
+ (- (length all)
+ before)))))
;;;###autoload
- [elpa] externals/lentic 3a2df0f8c5 263/333: Image added to README, (continued)
- [elpa] externals/lentic 3a2df0f8c5 263/333: Image added to README, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a1cb301c84 258/333: Convert lentic-blk-marker-boundaries to method., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic d50b1924f3 257/333: Prepare for next iteration., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 83e75f48a6 251/333: lentic-dev now adds a "pulse" to the dirty region., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8885bfcde8 277/333: 0.10 Release, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic b2d664c72d 278/333: Videos for README., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 1f7d929f37 303/333: Fix header line of lentic-script, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 0e6e64e0b6 306/333: Autoload lentic-script-hook, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic af2e447a65 287/333: Run installation test on every commit., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 597a717ac6 316/333: Support for external publishing, add include dir, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 497a4eda39 267/333: Checks lentic-config before re-running init.,
ELPA Syncer <=
- [elpa] externals/lentic 4f6d564988 301/333: Add support for out-of-the-box script files., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8e0d0b1205 325/333: Fix error when swapping is not possible., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 02073c4f1c 285/333: Remove buffer-list-update-hook., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e395e44723 270/333: lentic-block changed to lentic-chunk., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic f1f77812b0 330/333: Add markdown example, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e3c56fbf11 307/333: Migrate all tests to assess, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e6d013bf57 329/333: Fix missing files, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e5ee8287b2 328/333: Add 26.1 test, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e182a87d69 315/333: Fix broken creation of directory, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2bce4eeb78 333/333: Minor cosmetic changes to silence compiler warnings, ELPA Syncer, 2024/02/27