branch: scratch/rfc-mode
commit 234890d3a818c87f082829442ce21b67fa7a9e00
Author: Nicolas Martyanoff <khae...@gmail.com>
Commit: Nicolas Martyanoff <khae...@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