[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Removal of syntax-ppss-last
From: |
Stefan Monnier |
Subject: |
Re: Removal of syntax-ppss-last |
Date: |
Mon, 02 Oct 2017 20:48:54 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Unfortunate, but easily solved. And I don't believe we guarantee .elc
> compatibility between major releases.
We try to preserve backward compatibility of .elc files.
But I wonder why your code:
(defun haskell-indentation-find-indentations ()
(let ((ppss (syntax-ppss)))
(cond
((nth 3 ppss)
(haskell-indentation-first-indentation))
((nth 4 ppss)
(if (save-excursion
(and (skip-syntax-forward "-")
(eolp)
(not (> (forward-line 1) 0))
(not (nth 4 (syntax-ppss)))))
(haskell-indentation-parse-to-indentations)
(haskell-indentation-first-indentation)))
(t
(haskell-indentation-parse-to-indentations)))))
would contain syntax-ppss-last in the .elc since syntax-ppss is not
defined as defsubst or other such inlinable code.
Can you try to look more closely at where this syntax-ppss-last comes
from (maybe by disassembling the function)?
Stefan