comparison lisp/desktop.el @ 38765:7f07f5bca733

(desktop-save): Don't use concat to form a file name, use expand-file-name.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 09 Aug 2001 15:50:09 +0000
parents c41fb9fae096
children 15f5a37cdf42
comparison
equal deleted inserted replaced
38764:78835d2a314e 38765:7f07f5bca733
473 (defun desktop-save (dirname) 473 (defun desktop-save (dirname)
474 "Save the Desktop file. Parameter DIRNAME specifies where to save desktop." 474 "Save the Desktop file. Parameter DIRNAME specifies where to save desktop."
475 (interactive "DDirectory to save desktop file in: ") 475 (interactive "DDirectory to save desktop file in: ")
476 (run-hooks 'desktop-save-hook) 476 (run-hooks 'desktop-save-hook)
477 (save-excursion 477 (save-excursion
478 (let ((filename (expand-file-name 478 (let ((filename (expand-file-name desktop-basefilename dirname))
479 (concat dirname desktop-basefilename)))
480 (info (nreverse 479 (info (nreverse
481 (mapcar 480 (mapcar
482 (function 481 (function
483 (lambda (b) 482 (lambda (b)
484 (set-buffer b) 483 (set-buffer b)