(re-search-forward "[{}()]" nil t) I get: Lisp error: (wrong-type-argument arrayp nil) I fixed this. Thanks.