Skip to content

Commit b082846

Browse files
committed
Don't forget to set-buffer when visully switching indirect-buffers
1 parent 6a8ce63 commit b082846

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

polymode-core.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,6 +1123,7 @@ switch."
11231123
(let ((dedicated-flag (window-dedicated-p)))
11241124
(when dedicated-flag
11251125
(set-window-dedicated-p nil nil))
1126+
(set-buffer new-buffer)
11261127
(set-window-buffer nil new-buffer 'keep-margins)
11271128
(when dedicated-flag
11281129
(set-window-dedicated-p nil dedicated-flag)))
@@ -1138,10 +1139,9 @@ switch."
11381139

11391140
(setq pm/current t)
11401141

1141-
;; fixme: what is the right way to do this ... activate-mark-hook?
1142+
(set-mark mkt)
11421143
(if (not ractive)
11431144
(deactivate-mark)
1144-
(set-mark mkt)
11451145
(activate-mark))
11461146

11471147
(when pm-hide-implementation-buffers

polymode.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ Return the number of chunks of the same type moved over."
244244
(pm-span-to-range span)
245245
(pm-chunk-range (1- (nth 1 span))))))))
246246

247+
(defun polymode-kill-ring-save ()
248+
"Copy current chunk into the kill-ring."
249+
(interactive)
250+
)
251+
247252
(defun polymode-mark-or-extend-chunk ()
248253
"DWIM command to repeatedly mark chunk or extend region.
249254
When no region is active, mark the current span if in body of a

0 commit comments

Comments
 (0)