unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#36434: 26.2; smie-rule-next-p needs smie--after to be defined
@ 2019-06-29 13:23 Sam Halliday
  2019-06-29 13:27 ` bug#36434: additional information Sam Halliday
  2019-06-29 21:47 ` bug#36434: 26.2; smie-rule-next-p needs smie--after to be defined Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Halliday @ 2019-06-29 13:23 UTC (permalink / raw)
  To: 36434

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))





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-22 14:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-29 13:23 bug#36434: 26.2; smie-rule-next-p needs smie--after to be defined Sam Halliday
2019-06-29 13:27 ` bug#36434: additional information Sam Halliday
2019-06-29 21:47 ` bug#36434: 26.2; smie-rule-next-p needs smie--after to be defined Stefan Monnier
2021-06-22 14:11   ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).