aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/shadowfile.el
diff options
context:
space:
mode:
authorStefan Monnier2013-03-11 22:08:21 -0400
committerStefan Monnier2013-03-11 22:08:21 -0400
commit940e5099142a1bb60e76ae2cbd1f47244cb2eb44 (patch)
tree31e8ce32a3bc7f2de7040584db2faab8f35436e3 /lisp/shadowfile.el
parentcc72580827719a5012d4ac703c09f92e721f61de (diff)
downloademacs-940e5099142a1bb60e76ae2cbd1f47244cb2eb44.tar.gz
emacs-940e5099142a1bb60e76ae2cbd1f47244cb2eb44.zip
Use locate-user-emacs-file.
* lisp/type-break.el (type-break-file-name): * lisp/textmodes/remember.el (remember-data-file): * lisp/strokes.el (strokes-file): * lisp/shadowfile.el (shadow-initialize): * lisp/saveplace.el (save-place-file): * lisp/ps-bdf.el (bdf-cache-file): * lisp/progmodes/idlwave.el (idlwave-config-directory): * lisp/net/quickurl.el (quickurl-url-file): * lisp/international/kkc.el (kkc-init-file-name): * lisp/ido.el (ido-save-directory-list-file): * lisp/emulation/viper.el (viper-custom-file-name): * lisp/emulation/vip.el (vip-startup-file): * lisp/calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top): * lisp/calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.
Diffstat (limited to 'lisp/shadowfile.el')
-rw-r--r--lisp/shadowfile.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index d10ea99afb1..ec6e6e7ff10 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -651,7 +651,7 @@ Return t unless files were locked; then return nil."
651 (beep) 651 (beep)
652 (sit-for 3) 652 (sit-for 3)
653 nil) 653 nil)
654 (save-excursion 654 (save-current-buffer
655 (when shadow-info-file 655 (when shadow-info-file
656 (set-buffer (setq shadow-info-buffer 656 (set-buffer (setq shadow-info-buffer
657 (find-file-noselect shadow-info-file))) 657 (find-file-noselect shadow-info-file)))
@@ -683,7 +683,7 @@ Also clear `shadow-hashtable', since when there are new shadows
683defined, the old hashtable info is invalid." 683defined, the old hashtable info is invalid."
684 (shadow-invalidate-hashtable) 684 (shadow-invalidate-hashtable)
685 (if shadow-info-file 685 (if shadow-info-file
686 (save-excursion 686 (save-current-buffer
687 (if (not shadow-info-buffer) 687 (if (not shadow-info-buffer)
688 (setq shadow-info-buffer (find-file-noselect shadow-info-file))) 688 (setq shadow-info-buffer (find-file-noselect shadow-info-file)))
689 (set-buffer shadow-info-buffer) 689 (set-buffer shadow-info-buffer)
@@ -802,11 +802,13 @@ look for files that have been changed and need to be copied to other systems."
802 (file-name-as-directory (shadow-expand-file-name "~")))) 802 (file-name-as-directory (shadow-expand-file-name "~"))))
803 (if (null shadow-info-file) 803 (if (null shadow-info-file)
804 (setq shadow-info-file 804 (setq shadow-info-file
805 (shadow-expand-file-name (convert-standard-filename "~/.shadows")))) 805 ;; FIXME: Move defaults to their defcustom.
806 (shadow-expand-file-name
807 (locate-user-emacs-file "shadows" ".shadows"))))
806 (if (null shadow-todo-file) 808 (if (null shadow-todo-file)
807 (setq shadow-todo-file 809 (setq shadow-todo-file
808 (shadow-expand-file-name 810 (shadow-expand-file-name
809 (convert-standard-filename "~/.shadow_todo")))) 811 (locate-user-emacs-file "shadow_todo" ".shadow_todo"))))
810 (if (not (shadow-read-files)) 812 (if (not (shadow-read-files))
811 (progn 813 (progn
812 (message "Shadowfile information files not found - aborting") 814 (message "Shadowfile information files not found - aborting")