parent
7e8524086c
commit
d08822c614
2 changed files with 8 additions and 6 deletions
|
@ -1553,9 +1553,10 @@ can be adjusted with the variable:
|
|||
(force-mode-line-update)
|
||||
(spacemacs-buffer/goto-link-line)))
|
||||
|
||||
(defun spacemacs-buffer/goto-buffer (&optional refresh)
|
||||
"Create the special buffer for `spacemacs-buffer-mode' and switch to it.
|
||||
REFRESH if the buffer should be redrawn.
|
||||
(defun spacemacs-buffer/goto-buffer (&optional refresh do-not-switch)
|
||||
"Create the special buffer for `spacemacs-buffer-mode'.
|
||||
REFRESH if the buffer should be redrawn. This will automatically
|
||||
switch to the buffer unless DO-NOT-SWITCH is non nil.
|
||||
|
||||
If a prefix argument is given, switch to it in an other, possibly new window."
|
||||
(interactive)
|
||||
|
@ -1597,8 +1598,9 @@ If a prefix argument is given, switch to it in an other, possibly new window."
|
|||
(forward-line (1- save-line))
|
||||
(forward-to-indentation 0))
|
||||
(spacemacs-buffer/goto-link-line)))
|
||||
(unless do-not-switch
|
||||
(if current-prefix-arg
|
||||
(switch-to-buffer-other-window spacemacs-buffer-name)
|
||||
(switch-to-buffer-other-window spacemacs-buffer-name))
|
||||
(switch-to-buffer spacemacs-buffer-name))
|
||||
(spacemacs//redisplay))))
|
||||
|
||||
|
|
|
@ -263,7 +263,7 @@ Note: the hooked function is not executed when in dumped mode."
|
|||
;; Redraw the spacemacs buffer with full org support
|
||||
;; Before it must be drawn without org related features to
|
||||
;; avoid loading build in org in emacs >= 29
|
||||
(spacemacs-buffer/goto-buffer t)))
|
||||
(spacemacs-buffer/goto-buffer t t)))
|
||||
|
||||
(if dotspacemacs-byte-compile
|
||||
(when (> 1 (spacemacs//dir-byte-compile-state
|
||||
|
|
Reference in a new issue