]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
authorArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 14 Jun 2015 13:40:48 +0000 (14:40 +0100)
committerArtur Malabarba <bruce.connor.am@gmail.com>
Sun, 14 Jun 2015 13:40:48 +0000 (14:40 +0100)
Don't assume that `tabulated-list-printer' will leave point at the
end of the buffer.  (Bug#20810)

lisp/emacs-lisp/tabulated-list.el

index fb3045d2b4c6a15d39741747dd2d06dc0613e6f8..4bf714baa18b28b365218499230acb05cc5dd875 100644 (file)
@@ -347,7 +347,7 @@ changing `tabulated-list-sort-key'."
              (setq entry-id nil
                    saved-pt (point)))
         ;; If the buffer this empty, simply print each elt.
-        (if (eobp)
+        (if (or (not update) (eobp))
             (apply tabulated-list-printer elt)
           (while (let ((local-id (tabulated-list-get-id)))
                    ;; If we find id, then nothing to update.