From 869e437c10e001c865a4d7e3d79deffb76456539 Mon Sep 17 00:00:00 2001 From: Philip K Date: Sun, 18 Apr 2021 20:41:37 +0200 Subject: [PATCH] Don't hard-code "~/.emacs.d/" in rcirc.el * lisp/net/rcirc.el (rcirc-log-directory): Use locate-user-emacs-file. (Bug#47880) --- lisp/net/rcirc.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 7bb8ca671cf..7251640bf27 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el @@ -1166,9 +1166,10 @@ If ALL is non-nil, update prompts in all IRC buffers." (or (eq (aref target 0) ?#) (eq (aref target 0) ?&)))) -(defcustom rcirc-log-directory "~/.emacs.d/rcirc-log" +(defcustom rcirc-log-directory (locate-user-emacs-file "rcirc-log") "Directory to keep IRC logfiles." - :type 'directory) + :type 'directory + :version "28.1") (defcustom rcirc-log-flag nil "Non-nil means log IRC activity to disk. -- 2.39.5