From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Removal of syntax-ppss-last Date: Mon, 02 Oct 2017 20:48:54 -0400 Message-ID: References: <20171002170444.GA18364@ACM> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1506991831 14736 195.159.176.226 (3 Oct 2017 00:50:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 3 Oct 2017 00:50:31 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 03 02:50:23 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dzBPg-0002qm-8z for ged-emacs-devel@m.gmane.org; Tue, 03 Oct 2017 02:50:20 +0200 Original-Received: from localhost ([::1]:55367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBPn-00030H-KP for ged-emacs-devel@m.gmane.org; Mon, 02 Oct 2017 20:50:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dzBPe-000309-Hq for emacs-devel@gnu.org; Mon, 02 Oct 2017 20:50:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dzBPa-0002L8-RH for emacs-devel@gnu.org; Mon, 02 Oct 2017 20:50:18 -0400 Original-Received: from [195.159.176.226] (port=42047 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dzBPa-0002G4-Eg for emacs-devel@gnu.org; Mon, 02 Oct 2017 20:50:14 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dzBPO-00016r-NI for emacs-devel@gnu.org; Tue, 03 Oct 2017 02:50:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:mcCNjGVuE3JKcPCo8TLNu9i5WsI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:219024 Archived-At: > 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