Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs: Tutorial state(s) directory #237

Closed
wants to merge 1 commit into from

Conversation

thoelze1
Copy link

No description provided.

The emacs tutorial (C-x t) can save your position in the
tutorial. State is saved in a tutorial/ directory according to the
language of the tutorial state, such as:
emacs.d/tutorial/English.tut

It is probably rare for someone using no-littering.el to save tutorial
state.
@thoelze1 thoelze1 closed this May 18, 2024
@thoelze1
Copy link
Author

I mistakenly used tutorial-directory which is where the tutorial itself is stored (in its various languages). I should have used tutorial--saved-dir which yields the directory where saved states are kept. Unfortunately tutorial--saved-dir is a function intended for internal use (manual) and not intended to be customized and so should stay out of no-littering.el. You can still customize it but you must require tutorial.el before redefining tutorial--saved-dir or else it will get clobbered:

(require 'no-littering)
(require 'tutorial)
(defun tutorial--saved-dir () (no-littering-expand-var-file-name "tutorial/"))

This works for me in my init file but I don't know enough to say whether it is technically undefined behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant