emacs-diffs
[Top][All Lists]
Advanced

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

master 869e437: Don't hard-code "~/.emacs.d/" in rcirc.el


From: Stefan Kangas
Subject: master 869e437: Don't hard-code "~/.emacs.d/" in rcirc.el
Date: Mon, 19 Apr 2021 03:31:26 -0400 (EDT)

branch: master
commit 869e437c10e001c865a4d7e3d79deffb76456539
Author: Philip K <philipk@posteo.net>
Commit: Stefan Kangas <stefan@marxist.se>

    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 7bb8ca6..7251640 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.



reply via email to

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