[Top][All Lists]

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

Re: Debugging SMIE for sh-script.el

From: Stefan Monnier
Subject: Re: Debugging SMIE for sh-script.el
Date: Thu, 02 Sep 2021 15:47:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> smie-indent-functions, which in a shell buffer is
> (sh-smie--indent-continuation t).

Not that the `t` here is a general feature of hooks which means "use
here the lit stored in the global (i.e. not buffer-local)" variable.
So the hook will include all the functions in the default
value of that variable, i.e.

    (smie-indent-fixindent smie-indent-bob smie-indent-close
     smie-indent-comment smie-indent-comment-continue smie-indent-comment-close
     smie-indent-comment-inside smie-indent-inside-string smie-indent-keyword
     smie-indent-after-keyword smie-indent-empty-line smie-indent-exps)

-- Stefan

reply via email to

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