From 82707041b0e72bdd6a887a10fe38520f2140e453 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 27 Apr 2021 10:16:13 +0200 Subject: [PATCH] Revert "ox.el: Remove .gpg extension from the exported file-name" This reverts commit e8c24b66afd804d58b379266e6efeb147d60a102. --- lisp/ox.el | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index c0fd33dbb..c99e8d111 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -6406,12 +6406,7 @@ When optional argument PUB-DIR is set, use it as the publishing directory. Return file name as a string." - (let* ((visited-file - ;; If a buffer is visiting a .gpg file, remove the .gpg - ;; extension from the name of the exported file. - (replace-regexp-in-string - "\\.gpg\\'" "" - (buffer-file-name (buffer-base-buffer)))) + (let* ((visited-file (buffer-file-name (buffer-base-buffer))) (base-name (concat (file-name-sans-extension