[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/logos 69cabed870 09/25: Run hook after page motion
From: |
ELPA Syncer |
Subject: |
[elpa] externals/logos 69cabed870 09/25: Run hook after page motion |
Date: |
Fri, 11 Mar 2022 08:58:00 -0500 (EST) |
branch: externals/logos
commit 69cabed87033931c6a71da9231dd17c7ffa947e9
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Run hook after page motion
---
logos.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/logos.el b/logos.el
index 326264b802..6ec38b422c 100644
--- a/logos.el
+++ b/logos.el
@@ -160,6 +160,10 @@ This is only relevant when `logos-focus-mode' is enabled."
;; Avoids the problem of skipping pages while cycling back and forth.
(goto-char (point-min)))
+(defvar logos-page-motion-hook nil
+ "Hook that runs after a page motion.
+See `logos-forward-page-dwim' or `logos-backward-page-dwim'.")
+
(defun logos--page-motion (&optional count back)
"Routine for page motions.
With optional numeric COUNT move by that many pages. With
@@ -169,7 +173,8 @@ optional BACK perform the motion backwards."
(if (buffer-narrowed-p)
(logos--narrow-to-page count back)
(funcall cmd count)
- (setq this-command cmd))))
+ (setq this-command cmd))
+ (run-hooks 'logos-page-motion-hook)))
;;;###autoload
(defun logos-forward-page-dwim (&optional count)
- [elpa] externals/logos f03cf3ebd9 06/25: Fix fallback value of logos-outline-regexp-alist, (continued)
- [elpa] externals/logos f03cf3ebd9 06/25: Fix fallback value of logos-outline-regexp-alist, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 7f5010f3a0 10/25: Add Org/Outline reveal sample; update docs, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 60f7eaf5f7 13/25: Update Commentary with code sample for Org/Outline, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 95000cf597 04/25: Minor rewording in the Commentary, ELPA Syncer, 2022/03/11
- [elpa] externals/logos bbc89495e3 08/25: Add section with sample configuration, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 28e2d2ae27 12/25: Reword comment, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 07cd1b412f 17/25: Update sample code for outline-mode, ELPA Syncer, 2022/03/11
- [elpa] externals/logos a63d1ab315 20/25: Always reveal Org/Outline entry, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 26ecd9b72f 22/25: Update description, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 88b2a7ca61 11/25: Tweak sample code for local variables, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 69cabed870 09/25: Run hook after page motion,
ELPA Syncer <=
- [elpa] externals/logos 230828bd2e 16/25: Rewrite the manual, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 86ec38e795 19/25: Clarify manual's wording about outline regexp, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 90ec28cd10 21/25: Delete trailing parenthesis, ELPA Syncer, 2022/03/11
- [elpa] externals/logos dc52fc3f04 25/25: Merge redundant make-variable-buffer-local calls into defcustom, ELPA Syncer, 2022/03/11
- [elpa] externals/logos af80df635c 18/25: Apply outline to derived modes, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 45c90aa845 02/25: Tweak manual's title, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 19b18f1ab4 07/25: Add node on manul installation, ELPA Syncer, 2022/03/11
- [elpa] externals/logos 7176d43377 15/25: Update Commentary; clarify logos-focus-mode docs, ELPA Syncer, 2022/03/11
- [elpa] externals/logos feeea154fc 14/25: Tweak glue code samples, ELPA Syncer, 2022/03/11
- [elpa] externals/logos d29b99c051 23/25: Clarify description and update docs, ELPA Syncer, 2022/03/11