[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Removal of syntax-ppss-last

From: John Wiegley
Subject: Re: Removal of syntax-ppss-last
Date: Mon, 02 Oct 2017 16:02:36 -0400
User-agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/26.0 (darwin)

>>>>> "AM" == Alan Mackenzie <address@hidden> writes:

AM> syntax-ppss-last was intended as an internal variable in syntax.el. Why
AM> was haskell-mode using it? (If indeed it was).

Apologies for the vagueness, I'm traveling at the moment and didn't dig into
this enough fully.

Here's the function that raised the error:

(defun haskell-indentation-find-indentations ()
  (let ((ppss (syntax-ppss)))
     ((nth 3 ppss)
     ((nth 4 ppss)
      (if (save-excursion
            (and (skip-syntax-forward "-")
                 (not (> (forward-line 1) 0))
                 (not (nth 4 (syntax-ppss)))))

So it would seem that the byte-compiled file is referencing the variable. When
I re-evaluate the file this definition is contained in, the error goes away.

Unfortunate, but easily solved. And I don't believe we guarantee .elc
compatibility between major releases.

John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com                          60E1 46C4 BD1A 7AC1 4BA2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]