emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/annotate e1daa61b99 065/372: use `locate-user-emacs-file`


From: ELPA Syncer
Subject: [nongnu] elpa/annotate e1daa61b99 065/372: use `locate-user-emacs-file` to specify default save file
Date: Fri, 4 Feb 2022 16:58:19 -0500 (EST)

branch: elpa/annotate
commit e1daa61b99482e622dbf20f7b91a87547fbb4802
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>

    use `locate-user-emacs-file` to specify default save file
    
    It is recommended that Elisp packages save files in user-emacs-directory. 
The default value for it is `~/.emacs.d/`, and it has been changed by the user,
    `locate-user-emacs-file` is returns path in consideration of the change.
    
    And `locate-user-emacs-file` returns previous path if file exist in HOME, 
this change is not destructive.
    
    cf: http://emacs.rubikitch.com/new-files/
---
 annotate.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/annotate.el b/annotate.el
index c5d0314855..09aa162f43 100644
--- a/annotate.el
+++ b/annotate.el
@@ -68,7 +68,7 @@
 (define-key annotate-mode-map (kbd "C-c ]") 'annotate-next-annotation)
 (define-key annotate-mode-map (kbd "C-c [") 'annotate-previous-annotation)
 
-(defcustom annotate-file "~/.annotations"
+(defcustom annotate-file (locate-user-emacs-file "annotations" ".annotations")
   "File where annotations are stored."
   :type 'file
   :group 'annotate)



reply via email to

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