[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scad-mode d39d19f64f 24/47: Save before opening/exporting
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scad-mode d39d19f64f 24/47: Save before opening/exporting |
Date: |
Sat, 12 Nov 2022 13:59:35 -0500 (EST) |
branch: elpa/scad-mode
commit d39d19f64f9dd0f802efd3a0c8dbfdad9830f22d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Save before opening/exporting
---
README.org | 6 ++++--
scad-mode.el | 7 ++++++-
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/README.org b/README.org
index 99333a3963..c4eaef9f87 100644
--- a/README.org
+++ b/README.org
@@ -12,8 +12,10 @@
* Features
- Syntax highlighting
-- Basic completion function
-- Preview rendered model in separate window
+- Basic completion function (press =M-TAB=)
+- Preview rendered model in separate window (press =C-c C-p=)
+- Open buffer in OpenSCAD (press =C-c C-o=)
+- Export buffer with OpenSCAD (press =C-c C-e=)
* Installation
diff --git a/scad-mode.el b/scad-mode.el
index 7f0d37ae75..54e2e1d5be 100644
--- a/scad-mode.el
+++ b/scad-mode.el
@@ -223,13 +223,18 @@ Key bindings:
(defun scad-open ()
"Open current buffer with `scad-command'."
(interactive)
+ (save-buffer)
(call-process scad-command nil 0 nil (buffer-file-name)))
(defun scad-export ()
"Render and export current SCAD model."
(interactive)
+ (save-buffer)
(compile (concat scad-command
- " -o " (expand-file-name (read-file-name "Export to: "))
+ " -o " (expand-file-name (read-file-name
+ "Export to: "
+ nil nil nil
+ (concat (file-name-base
buffer-file-name) ".stl")))
" " buffer-file-name)))
(defvar-local scad--preview-buffer nil)
- [nongnu] elpa/scad-mode 0cb891b232 18/47: Update commentary, (continued)
- [nongnu] elpa/scad-mode 0cb891b232 18/47: Update commentary, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode b038c79b40 19/47: Rebind keys to support tab completion, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 4bf29ec9b1 20/47: Add preview, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 9c9bb9b5aa 01/47: Initial commit, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode fece897e58 04/47: Delete trailing whitespace, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 25f94cc800 03/47: Require Emacs 26, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 53aba7b6e9 09/47: Fix and simplify completion-at-point-function, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 358573e7aa 12/47: Add basic README, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode fff66878d5 17/47: Cleanup hook handling, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode c09d8f97e8 21/47: Automatic refresh can be disabled, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode d39d19f64f 24/47: Save before opening/exporting,
ELPA Syncer <=
- [nongnu] elpa/scad-mode 56a3af8661 37/47: Update keywords, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 710cf2b7ce 45/47: Rename preview output buffer, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 3609ca3ee1 29/47: Use setq-local, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 30e523aa68 05/47: Don't mention Marmalade, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 012e753485 14/47: README: Fix language keyword, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 230302d875 22/47: Update authors, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode ad1254a3de 27/47: Add scad-preview-view, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode ec9bf4c643 30/47: Larger preview image, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 61f306462a 36/47: Version 93.0, ELPA Syncer, 2022/11/12
- [nongnu] elpa/scad-mode 268a8c46d6 38/47: Remove scad-indent-style, instead configure c-default-style, ELPA Syncer, 2022/11/12