]> git.eshelyaron.com Git - emacs.git/commitdiff
(desktop-save): Don't use concat to form a file
authorGerd Moellmann <gerd@gnu.org>
Thu, 9 Aug 2001 15:50:09 +0000 (15:50 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 9 Aug 2001 15:50:09 +0000 (15:50 +0000)
name, use expand-file-name.

lisp/desktop.el

index 3286b195facb12811cfaed36112fbd72d523b1d3..bbb5fa864ca214c1a5f3093290a0bc4f1c9c7b9b 100644 (file)
@@ -475,8 +475,7 @@ MODE is the major mode."
   (interactive "DDirectory to save desktop file in: ")
   (run-hooks 'desktop-save-hook)
   (save-excursion
-    (let ((filename (expand-file-name
-                    (concat dirname desktop-basefilename)))
+    (let ((filename (expand-file-name desktop-basefilename dirname))
          (info (nreverse
                 (mapcar
                  (function