[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-present 6c57386522 36/47: Fixed that read-only functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-present 6c57386522 36/47: Fixed that read-only function erase cursor |
Date: |
Sat, 8 Jan 2022 13:58:31 -0500 (EST) |
branch: elpa/org-present
commit 6c573865227102229281e4733de41bdc617c2bbe
Author: komem3 <komata392@gmail.com>
Commit: komem3 <komata392@gmail.com>
Fixed that read-only function erase cursor
Read-only function erase cursor, but there is a function to
hide cursor. That's why I moved removing cursor process to
the function to hide cursor.
Also, added a conditional expression because if the
org-present-hide-cursor runs in duplicate, the cursor
remains gone when leave the org-present-mode.
---
org-present.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/org-present.el b/org-present.el
index 74d12607c4..dd56227329 100644
--- a/org-present.el
+++ b/org-present.el
@@ -206,25 +206,27 @@
"Make buffer read-only."
(interactive)
(setq buffer-read-only t)
- (setq org-present-cursor-cache cursor-type
- cursor-type nil)
(define-key org-present-mode-keymap (kbd "SPC") 'org-present-next))
(defun org-present-read-write ()
"Make buffer read-only."
(interactive)
(setq buffer-read-only nil)
- (setq cursor-type org-present-cursor-cache)
(define-key org-present-mode-keymap (kbd "SPC") 'self-insert-command))
(defun org-present-hide-cursor ()
"Hide the cursor for current window."
(interactive)
+ (if cursor-type
+ (setq-local org-present-cursor-cache cursor-type
+ cursor-type nil))
(internal-show-cursor (selected-window) nil))
(defun org-present-show-cursor ()
"Show the cursor for current window."
(interactive)
+ (if org-present-cursor-cache
+ (setq-local cursor-type org-present-cursor-cache))
(internal-show-cursor (selected-window) t))
;;;###autoload
- [nongnu] elpa/org-present 24591087a8 07/47: fix export options bug; show title page instead of toc, (continued)
- [nongnu] elpa/org-present 24591087a8 07/47: fix export options bug; show title page instead of toc, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 69402c3b06 01/47: first commit, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 78d82edf35 05/47: add read-only and read-write modes, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 1f264070dc 03/47: overlays for stars in headers, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 1af324f54f 13/47: hide emphasis markers when presenting, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 8ee4008b83 19/47: detect last slide and go to top of slide before narrow, so we do not, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 1eafeaf19c 17/47: Merge pull request #6 from jaseemabid/master, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 8148e5245e 22/47: mention fullscreen now builtin, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 00679dc2b0 32/47: Merge pull request #19 from damil/master, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present b2e3b19cbc 35/47: Move org-present-narrow to be called after org-present-mode-hooks to make sure images are shown inline in all slides, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 6c57386522 36/47: Fixed that read-only function erase cursor,
ELPA Syncer <=
- [nongnu] elpa/org-present 236691956d 06/47: remove some debug messages, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 80eb28f2a2 10/47: Merge pull request #2 from tarsius/master, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 71486291da 12/47: Merge pull request #3 from purcell/patch-1, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 194262bdb0 09/47: provide feature, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present ef8dfc974c 16/47: Exit read-only mode before exiting the minor mode, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present c16b846434 21/47: update key list and add beginning/end, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present fca3bcdd2c 20/47: add functions to jump to beginning and end of presentation, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 96dfce3254 28/47: Add org-present-after-navigate-functions abnormal hook, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 75ac0cab2a 44/47: Add "Version: 0.1" header, ELPA Syncer, 2022/01/08
- [nongnu] elpa/org-present 7e56ab02b4 47/47: Merge pull request #41 from skangas/add-version, ELPA Syncer, 2022/01/08