From a609d13baff387f92e367ec5797e1f56d28fd4f6 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Mon, 5 Jan 2009 02:49:31 +0000 Subject: [PATCH] * desktop.el (desktop-save-in-desktop-dir): Use `abbreviate-file-name' to shorten the desktop file directory shown in message. --- lisp/ChangeLog | 5 +++++ lisp/desktop.el | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2020db746f7..05cebd2a5c5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-01-05 Juanma Barranquero + + * desktop.el (desktop-save-in-desktop-dir): Use `abbreviate-file-name' + to shorten the desktop file directory shown in message. + 2009-01-05 Glenn Morris * version.el (emacs-copyright): diff --git a/lisp/desktop.el b/lisp/desktop.el index 1189e150296..443d4ffee64 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -1047,7 +1047,7 @@ directory DIRNAME." (if desktop-dirname (desktop-save desktop-dirname) (call-interactively 'desktop-save)) - (message "Desktop saved in %s" desktop-dirname)) + (message "Desktop saved in %s" (abbreviate-file-name desktop-dirname))) ;; ---------------------------------------------------------------------------- ;;;###autoload -- 2.39.2