emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/beardbolt df7451ee35 191/323: Avoid insert on new file


From: ELPA Syncer
Subject: [elpa] externals/beardbolt df7451ee35 191/323: Avoid insert on new file creation
Date: Thu, 9 Mar 2023 10:58:30 -0500 (EST)

branch: externals/beardbolt
commit df7451ee35819bf8522c82f069998ffbaebe5ad6
Author: Jay Kamat <jaygkamat@gmail.com>
Commit: Jay Kamat <jaygkamat@gmail.com>

    Avoid insert on new file creation
    
    Copying the file before hand and opening it normally saves on insert hooks
---
 rmsbolt.el | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/rmsbolt.el b/rmsbolt.el
index dbe9edfe3b..b3e54006ea 100644
--- a/rmsbolt.el
+++ b/rmsbolt.el
@@ -1556,11 +1556,9 @@ Are you running two compilations at the same time?"))
                             (file-exists-p src-file-name))))
     (if (not src-file-exists)
         (error "Could not find starter files! Are you sure the starter/ folder 
is available? If you want to overide, set `rmsbolt-dir' to your install path")
-      (find-file file-name)
       (unless exists
-        (insert-file-contents
-         src-file-name)
-        (save-buffer))
+        (copy-file src-file-name file-name))
+      (find-file file-name)
       (unless rmsbolt-mode
         (rmsbolt-mode 1)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]