From: Philip K Date: Sun, 18 Apr 2021 18:41:37 +0000 (+0200) Subject: Don't hard-code "~/.emacs.d/" in rcirc.el X-Git-Tag: emacs-28.0.90~2818 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=869e437c10e001c865a4d7e3d79deffb76456539;p=emacs.git Don't hard-code "~/.emacs.d/" in rcirc.el * lisp/net/rcirc.el (rcirc-log-directory): Use locate-user-emacs-file. (Bug#47880) --- 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.