org-present icon indicating copy to clipboard operation
org-present copied to clipboard

fix-cursor-cache-bug

Open nullman opened this issue 1 year ago • 1 comments

Removed cursor-cache logic in org-present-read-write function as it conflicts with org-present-hide-cursor.

nullman avatar Feb 07 '24 19:02 nullman

This bug can be reproduced using the following hooks:

  (defun custom-org-present-mode-hook ()
    "Customizations for entering `org-present-mode'."
    (org-present-hide-cursor)
    (org-present-read-only))
  (add-hook 'org-present-mode-hook #'custom-org-present-mode-hook)

  (defun custom-org-present-mode-quit-hook ()
    "Customizations for exiting `org-present-mode'."
    (org-present-show-cursor)
    (org-present-read-write))
  (add-hook 'org-present-mode-quit-hook #'custom-org-present-mode-quit-hook)

With the above, the cursor remains hidden after leaving present-mode.

nullman avatar Feb 07 '24 19:02 nullman