aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2013-03-11 22:08:21 -0400
committerStefan Monnier2013-03-11 22:08:21 -0400
commit940e5099142a1bb60e76ae2cbd1f47244cb2eb44 (patch)
tree31e8ce32a3bc7f2de7040584db2faab8f35436e3
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.
-rw-r--r--etc/NEWS20
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/calendar/timeclock.el2
-rw-r--r--lisp/calendar/todo-mode.el6
-rw-r--r--lisp/emulation/vip.el2
-rw-r--r--lisp/emulation/viper-cmd.el6
-rw-r--r--lisp/emulation/viper.el2
-rw-r--r--lisp/ido.el3
-rw-r--r--lisp/international/kkc.el2
-rw-r--r--lisp/net/quickurl.el3
-rw-r--r--lisp/progmodes/idlwave.el4
-rw-r--r--lisp/ps-bdf.el7
-rw-r--r--lisp/saveplace.el2
-rw-r--r--lisp/shadowfile.el10
-rw-r--r--lisp/strokes.el2
-rw-r--r--lisp/textmodes/remember.el2
-rw-r--r--lisp/type-break.el6
17 files changed, 65 insertions, 31 deletions
diff --git a/etc/NEWS b/etc/NEWS
index f7b986f6bfb..a4691f7f181 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -85,7 +85,25 @@ Eg View mode, etc.
85 85
86* Changes in Specialized Modes and Packages in Emacs 24.4 86* Changes in Specialized Modes and Packages in Emacs 24.4
87 87
88** Recentf looks for ~/.emacs.d/recentf additionally to ~/.recentf. 88** More packages look for ~/.emacs.d/<foo> additionally to ~/.<foo>.
89Affected files:
90~/.emacs.d/timelog replaces ~/.timelog
91~/.emacs.d/todo-do replaces ~/.todo-do
92~/.emacs.d/todo-done replaces ~/.todo-done
93~/.emacs.d/todo-top replaces ~/.todo-top
94~/.emacs.d/vip replaces ~/.vip
95~/.emacs.d/viper replaces ~/.viper
96~/.emacs.d/ido.last replaces ~/.ido.last
97~/.emacs.d/kkcrc replaces ~/.kkcrc
98~/.emacs.d/quickurls replaces ~/.quickurls
99~/.emacs.d/idlwave replaces ~/.idlwave
100~/.emacs.d/bdfcache.el replaces ~/.bdfcache.el
101~/.emacs.d/places replaces ~/.emacs-places
102~/.emacs.d/shadows replaces ~/.shadows
103~/.emacs.d/shadow_todo replaces ~/.shadow_todo
104~/.emacs.d/strokes replaces ~/.strokes
105~/.emacs.d/notes replaces ~/.notes
106~/.emacs.d/type-break replaces ~/.type-break
89 107
90** Delphi mode is now called OPascal mode. 108** Delphi mode is now called OPascal mode.
91*** All delphi-* variables and functions have been renamed to opascal-*. 109*** All delphi-* variables and functions have been renamed to opascal-*.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e24b7198f53..a1a75d2b5aa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,20 @@
12013-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * type-break.el (type-break-file-name):
4 * textmodes/remember.el (remember-data-file):
5 * strokes.el (strokes-file):
6 * shadowfile.el (shadow-initialize):
7 * saveplace.el (save-place-file):
8 * ps-bdf.el (bdf-cache-file):
9 * progmodes/idlwave.el (idlwave-config-directory):
10 * net/quickurl.el (quickurl-url-file):
11 * international/kkc.el (kkc-init-file-name):
12 * ido.el (ido-save-directory-list-file):
13 * emulation/viper.el (viper-custom-file-name):
14 * emulation/vip.el (vip-startup-file):
15 * calendar/todo-mode.el (todo-file-do, todo-file-done, todo-file-top):
16 * calendar/timeclock.el (timeclock-file): Use locate-user-emacs-file.
17
12013-03-12 Paul Eggert <eggert@cs.ucla.edu> 182013-03-12 Paul Eggert <eggert@cs.ucla.edu>
2 19
3 Switch encodings of tutorials, thai-word to UTF-8 (Bug#13880). 20 Switch encodings of tutorials, thai-word to UTF-8 (Bug#13880).
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el
index a872e86dcf2..70d064143dc 100644
--- a/lisp/calendar/timeclock.el
+++ b/lisp/calendar/timeclock.el
@@ -81,7 +81,7 @@
81 81
82;;; User Variables: 82;;; User Variables:
83 83
84(defcustom timeclock-file (convert-standard-filename "~/.timelog") 84(defcustom timeclock-file (locate-user-emacs-file "timelog" ".timelog")
85 "The file used to store timeclock data in." 85 "The file used to store timeclock data in."
86 :type 'file 86 :type 'file
87 :group 'timeclock) 87 :group 'timeclock)
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el
index fdbcb04c9db..c109ecefb7d 100644
--- a/lisp/calendar/todo-mode.el
+++ b/lisp/calendar/todo-mode.el
@@ -281,11 +281,11 @@ show and mark todo entries for today, but may slow down processing of
281the diary file somewhat." 281the diary file somewhat."
282 :type 'string 282 :type 'string
283 :group 'todo) 283 :group 'todo)
284(defcustom todo-file-do (convert-standard-filename "~/.todo-do") 284(defcustom todo-file-do (locate-user-emacs-file "todo-do" ".todo-do")
285 "TODO mode list file." 285 "TODO mode list file."
286 :type 'file 286 :type 'file
287 :group 'todo) 287 :group 'todo)
288(defcustom todo-file-done (convert-standard-filename "~/.todo-done") 288(defcustom todo-file-done (locate-user-emacs-file "todo-done" ".todo-done")
289 "TODO mode archive file." 289 "TODO mode archive file."
290 :type 'file 290 :type 'file
291 :group 'todo) 291 :group 'todo)
@@ -315,7 +315,7 @@ window."
315 :group 'todo) 315 :group 'todo)
316(defvar todo-edit-buffer " *TODO Edit*" 316(defvar todo-edit-buffer " *TODO Edit*"
317 "TODO Edit buffer name.") 317 "TODO Edit buffer name.")
318(defcustom todo-file-top (convert-standard-filename "~/.todo-top") 318(defcustom todo-file-top (locate-user-emacs-file "todo-top" ".todo-top")
319 "TODO mode top priorities file. 319 "TODO mode top priorities file.
320 320
321Not in TODO format, but diary compatible. 321Not in TODO format, but diary compatible.
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el
index e086f26e8ab..ce131b854f5 100644
--- a/lisp/emulation/vip.el
+++ b/lisp/emulation/vip.el
@@ -159,7 +159,7 @@ If nil then it is bound to `delete-backward-char'."
159 159
160(defvar vip-inhibit-startup-message nil) 160(defvar vip-inhibit-startup-message nil)
161 161
162(defvar vip-startup-file (convert-standard-filename "~/.vip") 162(defvar vip-startup-file (locate-user-emacs-file "vip" ".vip")
163 "Filename used as startup file for vip.") 163 "Filename used as startup file for vip.")
164 164
165;; key bindings 165;; key bindings
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 3813c304de1..d0c0a4b4019 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -1009,9 +1009,9 @@ as a Meta key and any number of multiple escapes are allowed."
1009 (inhibit-quit t)) 1009 (inhibit-quit t))
1010 (if (viper-ESC-event-p event) 1010 (if (viper-ESC-event-p event)
1011 (progn 1011 (progn
1012 ;; Some versions of Emacs (eg., 22.50.8 have a bug, which makes even 1012 ;; Some versions of Emacs (eg., 22.50.8 (?)) have a bug, which makes
1013 ;; a single ESC into ;; a fast keyseq. To guard against this, we 1013 ;; even a single ESC into a fast keyseq. To guard against this, we
1014 ;; added a check if there are other events as well. Keep the next 1014 ;; added a check if there are other events as well. Keep the next
1015 ;; line for the next time the bug reappears, so that will remember to 1015 ;; line for the next time the bug reappears, so that will remember to
1016 ;; report it. 1016 ;; report it.
1017 ;;(if (and (viper-fast-keysequence-p) unread-command-events) 1017 ;;(if (and (viper-fast-keysequence-p) unread-command-events)
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index df419420bd4..7f432cdc143 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -313,7 +313,7 @@
313(require 'viper-keym) 313(require 'viper-keym)
314 314
315;; better be defined before Viper custom group. 315;; better be defined before Viper custom group.
316(defvar viper-custom-file-name (convert-standard-filename "~/.viper") 316(defvar viper-custom-file-name (locate-user-emacs-file "viper" ".viper")
317 "Viper customization file. 317 "Viper customization file.
318If set by the user, this must be done _before_ Viper is loaded in `~/.emacs'.") 318If set by the user, this must be done _before_ Viper is loaded in `~/.emacs'.")
319 319
diff --git a/lisp/ido.el b/lisp/ido.el
index 066d8276af5..589f44175eb 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -927,7 +927,8 @@ ido is running. Copied from `icomplete-minibuffer-setup-hook'."
927 :type 'hook 927 :type 'hook
928 :group 'ido) 928 :group 'ido)
929 929
930(defcustom ido-save-directory-list-file (convert-standard-filename "~/.ido.last") 930(defcustom ido-save-directory-list-file
931 (locate-user-emacs-file "ido.last" ".ido.last")
931 "File in which the ido state is saved between invocations. 932 "File in which the ido state is saved between invocations.
932Variables stored are: `ido-last-directory-list', `ido-work-directory-list', 933Variables stored are: `ido-last-directory-list', `ido-work-directory-list',
933`ido-work-file-list', and `ido-dir-file-cache'. 934`ido-work-file-list', and `ido-dir-file-cache'.
diff --git a/lisp/international/kkc.el b/lisp/international/kkc.el
index 03576442ed8..a7d3ac5d017 100644
--- a/lisp/international/kkc.el
+++ b/lisp/international/kkc.el
@@ -40,7 +40,7 @@
40 "String denoting KKC input method. 40 "String denoting KKC input method.
41This string is shown at mode line when users are in KKC mode.") 41This string is shown at mode line when users are in KKC mode.")
42 42
43(defvar kkc-init-file-name (convert-standard-filename "~/.kkcrc") 43(defvar kkc-init-file-name (locate-user-emacs-file "kkcrc" ".kkcrc")
44 "Name of a file which contains user's initial setup code for KKC.") 44 "Name of a file which contains user's initial setup code for KKC.")
45 45
46;; A flag to control a file specified by `kkc-init-file-name'. 46;; A flag to control a file specified by `kkc-init-file-name'.
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el
index 1de9feb1341..1e05d8db336 100644
--- a/lisp/net/quickurl.el
+++ b/lisp/net/quickurl.el
@@ -94,7 +94,8 @@
94 :group 'abbrev 94 :group 'abbrev
95 :prefix "quickurl-") 95 :prefix "quickurl-")
96 96
97(defcustom quickurl-url-file (convert-standard-filename "~/.quickurls") 97(defcustom quickurl-url-file
98 (locate-user-emacs-file "quickurls" ".quickurls")
98 "File that contains the URL list." 99 "File that contains the URL list."
99 :type 'file 100 :type 'file
100 :group 'quickurl) 101 :group 'quickurl)
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index ab65933416b..aeaf1acb2ac 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -27,7 +27,7 @@
27;;; Commentary: 27;;; Commentary:
28 28
29;; IDLWAVE enables feature-rich development and interaction with IDL, 29;; IDLWAVE enables feature-rich development and interaction with IDL,
30;; the Interactive Data Language. It provides a compelling, 30;; the Interactive Data Language. It provides a compelling,
31;; full-featured alternative to the IDLDE development environment 31;; full-featured alternative to the IDLDE development environment
32;; bundled with IDL. 32;; bundled with IDL.
33 33
@@ -447,7 +447,7 @@ value of `!DIR'. See also `idlwave-library-path'."
447 447
448;; Configuration files 448;; Configuration files
449(defcustom idlwave-config-directory 449(defcustom idlwave-config-directory
450 (convert-standard-filename "~/.idlwave") 450 (locate-user-emacs-file "idlwave" ".idlwave")
451 "Directory for configuration files and user-library catalog." 451 "Directory for configuration files and user-library catalog."
452 :group 'idlwave-routine-info 452 :group 'idlwave-routine-info
453 :type 'file) 453 :type 'file)
diff --git a/lisp/ps-bdf.el b/lisp/ps-bdf.el
index 832d1cf55bc..98dd2800b77 100644
--- a/lisp/ps-bdf.el
+++ b/lisp/ps-bdf.el
@@ -91,12 +91,7 @@ If BDFNAME doesn't exist, return nil."
91 (insert-file-contents bdfname) 91 (insert-file-contents bdfname)
92 buf)))) 92 buf))))
93 93
94(defvar bdf-cache-file (if (eq system-type 'ms-dos) 94(defvar bdf-cache-file (locate-user-emacs-file "bdfcache.el" ".bdfcache.el")
95 ;; convert-standard-filename doesn't
96 ;; guarantee that the .el extension will be
97 ;; preserved.
98 "~/_bdfcache.el"
99 (convert-standard-filename "~/.bdfcache.el"))
100 "Name of cache file which contains information of `BDF' font files.") 95 "Name of cache file which contains information of `BDF' font files.")
101 96
102(defvar bdf-cache nil 97(defvar bdf-cache nil
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index baa6b794fc4..ef2f5469e29 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -68,7 +68,7 @@ following code in your init file:
68 68
69(make-variable-buffer-local 'save-place) 69(make-variable-buffer-local 'save-place)
70 70
71(defcustom save-place-file (convert-standard-filename "~/.emacs-places") 71(defcustom save-place-file (locate-user-emacs-file "places" ".emacs-places")
72 "Name of the file that records `save-place-alist' value." 72 "Name of the file that records `save-place-alist' value."
73 :type 'file 73 :type 'file
74 :group 'save-place) 74 :group 'save-place)
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")
diff --git a/lisp/strokes.el b/lisp/strokes.el
index 5acd0dc0120..2c3c3bc6dd4 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -260,7 +260,7 @@ WARNING: Changing the value of this variable will gravely affect the
260 :type 'integer 260 :type 'integer
261 :group 'strokes) 261 :group 'strokes)
262 262
263(defcustom strokes-file (convert-standard-filename "~/.strokes") 263(defcustom strokes-file (locate-user-emacs-file "strokes" ".strokes")
264 "File containing saved strokes for Strokes mode (default is ~/.strokes)." 264 "File containing saved strokes for Strokes mode (default is ~/.strokes)."
265 :type 'file 265 :type 'file
266 :group 'strokes) 266 :group 'strokes)
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el
index eeb04ef250f..16b99627400 100644
--- a/lisp/textmodes/remember.el
+++ b/lisp/textmodes/remember.el
@@ -380,7 +380,7 @@ Subject: %s\n\n"
380 380
381;; Remembering to plain files 381;; Remembering to plain files
382 382
383(defcustom remember-data-file (convert-standard-filename "~/.notes") 383(defcustom remember-data-file (locate-user-emacs-file "notes" ".notes")
384 "The file in which to store unprocessed data." 384 "The file in which to store unprocessed data."
385 :type 'file 385 :type 'file
386 :group 'remember) 386 :group 'remember)
diff --git a/lisp/type-break.el b/lisp/type-break.el
index 212ac392e01..3ddf2e2d20a 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -204,11 +204,11 @@ key is pressed."
204 :type 'boolean 204 :type 'boolean
205 :group 'type-break) 205 :group 'type-break)
206 206
207(defcustom type-break-file-name (convert-standard-filename "~/.type-break") 207(defcustom type-break-file-name
208 (locate-user-emacs-file "type-break" ".type-break")
208 "Name of file used to save state across sessions. 209 "Name of file used to save state across sessions.
209If this is nil, no data will be saved across sessions." 210If this is nil, no data will be saved across sessions."
210 :type 'file 211 :type 'file)
211 :group 'type-break)
212 212
213(defvar type-break-post-command-hook '(type-break-check) 213(defvar type-break-post-command-hook '(type-break-check)
214 "Hook run indirectly by `post-command-hook' for typing break functions. 214 "Hook run indirectly by `post-command-hook' for typing break functions.