]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't hard-code "~/.emacs.d/" in rcirc.el
authorPhilip K <philipk@posteo.net>
Sun, 18 Apr 2021 18:41:37 +0000 (20:41 +0200)
committerStefan Kangas <stefan@marxist.se>
Mon, 19 Apr 2021 07:30:58 +0000 (09:30 +0200)
* lisp/net/rcirc.el (rcirc-log-directory): Use
locate-user-emacs-file.  (Bug#47880)

lisp/net/rcirc.el

index 7bb8ca671cf6417f34bdc91a91c832dfac521c72..7251640bf27b2fe7a0eb34e6dd649d809e46b1be 100644 (file)
@@ -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.