Revert "ox.el: Remove .gpg extension from the exported file-name"

This reverts commit e8c24b66af.
This commit is contained in:
Bastien Guerry 2021-04-27 10:16:13 +02:00
parent e8c24b66af
commit 82707041b0
1 changed files with 1 additions and 6 deletions

View File

@ -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