I'm confused by the interpretation of '
in the context of lists of symbols.
The problem is that I'd like to check whether a buffer is in one a list of modes, and I'll use the scratch buffer as my example.
(with-current-buffer "*scratch*" major-mode) ;; lisp-interaction-mode
(equal (with-current-buffer "*scratch*" major-mode) 'lisp-interaction-mode) ;; t
So far so good.
(member (with-current-buffer "*scratch*" major-mode)
'('lisp-interaction-mode) ;; nil
Huh? Trying to simplify this, I ended up with
(member 1 '( 1)) ;; (1) - okay, my list syntax seems correct
(member '1 '( '1)) ;; nil - Why doesn't this work? I think this is the issue
So how can I make a list of symbols, and then check whether a symbol is in there?