Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/mark.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(move-point (current-point) (pop-buffer-point))
(progn
(set-cursor-mark (current-point) (current-point))
(message "Mark set"))))
(when-real-cursor (message "Mark set")))))

(define-command exchange-point-mark () ()
"Exchange the current cursor position with the marked position."
Expand Down
4 changes: 4 additions & 0 deletions src/cursors.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,7 @@
(if not-lastp
(write-line string out)
(write-string string out))))))))

(defmacro when-real-cursor (&body body)
`(unless (typep (current-point) 'fake-cursor)
,@body))
3 changes: 2 additions & 1 deletion src/internal-packages.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,8 @@
:make-fake-cursor
:delete-fake-cursor
:merge-cursor-killrings
:clear-cursors)
:clear-cursors
:when-real-cursor)
;; typeout.lisp
(:export
:*typeout-mode-keymap*
Expand Down