]> git.eshelyaron.com Git - emacs.git/commitdiff
indent-for-tab-command: Deal with large point or modiff values.
authorPhilipp Stephani <phst@google.com>
Fri, 14 Jan 2022 19:59:28 +0000 (20:59 +0100)
committerPhilipp Stephani <phst@google.com>
Fri, 14 Jan 2022 19:59:28 +0000 (20:59 +0100)
* lisp/indent.el (indent-for-tab-command): Don't use 'eq' to compare
integers that aren't guaranteed to be fixnums.

lisp/indent.el

index 8dc4c31f135f97f70cfce4468cad404c35991111..ad6fd899c551c2382ffbd12fa87638eef8c3436a 100644 (file)
@@ -182,8 +182,8 @@ prefix argument is ignored."
       (cond
        ;; If the text was already indented right, try completion.
        ((and (eq tab-always-indent 'complete)
-             (eq old-point (point))
-             (eq old-tick (buffer-chars-modified-tick))
+             (eql old-point (point))
+             (eql old-tick (buffer-chars-modified-tick))
              (or (null tab-first-completion)
                  (eq last-command this-command)
                  (and (equal tab-first-completion 'eol)