Closed joefromct closed 1 year ago
FYI, I've discovered that it has to do with using color-identifiers-mode with smart-parens-mode also on... the issue for me arises only when modifying a lisp file and not python, sql, etc.
Maybe something in emacs 24.4 changed around pcase?
(pcase sexp ((or (\` (let \, rest)) (\` (let* \, rest))) (append (when (listp (car rest)) (mapcar (lambda (var) (if (symbolp var) var (car var))) (car rest))) (color-identifiers:elisp-declarations-in-sexp rest))) ((or (\` (defun (\, -) (\, args) \, rest)) (\` (lambda (\, args) \, rest))) (append (when (listp args) args)
(color-identifiers:elisp-declarations-in-sexp rest))) ((\` nil) nil) ((pred consp) (let ((cons sexp) (result nil)) (while (consp cons) (let ((ids (color-identifiers:elisp-declarations-in-sexp ...))) (when ids (setq result (append ids result)))) (setq cons (cdr cons))) (when cons (let ((ids (color-identifiers:elisp-declarations-in-sexp cons))) (when ids (setq result (append ids result))))) result)) (other-object nil))
color-identifiers:elisp-declarations-in-sexp((show-paren-mode))
(let* ((sexp (read (current-buffer))) (ids (color-identifiers:elisp-declarations-in-sexp sexp)) (strs (-filter (quote identity) (mapcar (function (lambda (id) (if ... ...))) ids)))) (setq result (append strs result)))
(while t (let* ((sexp (read (current-buffer))) (ids (color-identifiers:elisp-declarations-in-sexp sexp)) (strs (-filter (quote identity) (mapcar (function (lambda ... ...)) ids)))) (setq result (append strs result))))
(condition-case nil (while t (let* ((sexp (read (current-buffer))) (ids (color-identifiers:elisp-declarations-in-sexp sexp)) (strs (-filter (quote identity) (mapcar (function ...) ids)))) (setq result (append strs result)))) (end-of-file nil))
(save-excursion (goto-char (point-min)) (condition-case nil (while t (let* ((sexp (read (current-buffer))) (ids (color-identifiers:elisp-declarations-in-sexp sexp)) (strs (-filter (quote identity)
(mapcar ... ids)))) (setq result (append strs result)))) (end-of-file nil)))
(let ((result nil)) (save-excursion (goto-char (point-min))
This bug probably still exists. If someone has an example of code that triggers it, that would be helpful in fixing it.
Can you please retest it with latest color-identifiers? I wonder if it's still a problem.
As a side note, I'm also using both color-identifiers and smartparens, but not in Cygwin though.
Actually, I just realized I did some fixes to this code in response to byte-compiler warnings in 2020. Since we never were given a reproducer and the author doesn't answer whether they still see it, I think we can assume it's fixed.
Please feel free to reopen if you see that again.
Hi,
For some reason i'm getting an error when trying to activate
(color-identifiers-mode)
in an emacs lisp file with emacs 24.4 compiled over cygwin (shouldn't be an issue i don't think?). The error reported ispcase--app-subst-match(:pcase--succeed sexp car x)
.I'm not really sure where to start debugging something such as this so let me know what additional information i can provide. The Backtrace buffer in emacs shows something along these lines... i had trouble pasting everything into the issue as it had non-printable chars/etc.