[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic e182a87d69 315/333: Fix broken creation of direc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic e182a87d69 315/333: Fix broken creation of directory |
Date: |
Tue, 27 Feb 2024 13:00:49 -0500 (EST) |
branch: externals/lentic
commit e182a87d6966532a19d5b1e3643e4bbaf3db4f39
Author: Phillip Lord <phillip.lord@russet.org.uk>
Commit: Phillip Lord <phillip.lord@russet.org.uk>
Fix broken creation of directory
Using the name of the file rather than the name of the directory, which
was exactly wrong. Slight refactor to make lentic-script--lentic-file-2
pure.
---
lentic-script.el | 12 ++++++++----
test/lentic-script-test.el | 2 +-
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/lentic-script.el b/lentic-script.el
index cd668c5052..d0164f88dd 100644
--- a/lentic-script.el
+++ b/lentic-script.el
@@ -48,7 +48,7 @@
(setq lentic-init init)))))
t)
-(defun lentic-script--lentic-file-1 (file)
+(defun lentic-script--lentic-file-2 (file)
(concat
lentic-script-temp-location
(substring
@@ -56,12 +56,15 @@
1)
".org"))
-(defun lentic-script-lentic-file ()
+(defun lentic-script--lentic-file-1 (file)
(let ((l
- (lentic-script--lentic-file-1 (buffer-file-name))))
- (make-directory (file-name-nondirectory l) t)
+ (lentic-script--lentic-file-2 file)))
+ (make-directory (file-name-directory l) t)
l))
+(defun lentic-script-lentic-file ()
+ (lentic-script--lentic-file-1 (buffer-file-name)))
+
;;;###autoload
(defun lentic-python-script-init ()
(lentic-org-python-oset
@@ -97,6 +100,7 @@
:comment "-- "
:comment-stop "#\\\+BEGIN_SRC lua"
:comment-start "#\\\+END_SRC"
+ :case-fold-search nil
:lentic-file
(lentic-script-lentic-file)))
diff --git a/test/lentic-script-test.el b/test/lentic-script-test.el
index 1a4c089dae..34065d72bf 100644
--- a/test/lentic-script-test.el
+++ b/test/lentic-script-test.el
@@ -33,7 +33,7 @@
(should
(assess=
"/tmp/home/phillord/file.org"
- (lentic-script--lentic-file-1
+ (lentic-script--lentic-file-2
"/home/phillord/file.py"))))
- [elpa] externals/lentic 597a717ac6 316/333: Support for external publishing, add include dir, (continued)
- [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, 2024/02/27
- [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 <=
- [elpa] externals/lentic 2bce4eeb78 333/333: Minor cosmetic changes to silence compiler warnings, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2e74877cb7 311/333: Update for Emacs-25 org-mode, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 88877628d9 294/333: Rework doc start location., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic b1596a3a02 327/333: Fix lentic-script-conf-test, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8745235908 317/333: Disable postamble in output HTML, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 0cc6568796 320/333: Add new mechanism for detection of skew., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic fa3b9bcbda 282/333: Move var declaration inside source markers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic ed1d792d9f 286/333: Depend on melpa-stable only., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic fc44aa8c96 271/333: Change symbol names to chunk., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 17b82d8e29 150/333: Merge branch 'expt/incremental-whitelist', ELPA Syncer, 2024/02/27