mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
Fix macro hygiene issues
This commit is contained in:
parent
4c3168d53f
commit
f5d852dc6d
2 changed files with 9 additions and 7 deletions
|
@ -175,7 +175,7 @@ returned."
|
|||
(declare (indent 3) (debug (symbolp symbolp form body)))
|
||||
`(let ((,beg (point-marker))
|
||||
(,end (point-marker)))
|
||||
(set-marker-insertion-type end t)
|
||||
(set-marker-insertion-type ,end t)
|
||||
(unwind-protect
|
||||
(prog1 ,bodyform ,@afterforms)
|
||||
(set-marker ,beg nil)
|
||||
|
|
|
@ -92,12 +92,14 @@ find the display in the REPL buffer. See
|
|||
"Handle control codes in any produced output generated by evaluating BODY.
|
||||
After BODY is evaluated, call `jupyter-handle-control-codes'
|
||||
on the region inserted by BODY."
|
||||
`(jupyter-with-insertion-bounds
|
||||
beg end (progn ,@body)
|
||||
;; Handle continuation from previous messages
|
||||
(when (eq (char-before beg) ?\r)
|
||||
(move-marker beg (1- beg)))
|
||||
(jupyter-handle-control-codes beg end)))
|
||||
(let ((beg (make-symbol "beg"))
|
||||
(end (make-symbol "end")))
|
||||
`(jupyter-with-insertion-bounds
|
||||
,beg ,end (progn ,@body)
|
||||
;; Handle continuation from previous messages
|
||||
(when (eq (char-before ,beg) ?\r)
|
||||
(move-marker ,beg (1- ,beg)))
|
||||
(jupyter-handle-control-codes ,beg ,end))))
|
||||
|
||||
;;; Fontificiation routines
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue