summaryrefslogtreecommitdiff
path: root/lisp/net/tramp-cache.el
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2020-05-02 12:48:55 +0200
committerMichael Albinus <michael.albinus@gmx.de>2020-05-02 12:48:55 +0200
commita941a9e8c226cff8eb77c4f8d7d0d54cb4a36340 (patch)
tree85f38ce18d79b536ef83f14f39acffcf08065102 /lisp/net/tramp-cache.el
parent0ea1463e6796a5c0f8e10c4be0a891f417c0ae66 (diff)
downloademacs-a941a9e8c226cff8eb77c4f8d7d0d54cb4a36340.tar.gz
emacs-a941a9e8c226cff8eb77c4f8d7d0d54cb4a36340.tar.bz2
emacs-a941a9e8c226cff8eb77c4f8d7d0d54cb4a36340.zip
;; Revert recent change in tramp-cache.el
* lisp/net/tramp-cache.el (tramp-dump-connection-properties): Remove compatibility code dumping the persistency file. Use `emacs-lisp-mode' for backward compatibility.
Diffstat (limited to 'lisp/net/tramp-cache.el')
-rw-r--r--lisp/net/tramp-cache.el13
1 files changed, 4 insertions, 9 deletions
diff --git a/lisp/net/tramp-cache.el b/lisp/net/tramp-cache.el
index 6d87ce297bc..14a64382acb 100644
--- a/lisp/net/tramp-cache.el
+++ b/lisp/net/tramp-cache.el
@@ -472,15 +472,10 @@ used to cache connection properties of the local machine."
;; Dump it.
(with-temp-file tramp-persistency-file-name
(insert
- ";; -*- lisp-data -*-"
- ;; `time-stamp-string' might not exist in all Emacs flavors.
- (condition-case nil
- (progn
- (format
- " <%s %s>\n"
- (time-stamp-string "%02y/%02m/%02d %02H:%02M:%02S")
- tramp-persistency-file-name))
- (error "\n"))
+ ;; Starting with Emacs 28, we could use `lisp-data'.
+ (format ";; -*- emacs-lisp -*- <%s %s>\n"
+ (time-stamp-string "%02y/%02m/%02d %02H:%02M:%02S")
+ tramp-persistency-file-name)
";; Tramp connection history. Don't change this file.\n"
";; Run `M-x tramp-cleanup-all-connections' instead.\n\n"
(with-output-to-string