[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/macrostep 9a534df 052/110: Make macrostep-slime-insert mor
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/macrostep 9a534df 052/110: Make macrostep-slime-insert more robust |
Date: |
Sat, 7 Aug 2021 09:18:01 -0400 (EDT) |
branch: elpa/macrostep
commit 9a534df7a47659b2f4cadd565d412b4a32e8372d
Author: Luís Oliveira <loliveira@common-lisp.net>
Commit: Luís Oliveira <loliveira@common-lisp.net>
Make macrostep-slime-insert more robust
* macrostep.el (macrostep-slime-insert): Don't assume `forward-sexp'
knows how to jump over the expansion and store the point after
insertion instead.
---
macrostep.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/macrostep.el b/macrostep.el
index 80ef41a..467d878 100644
--- a/macrostep.el
+++ b/macrostep.el
@@ -926,11 +926,13 @@ expansion will not be fontified. See also
(defun macrostep-slime-insert (expansion)
"Insert EXPANSION at point, indenting to match the current column."
(let* ((indent-string (concat "\n" (make-string (current-column) ? )))
- (expansion (replace-regexp-in-string "\n" indent-string expansion)))
+ (expansion (replace-regexp-in-string "\n" indent-string expansion))
+ (end-point))
(save-excursion
- (insert expansion))
+ (insert expansion)
+ (setq end-point (point)))
(macrostep-slime--propertize-macros)
- (forward-sexp)))
+ (goto-char end-point)))
(defun macrostep-slime--propertize-macros ()
"Put text properties on macros in the form following point."
- [nongnu] branch elpa/macrostep created (now 424e373), ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d847fb2 001/110: Initial upload to github, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 0067091 018/110: fix youtube link in docs, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep ee46132 008/110: Print dotted lists in expansions correctly, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 99d2cc7 020/110: Don't fontify a quoted macro since this won't get expanded normally, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep f8f0424 027/110: Fix header dates, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 9a534df 052/110: Make macrostep-slime-insert more robust,
ELPA Syncer <=
- [nongnu] elpa/macrostep 352b6d2 042/110: Minor improvements to SLIME prototype, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 3062d4c 046/110: Add support for compiler macros, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 874c790 058/110: WIP: smarter SLIME macroexpansion, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep d7991b4 070/110: Track forms using the printer rather than the reader, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep dd14d5c 077/110: Remove unused function `bindings-to-environment`, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep b1c1230 079/110: More tests, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep 4b382cd 088/110: Identify Elisp compiler-macros more selectively, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep a3338d3 104/110: Make test script exit non-zero on failure, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep e537612 106/110: compmiler-macro changed to compiler-macro, ELPA Syncer, 2021/08/07
- [nongnu] elpa/macrostep a5b980e 035/110: Update readme, ELPA Syncer, 2021/08/07