]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer locate-user-emacs-file in gitmerge.el
authorStefan Kangas <stefan@marxist.se>
Tue, 23 Nov 2021 10:39:21 +0000 (11:39 +0100)
committerStefan Kangas <stefan@marxist.se>
Tue, 23 Nov 2021 10:41:02 +0000 (11:41 +0100)
* admin/gitmerge.el (gitmerge-status-file): Prefer
'locate-user-emacs-file' to fiddling with 'user-emacs-directory'.

admin/gitmerge.el

index 67fca87c119ebe514b54ed37dcaf89ffcfa25bd9..658ceb77f499c9f6dbcf3073ebfa6afb41d8b8be 100644 (file)
@@ -68,8 +68,7 @@ bump Emacs version\\|Auto-commit"))
 (defvar gitmerge-minimum-missing 10
   "Minimum number of missing commits to consider merging in batch mode.")
 
-(defvar gitmerge-status-file (expand-file-name "gitmerge-status"
-                                              user-emacs-directory)
+(defvar gitmerge-status-file (locate-user-emacs-file "gitmerge-status")
   "File where missing commits will be saved between sessions.")
 
 (defvar gitmerge-ignore-branches-regexp