emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/nix-mode 1ebfda9810 368/500: Inline use of `signum`.


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 1ebfda9810 368/500: Inline use of `signum`.
Date: Sat, 29 Jan 2022 08:27:21 -0500 (EST)

branch: elpa/nix-mode
commit 1ebfda9810ae3a73cd15c669d39b980662e3038e
Author: Jakub Piecuch <j.piecuch96@gmail.com>
Commit: Jakub Piecuch <j.piecuch96@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))))
 



reply via email to

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