Skip to content

Commit 43446d3

Browse files
Don't change current point when switch to org-mode.
1 parent 51ff270 commit 43446d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eaf-browser.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,11 @@ Otherwise send key 'esc' to browser."
671671
(interactive)
672672
(let ((buffer-app-name eaf--buffer-app-name)
673673
(buffer-id eaf--buffer-id))
674-
(org-mode)
674+
(save-excursion
675+
(org-mode)
676+
(outline-show-all))
675677
(set (make-local-variable 'eaf--buffer-app-name) buffer-app-name)
676678
(set (make-local-variable 'eaf--buffer-id) buffer-id)
677-
(outline-show-all)
678-
(goto-char (point-min))
679679
(local-set-key (kbd "C-c C-c") 'eaf-edit-buffer-confirm)
680680
(local-set-key (kbd "C-c C-k") 'eaf-edit-buffer-cancel)
681681
(eaf--edit-set-header-line)))

0 commit comments

Comments
 (0)