branch: elpa/nix-mode commit 1ebfda9810ae3a73cd15c669d39b980662e3038e Author: Jakub Piecuch <j.piecuc...@gmail.com> Commit: Jakub Piecuch <j.piecuc...@gmail.com>
Inline use of `signum`. `signum` is defined in `cl`, which is not required by `nix-mode`. I don't think the use of such a simple function warrants an additional import, so I decided to inline it. --- nix-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix-mode.el b/nix-mode.el index a24a851284..887424c085 100644 --- a/nix-mode.el +++ b/nix-mode.el @@ -577,7 +577,7 @@ STRING-TYPE type of string based off of Emacs syntax table types" (member (buffer-substring-no-properties (point) start) nix-smie--2char-symbols)) (if (< 0 abs-skip) - (goto-char (+ start (signum nskip))) + (goto-char (+ start (if (< 0 nskip) 1 -1))) (goto-char start) nil))))