[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to test whether symbol is minor-mode
From: |
yinz Liu |
Subject: |
How to test whether symbol is minor-mode |
Date: |
Sun, 22 Jan 2023 00:04:38 +0800 |
Usually I use forms like `(memq 'read-only-mode minor-mode-list)` to test
whether it is a minor mode, however for `read-only-mode`, it fails.
Because the read-only-mode related variable is `buffer-read-only` rather
than the same name var, is there any method to test only with the
minor-mode itself ?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- How to test whether symbol is minor-mode,
yinz Liu <=