[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic 1ce36f1ab6 144/333: More linked->lentic renames.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic 1ce36f1ab6 144/333: More linked->lentic renames. |
Date: |
Tue, 27 Feb 2024 13:00:20 -0500 (EST) |
branch: externals/lentic
commit 1ce36f1ab6fccc7e3aae64187c7a7bd589769e76
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
More linked->lentic renames.
---
examples/test-exact.txt | 11 ++++++----
lentic-asciidoc.el | 10 ++++-----
lentic-latex-code.el | 4 ++--
lentic-org.el | 12 +++++------
lentic.el | 56 ++++++++++++++++++++++++-------------------------
test/lentic-test.el | 5 ++---
6 files changed, 50 insertions(+), 48 deletions(-)
diff --git a/examples/test-exact.txt b/examples/test-exact.txt
index ba8e071bf5..785bf02923 100644
--- a/examples/test-exact.txt
+++ b/examples/test-exact.txt
@@ -1,6 +1,9 @@
-Now this is , he it ias sort of working, but clearly, this is not an
-exacty science.Actually.
+Now this is , he it ias sort of working, but clearly, this is not an exacty
+science.Actually. so what is happening here...because as far as I can see,
+this is bollocksaaa I wonder what if we do the same will happen. Hmm, it all
+looks pretty good to me. What happens. Well, that is pretty
+
+Afdsafdsathis is workhfdsais this workingwell, it seems to be sthis all sall
+looks pre. We are
-I wonder what if we do the same will happen. Hmm, it all looks pretty good to
me.
-What happens. Well, that is pretty
diff --git a/lentic-asciidoc.el b/lentic-asciidoc.el
index 5b39a72b48..7c7c63141d 100644
--- a/lentic-asciidoc.el
+++ b/lentic-asciidoc.el
@@ -24,7 +24,7 @@
;;; Commentary:
;;
-;; Linked buffers with asciidoc [source] blocks.
+;; Lentic buffers with asciidoc [source] blocks.
;;; Code:
(require 'lentic-block)
@@ -34,7 +34,7 @@
(lentic-commented-asciidoc-configuration
"lb-commented-clojure asciidoc"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name)) ".adoc")
@@ -51,7 +51,7 @@
(lentic-uncommented-asciidoc-configuration
"lb-uncommented-clojure-asciidoc"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name)) ".clj")
@@ -69,14 +69,14 @@
((srctags :initarg :srctags
:documentation "Language tags in source block"
:initform '("clojure" "lisp")))
- "Linked buffer config for asciidoc and other code.")
+ "Lentic buffer config for asciidoc and other code.")
(defclass lentic-uncommented-asciidoc-configuration
(lentic-uncommented-block-configuration)
((srctags :initarg :srctags
:documentation "Language tags in source block"
:initform '("clojure" "lisp")))
- "Linked buffer config for asciidoc and other code")
+ "Lentic buffer config for asciidoc and other code")
(defun lentic-splitter (l)
diff --git a/lentic-latex-code.el b/lentic-latex-code.el
index 5082aa64c6..17240d1ccb 100644
--- a/lentic-latex-code.el
+++ b/lentic-latex-code.el
@@ -40,7 +40,7 @@
(lentic-commented-block-configuration
"lb-commented clojure latex"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name)) ".tex")
@@ -60,7 +60,7 @@
(lentic-uncommented-block-configuration
"lb-commented latex clojure"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name)) ".clj")
diff --git a/lentic-org.el b/lentic-org.el
index 0a3533fd98..c130ab45a7 100644
--- a/lentic-org.el
+++ b/lentic-org.el
@@ -74,7 +74,7 @@
(lentic-uncommented-block-configuration
"lb-org-to-el"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
@@ -94,7 +94,7 @@
(lentic-commented-block-configuration
"lb-el-to-org"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
@@ -312,7 +312,7 @@
(lentic-org-to-orgel-configuration
"lb-orgel-to-el"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
@@ -375,7 +375,7 @@
;; we don't really need a file and could cope without, but org mode assumes
;; that the buffer is file name bound when it exports. As it happens, this
;; also means that file saving is possible which in turn saves the el file
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
@@ -403,7 +403,7 @@
(lentic-uncommented-block-configuration
"lb-org-to-clojure"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
@@ -426,7 +426,7 @@
(lentic-commented-block-configuration
"lb-clojure-to-org"
:this-buffer (current-buffer)
- :linked-file
+ :lentic-file
(concat
(file-name-sans-extension
(buffer-file-name))
diff --git a/lentic.el b/lentic.el
index 7b3cf2b356..afa88cebb3 100644
--- a/lentic.el
+++ b/lentic.el
@@ -80,8 +80,8 @@
;; lentic buffers are configurable in a large number of ways. It is possible
;; to control the nature of the transformation, the default buffer name that a
;; lentic buffer takes, and the file location (or not) of the lentic buffer.
-;; For this release of lentic currently, each buffer can only be linked to a
-;; single buffer, although this restriction will be removed in later versions.
+;; For this release of lentic currently, each buffer can have a single lentic
+;; buffer, although this restriction will be removed in later versions.
;; Configuration of a buffer happens in one of two places. First,
;; `lentic-init' is run when a lentic buffer is first created. This
@@ -154,7 +154,7 @@ This should set up `lentic-config' appropriately.")
(make-variable-buffer-local 'lentic-init)
;; In future versions, this may get turned into a list so that we can have
-;; multiple linked buffers, but it is not clear how the user interface
+;; multiple lentic buffers, but it is not clear how the user interface
;; functions such as `lentic-swap-window' would work now.
(defvar lentic-config nil
"Configuration for lentic.
@@ -173,7 +173,7 @@ of mode in the current buffer.")
(defun lentic-config-name (buffer)
"Given BUFFER, return a name for the configuration object."
- (format "linked: %s" buffer))
+ (format "lentic: %s" buffer))
;; #+end_src
;; ** Base Configuration
@@ -236,12 +236,12 @@ or create it if it does not exist."
;; #+begin_src emacs-lisp
(defclass lentic-default-configuration (lentic-configuration)
- ((linked-file
+ ((lentic-file
:initform nil
- :initarg :linked-file)
- (linked-mode
+ :initarg :lentic-file)
+ (lentic-mode
:initform 'normal-mode
- :initarg :linked-mode))
+ :initarg :lentic-mode))
"Configuration which maintains two lentics with the same contents.")
(defun lentic-insertion-string-transform (string)
@@ -256,18 +256,18 @@ Given a `lentic-configuration' object, create the lentic
appropriate for that configurationuration. It is the callers
responsibility to check that buffer has not already been
created."
- ;; make sure the world is ready for linked buffers
+ ;; make sure the world is ready for lentic buffers
(lentic-ensure-hooks)
;; create lentic
(let* ((this-buffer
(lentic-this conf))
(that-buffer
(get-buffer-create
- (format "*linked: %s*"
+ (format "*lentic: %s*"
(buffer-name
this-buffer))))
- (sec-mode (oref conf :linked-mode))
- (sec-file (oref conf :linked-file)))
+ (sec-mode (oref conf :lentic-mode))
+ (sec-file (oref conf :lentic-file)))
;; make sure this-buffer knows about that-buffer
(oset conf :that-buffer that-buffer)
;; insert the contents
@@ -355,7 +355,7 @@ see `lentic-init' for details."
;; Hooks into Emacs change system, some basic window management tools and so
on.
;; #+begin_src emacs-lisp
-(defmacro lentic-when-linked (&rest body)
+(defmacro lentic-when-lentic (&rest body)
"Evaluate BODY when in a lentic."
(declare (debug let))
`(when (and
@@ -384,7 +384,7 @@ see `lentic-init' for details."
(defmacro lentic-log (&rest rest)
"Log REST."
`(when lentic-log
- (lentic-when-linked
+ (lentic-when-lentic
(let ((msg
(concat
(format ,@rest)
@@ -437,7 +437,7 @@ repeated errors.")
(defvar lentic-saving-p nil)
(defun lentic-after-save-hook ()
- (lentic-when-linked
+ (lentic-when-lentic
;; don't want to recurse!
(when (not lentic-saving-p)
(let ((lentic-saving-p t))
@@ -458,7 +458,7 @@ repeated errors.")
(defun lentic-post-command-hook-1 ()
"Update point according to config."
(progn
- (lentic-when-linked
+ (lentic-when-lentic
(lentic-update-point lentic-config))))
(defun lentic-hook-fail (err hook)
@@ -473,7 +473,7 @@ ERR is the error. HOOK is the hook type."
(princ (error-message-string err)))
(select-window (get-buffer-window "*lentic-fail*")))
-(defun lentic-move-linked-window ()
+(defun lentic-move-lentic-window ()
"Move the lentic into the current window.
If the lentic is currently being displayed in another
window, then the current-buffer will be moved into that window.
@@ -491,11 +491,11 @@ See also `lentic-swap-buffer-windows'."
before-window-start)
(goto-char before-window-point)))
-(defun lentic-swap-linked-window ()
+(defun lentic-swap-lentic-window ()
"Swap the window of the buffer and lentic.
If both are current displayed, swap the windows they
are displayed in, which keeping current buffer.
-See also `lentic-move-linked-window'."
+See also `lentic-move-lentic-window'."
(interactive)
(lentic-swap-buffer-windows
(current-buffer)
@@ -534,7 +534,7 @@ A and B are the buffers."
(lentic-create lentic-config))
(defun lentic-create-in-selected-window ()
- "Create a linked buffer and move it to the current window."
+ "Create a lentic buffer and move it to the current window."
(interactive)
(let ((before-window-start
(window-start (get-buffer-window)))
@@ -550,7 +550,7 @@ A and B are the buffers."
(goto-char before-window-point)))
(defun lentic-split-window-below ()
- "Create a linked buffer in a new window below."
+ "Create a lentic buffer in a new window below."
(interactive)
(lentic-ensure-init)
(set-window-buffer
@@ -558,7 +558,7 @@ A and B are the buffers."
(lentic-create lentic-config)))
(defun lentic-split-window-right ()
- "Create a linked buffer in a new window right."
+ "Create a lentic buffer in a new window right."
(interactive)
(lentic-ensure-init)
(set-window-buffer
@@ -583,7 +583,7 @@ Errors are handled. REST is currently just ignored."
(defun lentic-after-change-function-1 (start stop length-before)
"run change update according to `lentic-config'.
rest is currently just ignored."
- (lentic-when-linked
+ (lentic-when-lentic
(lentic-log
"after-change (start, stop, length-before): %s,%s,%s"
start stop length-before)
@@ -603,7 +603,7 @@ rest is currently just ignored."
(not lentic-emergency-debug))
(condition-case err
(progn
- (lentic-when-linked
+ (lentic-when-lentic
(oset lentic-config :last-change-start start)
(oset lentic-config
:last-change-start-converted
@@ -732,7 +732,7 @@ same top-left location. Update details depend on CONF."
;; #+begin_src emacs-lisp
(defun lentic-toggle-auto-sync-point ()
(interactive)
- (lentic-when-linked
+ (lentic-when-lentic
(oset lentic-config :sync-point
(not (oref lentic-config :sync-point)))))
@@ -740,10 +740,10 @@ same top-left location. Update details depend on CONF."
"Keymap for lentic-minor-mode")
(define-key lentic-mode-map
- (kbd "C-c ,s") 'lentic-swap-linked-window)
+ (kbd "C-c ,s") 'lentic-swap-lentic-window)
(define-key lentic-mode-map
- (kbd "C-c ,h") 'lentic-move-linked-window)
+ (kbd "C-c ,h") 'lentic-move-lentic-window)
(define-minor-mode lentic-mode
:lighter "lb"
@@ -755,7 +755,7 @@ same top-left location. Update details depend on CONF."
'(["Create Here" lentic-create-in-selected-window]
["Split Below" lentic-split-window-below]
["Split Right" lentic-split-window-right]
- ["Move Here" lentic-move-linked-window :active lentic-config]
+ ["Move Here" lentic-move-lentic-window :active lentic-config]
["Swap" lentic-swap-buffer-windows :active lentic-config]))
(defun lentic-insert-file-local (init-function)
diff --git a/test/lentic-test.el b/test/lentic-test.el
index fbecac2f22..8fb039ea7c 100644
--- a/test/lentic-test.el
+++ b/test/lentic-test.el
@@ -84,7 +84,7 @@
(equal 'normal-mode
(oref
(lentic-default-configuration "bob")
- :linked-mode))))
+ :lentic-mode))))
(ert-deftest lentic-simple ()
(should
@@ -326,7 +326,6 @@ This mostly checks my test machinary."
;; Editing the header one lines causes problems
(ert-deftest orgel-org-incremental-on-header-one ()
- :expected-result :failed
(should
(lentic-test-clone-and-change-equal
'lentic-orgel-org-init
@@ -343,7 +342,7 @@ This mostly checks my test machinary."
;; delete the "*" character
(delete-char -1)
;; insert the * character and a space
- (insert "* ")
+ (insert "*")
;; remove the "a")
(search-forward "a")
(delete-char -1)
- [elpa] externals/lentic 97b939ee15 266/333: Reimplement insert-file-local using core function., (continued)
- [elpa] externals/lentic 97b939ee15 266/333: Reimplement insert-file-local using core function., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 36861bdf9c 331/333: Add lentic-markdown, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8e4a26d861 300/333: Example files added, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 92af154760 264/333: Enables tags on section headers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic f5136cd683 291/333: Update copyright years., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 0f5464880d 295/333: Provide org-mode start up hook., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 5cdfda936c 305/333: Ensure script directory tree is created, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 7f967d7263 064/333: New test for orgel to org transformation., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a342e3c6c4 099/333: Incremental test framework added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 4e6eaff5e3 143/333: Fixes a bug during deletion., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 1ce36f1ab6 144/333: More linked->lentic renames.,
ELPA Syncer <=
- [elpa] externals/lentic 2f9d3fbd7f 153/333: All files are now orgel documented., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 406a36bae2 151/333: All autoloads added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 3b1d0cb77a 154/333: Split lentic.el code into -mode and -dev., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2f141ed978 201/333: Deprecated Emacs-24.3., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 3c7736b52d 221/333: Move to releases only after m-buffer update., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic b625f8a6bc 217/333: Move to load-relative for tests., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 51f0f6257c 226/333: Back to melpa-stable in preparation for new release., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9a56901f68 249/333: Ensure lentic-mode is loaded during test., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic d5268570c0 289/333: Fix typo in lentic-when-with-current-buffer., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 97c01a0a02 310/333: First line fixup now works from org to lua/sh, ELPA Syncer, 2024/02/27