bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#25597: 25.1; SMIE: error in smie-indent--rule


From: Lars Ingebrigtsen
Subject: bug#25597: 25.1; SMIE: error in smie-indent--rule
Date: Fri, 26 Jul 2019 16:34:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Reiner Steib <Reiner.Steib@gmx.de> writes:

> Recipe:
> (I don't see this bug in GNU Emacs 24.3.1., but in GNU Emacs 25.1.1.)
>
> $ emacs -Q --eval "(progn
>     (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent)
>     (setq debug-on-error t))" smie-bug.sh
>
> %%% test-file: smie-bug.sh
> #! /bin/bash
>
> awk -F\; '\
> { if ($5 ~ "^[0-9]{1,3}" &&
>       ( ($16 ~ "l7" && $4 ~ "O" ) ||         \
>       ($16 ~ "b" && $4 ~ "c" ) ||            \
>       ($16 ~ "s|c|l" ) ) )                   \
>     { print $5 "\r" } }' \
>     a.csv > r.csv
> #
>
> # awk -F\; -v q=\' '{
> #   printf("update foo bar");
> # }' < s1.csv > s2.sql
> %%%

I tried this recipe in Emacs 24.5, and I got the same backtrace as you:

> %%% Backtrace
> Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p
> noindent)
>   smie-indent--rule(:after "{" 242 nil 239)
>   smie-indent-after-keyword()
>   run-hook-with-args-until-success(smie-indent-after-keyword)

But on the trunk, I just get a message saying "Nothing to change", so it
looks like this has been fixed by now, and I'm closing this bug report.
If you're still seeing this in Emacs 27, please reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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