Skip to content

Commit

Permalink
Merge f5da630 into b2139cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Quiescent committed Aug 4, 2019
2 parents b2139cd + f5da630 commit 46910e1
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions composable.el
Expand Up @@ -284,16 +284,17 @@ For each function named foo a function name composable-foo is created."
(composable-create-composable
(lambda (mark point)
(interactive (list (mark) (point)))
(let ((o (make-overlay composable--start-point point)))

(when (and (> composable--count 1)
composable-repeat-copy-save-last)
(setq last-command 'kill-region))
(copy-region-as-kill mark point)
(setq composable--overlay o)
(overlay-put o 'priority 999)
(overlay-put o 'face 'composable-highlight)
(add-hook 'pre-command-hook 'composable--delete-highlight)))))
(if (null (marker-position composable--start-point))
(call-interactively #'kill-ring-save)
(let ((o (make-overlay composable--start-point point)))
(when (and (> composable--count 1)
composable-repeat-copy-save-last)
(setq last-command 'kill-region))
(copy-region-as-kill mark point)
(setq composable--overlay o)
(overlay-put o 'priority 999)
(overlay-put o 'face 'composable-highlight)
(add-hook 'pre-command-hook 'composable--delete-highlight))))))

(define-minor-mode composable-object-mode
"Composable mode."
Expand Down

0 comments on commit 46910e1

Please sign in to comment.