]> git.eshelyaron.com Git - emacs.git/commitdiff
(desktop-buffer-info, desktop-save): Use `desktop-dirname' instead of `dirname'.
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 12 Jul 2007 22:47:51 +0000 (22:47 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 12 Jul 2007 22:47:51 +0000 (22:47 +0000)
lisp/ChangeLog
lisp/desktop.el

index f757ead626d9d236a35406f5a4ab4f1c3ace939c..b9ecf4798b77839a06e866724850cb45709cc6e4 100644 (file)
@@ -1,3 +1,8 @@
+2007-07-12  Davis Herring  <herring@lanl.gov>
+
+       * desktop.el (desktop-buffer-info, desktop-save):
+       Use `desktop-dirname' instead of `dirname'.
+
 2007-07-10  Jim Meyering  <jim@meyering.net>  (tiny change)
 
        * emacs-lisp/copyright.el (copyright-current-gpl-version): Set to 3.
index d9939ac0b85716689276fad68842becf3510b344..cafa1868b3392c88e06a0382040e23df5679541e 100644 (file)
@@ -652,7 +652,7 @@ is nil, ask the user where to save the desktop."
   (set-buffer buffer)
   (list
    ;; basic information
-   (desktop-file-name (buffer-file-name) dirname)
+   (desktop-file-name (buffer-file-name) desktop-dirname)
    (buffer-name)
    major-mode
    ;; minor modes
@@ -673,7 +673,7 @@ is nil, ask the user where to save the desktop."
    buffer-read-only
    ;; auxiliary information
    (when (functionp desktop-save-buffer)
-     (funcall desktop-save-buffer dirname))
+     (funcall desktop-save-buffer desktop-dirname))
    ;; local variables
    (let ((locals desktop-locals-to-save)
         (loclist (buffer-local-variables))
@@ -896,7 +896,7 @@ See also `desktop-base-file-name'."
                (insert "\n  " (desktop-value-to-string e)))
              (insert ")\n\n")))
 
-         (setq default-directory dirname)
+         (setq default-directory desktop-dirname)
          (let ((coding-system-for-write 'emacs-mule))
            (write-region (point-min) (point-max) (desktop-full-file-name) nil 'nomessage))
          ;; We remember when it was modified (which is presumably just now).