[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic 849dc0dc24 209/333: Default mode is now the same
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic 849dc0dc24 209/333: Default mode is now the same as main buffer. |
Date: |
Tue, 27 Feb 2024 13:00:35 -0500 (EST) |
branch: externals/lentic
commit 849dc0dc2451cd8f63e4bf8ebfddc2b81120aa12
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Default mode is now the same as main buffer.
This makes more sense anyway -- it makes two buffers clones of each
other like indirect buffer
---
lentic.el | 9 +++++----
test/lentic-test.el | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/lentic.el b/lentic.el
index cf1d49315d..2b99399412 100644
--- a/lentic.el
+++ b/lentic.el
@@ -214,7 +214,7 @@ of mode in the current buffer.")
;; #+begin_src emacs-lisp
;;
;; Base Configuration:
-;;
+
(defclass lentic-configuration ()
((this-buffer
:initarg :this-buffer)
@@ -306,7 +306,7 @@ for lots of things at once. Returns OBJ."
:initform nil
:initarg :lentic-file)
(lentic-mode
- :initform 'normal-mode
+ :initform nil
:initarg :lentic-mode))
"Configuration which maintains two lentics with the same contents.")
@@ -332,7 +332,9 @@ created."
(format "*lentic: %s*"
(buffer-name
this-buffer))))
- (sec-mode (oref conf :lentic-mode))
+ (sec-mode
+ (or (oref conf :lentic-mode)
+ major-mode))
(sec-file (oref conf :lentic-file)))
(oset conf :creator t)
;; make sure this-buffer knows about that-buffer
@@ -620,7 +622,6 @@ rest is currently just ignored."
(lentic-update-contents lentic-config
start stop length-before)))
-
;; convert the start position and store it. we need to do this before
;; the change so that we can use the value during clone. after the
;; change, this-buffer and that-buffer will have different contents
diff --git a/test/lentic-test.el b/test/lentic-test.el
index c95a0f6274..31aaeb0337 100644
--- a/test/lentic-test.el
+++ b/test/lentic-test.el
@@ -83,7 +83,7 @@
(ert-deftest lentic-conf ()
(should
- (equal 'normal-mode
+ (equal nil
(oref
(lentic-default-configuration "bob")
:lentic-mode))))
- [elpa] externals/lentic d6ac74dc73 191/333: No error if m-buffer is not present., (continued)
- [elpa] externals/lentic d6ac74dc73 191/333: No error if m-buffer is not present., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 6587a9a0f7 198/333: Missing dev-resource added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a5a001f999 183/333: Lentic-mode menu corrected and extended., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 3431295354 195/333: License updates in some files., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 450de96809 187/333: Remove file on exit., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9c60f116a8 200/333: Lentic top level documentation added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 66a056211c 202/333: Copyright and Documentation updates., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2e290c74e3 207/333: Multiple oset added, and factor constructors., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 71017538d7 211/333: Multiple lentic-buffers are now possible., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 0b8b94003d 214/333: Multiple buffer support for org/orgel., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 849dc0dc24 209/333: Default mode is now the same as main buffer.,
ELPA Syncer <=
- [elpa] externals/lentic 61d6ea4ac5 222/333: Save lentic buffers only when file-associated., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 28a1951c14 216/333: Use default-browser for external view., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8a007a60c5 218/333: Default for init is now a list., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 35db8a038a 219/333: Major-mode functions reworked totally., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 243d2710d1 224/333: Advance m-buffer version to fix point bug., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic bc6e3db510 237/333: Merge branch 'Prathyvsh-patch-1', ELPA Syncer, 2024/02/27
- [elpa] externals/lentic d4d494bb20 232/333: Full documentation for lentic.el., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e97bc286d7 241/333: Lentic-self doc moved to lentic-mode., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 65f94e69d7 242/333: Shorten names of entry points to lentic-doc., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 54290fcc0c 248/333: Documentation Updates., ELPA Syncer, 2024/02/27