GNU bug report logs - #36434
26.2; smie-rule-next-p needs smie--after to be defined

Previous Next

Package: emacs;

Reported by: Sam Halliday <sam.halliday <at> gmail.com>

Date: Sat, 29 Jun 2019 13:24:02 UTC

Severity: normal

Found in version 26.2

Full log


View this message in rfc822 format

From: Sam Halliday <sam.halliday <at> gmail.com>
To: 36434 <at> debbugs.gnu.org
Subject: bug#36434: 26.2; smie-rule-next-p needs smie--after to be defined
Date: Sat, 29 Jun 2019 14:23:01 +0100
When writing SMIE indentation rules, as per `smie-rules-function`,
when an :elem is received (confirmed at least with 'empty-line-token)
it is not possible to call the function smie-rule-parent-p, because
the smie--after variable has not been defined.

A workaround is to define the variable locally, e.g.

        (defvar smie--after)
        (setq smie--after (point))




This bug report was last modified 3 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.