]> code.delx.au - gnu-emacs/commitdiff
(server-visit-files): Use add-to-history.
authorKim F. Storm <storm@cua.dk>
Fri, 5 May 2006 23:37:55 +0000 (23:37 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 5 May 2006 23:37:55 +0000 (23:37 +0000)
lisp/server.el

index befcd22ad3afa35c2c0cc44640cc00d3ca16e865..43b2dc633894e6c2d1db1f80e8568b8e504514e6 100644 (file)
@@ -411,7 +411,7 @@ so don't mark these buffers specially, just visit them normally."
        ;; deleted file, offer to write it.
        (let* ((filen (car file))
               (obuf (get-file-buffer filen)))
-         (push filen file-name-history)
+         (add-to-history 'file-name-history filen)
          (if (and obuf (set-buffer obuf))
              (progn
                (cond ((file-exists-p filen)