[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/so-long 647eb06 09/10: ; Revert "Make `so-long' restore `view-mo
From: |
Phil Sainty |
Subject: |
scratch/so-long 647eb06 09/10: ; Revert "Make `so-long' restore `view-mode'" |
Date: |
Thu, 29 Jul 2021 23:59:39 -0400 (EDT) |
branch: scratch/so-long
commit 647eb062057d0fdfb3bd2747f0ef2376267a32bb
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Phil Sainty <psainty@orcon.net.nz>
; Revert "Make `so-long' restore `view-mode'"
This reverts commit 3c2db0c541491fceb7081d5b54de5abec25e2f4b.
A more general solution to bug#45084 has been implemented via
new user options `so-long-mode-preserved-variables' and
`so-long-mode-preserved-minor-modes'.
See the previous commit (before this revert) for details.
---
lisp/so-long.el | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/lisp/so-long.el b/lisp/so-long.el
index 69e0e1d..8465f68 100644
--- a/lisp/so-long.el
+++ b/lisp/so-long.el
@@ -1755,8 +1755,7 @@ invoking the new action."
(when so-long--active
(so-long-revert))
;; Invoke the new action.
- (let ((so-long--calling t)
- (view-mode-active view-mode))
+ (let ((so-long--calling t))
(so-long--ensure-enabled)
;; ACTION takes precedence if supplied.
(when action
@@ -1785,10 +1784,7 @@ invoking the new action."
;; functions need to modify the buffer. We use `inhibit-read-only' to
;; side-step the issue (and likewise in `so-long-revert').
(let ((inhibit-read-only t))
- (run-hooks 'so-long-hook))
- ;; Restore `view-mode'.
- (when view-mode-active
- (view-mode)))))
+ (run-hooks 'so-long-hook)))))
(defun so-long-revert ()
"Revert the active `so-long-action' and run `so-long-revert-hook'.
- branch scratch/so-long created (now 3d685ba), Phil Sainty, 2021/07/29
- scratch/so-long 3555187 01/10: ; * lisp/so-long.el: Documentation, Phil Sainty, 2021/07/29
- scratch/so-long d7de002 02/10: ; * lisp/so-long.el: Bump to version 1.1, Phil Sainty, 2021/07/29
- scratch/so-long fbb3a89 04/10: Make `global-so-long-mode' handle unrecognised file types, Phil Sainty, 2021/07/29
- scratch/so-long 57d7cb6 05/10: * lisp/so-long.el (so-long-minor-modes): Additional modes to disable, Phil Sainty, 2021/07/29
- scratch/so-long cf5ef99 07/10: ; so-long-tests.el: Suppress expected warnings, Phil Sainty, 2021/07/29
- scratch/so-long 3a109aa 08/10: Support 'preserved' variables and minor modes in `so-long-mode', Phil Sainty, 2021/07/29
- scratch/so-long 3d685ba 10/10: Make `global-so-long-mode' use `buffer-line-statistics', Phil Sainty, 2021/07/29
- scratch/so-long f019be5 03/10: Increase `so-long-threshold' and `so-long-max-lines' defaults, Phil Sainty, 2021/07/29
- scratch/so-long 0e0d677 06/10: ; * lisp/so-long.el: Minor bug fixes, Phil Sainty, 2021/07/29
- scratch/so-long 647eb06 09/10: ; Revert "Make `so-long' restore `view-mode'",
Phil Sainty <=