Using cl-case on symbols
Heime <[email protected]> Mon, 06 Jul 2026 20:53:44 +0000
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <SkAbKKzpN0ByBcTx599o7MBl5Dgk9I8jmPrmpAvwYUqlvT0llw8FQB66y6gr-kdGdGbnuNOsu5HerFyg7cDgNwOxOMi_OBpanBNDfEH2L18=@protonmail.com> |
It has been suggested to me about using the following `cl-case'
construct for checking ACTM against a list of symbols. With
`cond' I would have to use ((or (eq actm 'add) (eq actm 'remove))
How is it that `cond' does not work on symbols but `cl-case' does?
Although I have looked at the documentation of `cl-case', there is
no indication on its appropriateness to symbols.
(cl-case actm
((add remove)
(funcall hka mdhook #'kronaire-regexp)
(funcall hka mdhook #'outline-minor-mode))