]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid repeated warnings while restoring desktop
authorKaushal Modi <kaushal.modi@gmail.com>
Fri, 22 Jul 2016 18:48:12 +0000 (14:48 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 22 Jul 2016 18:48:12 +0000 (14:48 -0400)
* lisp/desktop.el (desktop-restore-file-buffer): Do not print warnings
when files are being opened during desktop restore.

lisp/desktop.el

index 1f460b7a3ede4f9537f5a530cd8009300e225544..df4ff551c2dd1f63e76fd6cbfee565a7c0748223 100644 (file)
@@ -1402,7 +1402,7 @@ after that many seconds of idle time."
                (or coding-system-for-read
                    (cdr (assq 'buffer-file-coding-system
                               desktop-buffer-locals))))
-              (buf (find-file-noselect buffer-filename)))
+              (buf (find-file-noselect buffer-filename :nowarn)))
          (condition-case nil
              (switch-to-buffer buf)
            (error (pop-to-buffer buf)))