emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] scratch/rfc-mode 234890d3a8 23/52: Use expand-file-name instead


From: Stefan Monnier
Subject: [nongnu] scratch/rfc-mode 234890d3a8 23/52: Use expand-file-name instead of concat
Date: Wed, 12 Oct 2022 16:29:19 -0400 (EDT)

branch: scratch/rfc-mode
commit 234890d3a818c87f082829442ce21b67fa7a9e00
Author: Nicolas Martyanoff <khaelin@gmail.com>
Commit: Nicolas Martyanoff <khaelin@gmail.com>

    Use expand-file-name instead of concat
---
 rfc-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rfc-mode.el b/rfc-mode.el
index b9fef024cd..f0cfbddc3f 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -323,7 +323,7 @@ ENTRY is a RFC index entry in the browser."
 
 (defun rfc-mode--document-path (number)
   "Return the absolute path of the RFC document NUMBER."
-  (concat rfc-mode-directory "rfc" (number-to-string number) ".txt"))
+  (expand-file-name (format "rfc%s.txt" number) rfc-mode-directory))
 
 (defun rfc-mode--document-buffer (number)
   "Return a buffer visiting the RFC document NUMBER.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]