aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-01-26 18:02:28 -0800
committerGlenn Morris2014-01-26 18:02:28 -0800
commitece4bae50f6ca8d03d076aa33eedd014a3af8c41 (patch)
tree66910ffa712f0643475284089989667641d1d5d2
parent6ea71a445d523ff95a2cd6ae0cbde8bd7ca8d878 (diff)
downloademacs-ece4bae50f6ca8d03d076aa33eedd014a3af8c41.tar.gz
emacs-ece4bae50f6ca8d03d076aa33eedd014a3af8c41.zip
Doc, comment, etc updates for increased use of locate-user-emacs-file
This should have been a prerequisite for making these changes in the first place. * doc/emacs/calendar.texi (Time Intervals): * doc/misc/idlwave.texi (Lesson III---User Catalog, Online Help) (Starting the Shell, Catalogs, User Catalog): * doc/misc/remember.texi (Quick Start): * doc/misc/viper.texi: * doc/misc/vip.texi (Customization, Customizing Constants) (Customizing Key Bindings): Update for files being in ~/.emacs.d/. * lisp/ido.el (ido-save-directory-list-file): * lisp/saveplace.el (save-place-file): * lisp/calendar/timeclock.el (timeclock-file): * lisp/net/quickurl.el (quickurl-url-file): * lisp/obsolete/otodo-mode.el (todo-file-do, todo-file-done, todo-file-top): * lisp/progmodes/idlwave.el (idlwave-config-directory): * lisp/textmodes/remember.el (remember-data-file): Bump :version. * lisp/shadowfile.el (shadow-info-file, shadow-todo-file): Doc fix. * lisp/strokes.el (strokes-file): Doc fix. Bump :version. (strokes-help): Doc fix. * lisp/emulation/viper-init.el (viper-vi-style-in-minibuffer): Doc fix. * lisp/emulation/viper.el (viper): Doc fix for custom group. (top-level): Remove oh-so-no-longer-relevant text about vip. * lisp/obsolete/otodo-mode.el (todo-prefix): Doc fix. * etc/NEWS: Related edits.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/calendar.texi4
-rw-r--r--doc/misc/ChangeLog9
-rw-r--r--doc/misc/idlwave.texi14
-rw-r--r--doc/misc/remember.texi4
-rw-r--r--doc/misc/vip.texi8
-rw-r--r--doc/misc/viper.texi130
-rw-r--r--etc/NEWS12
-rw-r--r--lisp/ChangeLog19
-rw-r--r--lisp/calendar/timeclock.el3
-rw-r--r--lisp/emulation/viper-ex.el3
-rw-r--r--lisp/emulation/viper-init.el2
-rw-r--r--lisp/emulation/viper-keym.el4
-rw-r--r--lisp/emulation/viper-macs.el22
-rw-r--r--lisp/emulation/viper.el33
-rw-r--r--lisp/ido.el1
-rw-r--r--lisp/net/quickurl.el1
-rw-r--r--lisp/obsolete/otodo-mode.el7
-rw-r--r--lisp/progmodes/idlwave.el1
-rw-r--r--lisp/saveplace.el1
-rw-r--r--lisp/shadowfile.el28
-rw-r--r--lisp/strokes.el15
-rw-r--r--lisp/textmodes/remember.el3
-rw-r--r--lisp/type-break.el4
24 files changed, 189 insertions, 143 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index ce43ff1a474..3f141aca99b 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,7 @@
12014-01-27 Glenn Morris <rgm@gnu.org>
2
3 * calendar.texi (Time Intervals): Update for files in ~/.emacs.d/.
4
12014-01-26 Glenn Morris <rgm@gnu.org> 52014-01-26 Glenn Morris <rgm@gnu.org>
2 6
3 * ack.texi (Acknowledgments): 7 * ack.texi (Acknowledgments):
diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi
index b403dfdf78b..ef6d44a968f 100644
--- a/doc/emacs/calendar.texi
+++ b/doc/emacs/calendar.texi
@@ -1616,11 +1616,11 @@ you. You can, however, customize the value of the variable
1616then, only an explicit @kbd{M-x timeclock-out} or @kbd{M-x 1616then, only an explicit @kbd{M-x timeclock-out} or @kbd{M-x
1617timeclock-change} will tell Emacs that the current interval is over. 1617timeclock-change} will tell Emacs that the current interval is over.
1618 1618
1619@cindex @file{.timelog} file 1619@cindex @file{timelog} file
1620@vindex timeclock-file 1620@vindex timeclock-file
1621@findex timeclock-reread-log 1621@findex timeclock-reread-log
1622 The timeclock functions work by accumulating the data in a file 1622 The timeclock functions work by accumulating the data in a file
1623called @file{.timelog} in your home directory. You can specify a 1623called @file{~/.emacs.d/timelog}. You can specify a
1624different name for this file by customizing the variable 1624different name for this file by customizing the variable
1625@code{timeclock-file}. If you edit the timeclock file manually, or if 1625@code{timeclock-file}. If you edit the timeclock file manually, or if
1626you change the value of any of timeclock's customizable variables, you 1626you change the value of any of timeclock's customizable variables, you
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index 589f0060840..33f6057e94f 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,3 +1,12 @@
12014-01-27 Glenn Morris <rgm@gnu.org>
2
3 * idlwave.texi (Lesson III---User Catalog, Online Help)
4 (Starting the Shell, Catalogs, User Catalog):
5 * remember.texi (Quick Start):
6 * viper.texi:
7 * vip.texi (Customization, Customizing Constants)
8 (Customizing Key Bindings): Update for files being in ~/.emacs.d/.
9
12014-01-25 Xue Fuqiao <xfq.free@gmail.com> 102014-01-25 Xue Fuqiao <xfq.free@gmail.com>
2 11
3 * cc-mode.texi (Minor Modes): Minor fix. 12 * cc-mode.texi (Minor Modes): Minor fix.
diff --git a/doc/misc/idlwave.texi b/doc/misc/idlwave.texi
index c4719dcd039..b56b311e273 100644
--- a/doc/misc/idlwave.texi
+++ b/doc/misc/idlwave.texi
@@ -689,8 +689,8 @@ you want; directories with existing library catalogs will not be
689selected by default) and click on the @samp{Scan&Save} button. Then 689selected by default) and click on the @samp{Scan&Save} button. Then
690go for a cup of coffee while IDLWAVE collects information for each and 690go for a cup of coffee while IDLWAVE collects information for each and
691every IDL routine on your search path. All this information is 691every IDL routine on your search path. All this information is
692written to the file @file{.idlwave/idlusercat.el} in your home 692written to the file @file{~/.emacs.d/idlwave/idlusercat.el}
693directory and will from now on automatically load whenever you use 693and will from now on automatically load whenever you use
694IDLWAVE@. You may find it necessary to rebuild the catalog on occasion 694IDLWAVE@. You may find it necessary to rebuild the catalog on occasion
695as your local libraries change, or build a library catalog for those 695as your local libraries change, or build a library catalog for those
696directories instead. Invoke routine info (@kbd{C-c ?}) or completion 696directories instead. Invoke routine info (@kbd{C-c ?}) or completion
@@ -1262,7 +1262,7 @@ directly with IDL, along with an XML-based catalog of routine
1262information. By default, IDLWAVE automatically attempts to convert this 1262information. By default, IDLWAVE automatically attempts to convert this
1263XML catalog into a format Emacs can more easily understand, and caches 1263XML catalog into a format Emacs can more easily understand, and caches
1264this information in your @code{idlwave_config_directory} 1264this information in your @code{idlwave_config_directory}
1265(@file{~/.idlwave/}, by default). It also re-scans the XML catalog if 1265(@file{~/.emacs.d/idlwave/}, by default). It also re-scans the XML catalog if
1266it is newer than the current cached version. You can force rescan with 1266it is newer than the current cached version. You can force rescan with
1267the menu entry @code{IDLWAVE->Routine Info->Rescan XML Help Catalog}. 1267the menu entry @code{IDLWAVE->Routine Info->Rescan XML Help Catalog}.
1268 1268
@@ -2466,7 +2466,7 @@ Initial commands, separated by newlines, to send to IDL.
2466Non-@code{nil} means preserve command history between sessions. 2466Non-@code{nil} means preserve command history between sessions.
2467@end defopt 2467@end defopt
2468 2468
2469@defopt idlwave-shell-command-history-file (@file{~/.idlwave/.idlwhist}) 2469@defopt idlwave-shell-command-history-file (@file{~/.emacs.d/idlwave/.idlwhist})
2470The file in which the command history of the idlwave shell is saved. 2470The file in which the command history of the idlwave shell is saved.
2471Unless it's an absolute path, it goes in 2471Unless it's an absolute path, it goes in
2472@code{idlwave-config-directory}. 2472@code{idlwave-config-directory}.
@@ -3518,7 +3518,7 @@ information (e.g., Windows), a library path must be specified in
3518to setup directories for user catalog scan (@pxref{User Catalog} for 3518to setup directories for user catalog scan (@pxref{User Catalog} for
3519more on this variable). Note that, before the shell is running, IDLWAVE 3519more on this variable). Note that, before the shell is running, IDLWAVE
3520can only know about the IDL search path by consulting the file pointed 3520can only know about the IDL search path by consulting the file pointed
3521to by @code{idlwave-path-file} (@file{~/.idlwave/idlpath.el}, by 3521to by @code{idlwave-path-file} (@file{~/.emacs.d/idlwave/idlpath.el}, by
3522default). If @code{idlwave-auto-write-path} is enabled (which is the 3522default). If @code{idlwave-auto-write-path} is enabled (which is the
3523default), the paths are written out whenever the IDLWAVE shell is 3523default), the paths are written out whenever the IDLWAVE shell is
3524started. 3524started.
@@ -3540,7 +3540,7 @@ locating HTML help and the IDL Assistant for IDL v6.2 and later. Under
3540Unix/MacOSX, will be obtained from the Shell and recorded, if run. 3540Unix/MacOSX, will be obtained from the Shell and recorded, if run.
3541@end defopt 3541@end defopt
3542 3542
3543@defopt idlwave-config-directory (@file{~/.idlwave}) 3543@defopt idlwave-config-directory (@file{~/.emacs.d/idlwave})
3544Default path where IDLWAVE saves configuration information, a user 3544Default path where IDLWAVE saves configuration information, a user
3545catalog (if any), and a cached scan of the XML catalog (IDL v6.2 and 3545catalog (if any), and a cached scan of the XML catalog (IDL v6.2 and
3546later). 3546later).
@@ -3629,7 +3629,7 @@ performance is a problem and/or the catalogs are not needed.
3629 3629
3630The user catalog is the old routine catalog system. It is produced 3630The user catalog is the old routine catalog system. It is produced
3631within Emacs, and stored in a single file in the user's home directory 3631within Emacs, and stored in a single file in the user's home directory
3632(@file{.idlwave/idlusercat.el} by default). Although library catalogs 3632(@file{.emacs.d/idlwave/idlusercat.el} by default). Although library catalogs
3633are more flexible, there may be reasons to prefer a user catalog 3633are more flexible, there may be reasons to prefer a user catalog
3634instead, including: 3634instead, including:
3635 3635
diff --git a/doc/misc/remember.texi b/doc/misc/remember.texi
index a32c71f7d66..d9c11cea424 100644
--- a/doc/misc/remember.texi
+++ b/doc/misc/remember.texi
@@ -203,7 +203,7 @@ Type @kbd{C-c C-c} (@code{remember-finalize}) to save the note and close
203the @samp{*Remember*} buffer. 203the @samp{*Remember*} buffer.
204@end itemize 204@end itemize
205 205
206By default, @code{remember-finalize} saves the note in @file{~/.notes}. 206By default, @code{remember-finalize} saves the note in @file{~/emacs.d/notes}.
207You can edit it now to see the remembered and timestamped note. You 207You can edit it now to see the remembered and timestamped note. You
208can edit this file however you want. New entries will always be added 208can edit this file however you want. New entries will always be added
209to the end. 209to the end.
@@ -213,7 +213,7 @@ remember} displays a @samp{*Remember*} buffer with the region as the
213initial contents. 213initial contents.
214 214
215As a simple beginning, you can start by using the Text File backend, 215As a simple beginning, you can start by using the Text File backend,
216keeping your @file{~/.notes} file in outline-mode format, with a final 216keeping your @file{~/.emacs.d/notes} file in outline-mode format, with a final
217entry called @samp{* Raw data}. Remembered data will be added to the 217entry called @samp{* Raw data}. Remembered data will be added to the
218end of the file. Every so often, you can move the data that gets 218end of the file. Every so often, you can move the data that gets
219appended there into other files, or reorganize your document. 219appended there into other files, or reorganize your document.
diff --git a/doc/misc/vip.texi b/doc/misc/vip.texi
index 40701054d5a..367ed2adb4c 100644
--- a/doc/misc/vip.texi
+++ b/doc/misc/vip.texi
@@ -1863,7 +1863,7 @@ The following Ex commands are available in Vi, but not implemented in VIP.
1863@node Customization 1863@node Customization
1864@chapter Customization 1864@chapter Customization
1865 1865
1866If you have a file called @file{.vip} in your home directory, then it 1866If you have a file called @file{~/.emacs.d/vip} (or @file{~/.vip}), then it
1867will also be loaded when VIP is loaded. This file is thus useful for 1867will also be loaded when VIP is loaded. This file is thus useful for
1868customizing VIP. 1868customizing VIP.
1869 1869
@@ -1903,7 +1903,7 @@ if @code{nil} then it sis bound to @code{delete-backward-char}.
1903@end table 1903@end table
1904@noindent 1904@noindent
1905You can reset these constants in VIP by the Ex command @kbd{set}. Or you 1905You can reset these constants in VIP by the Ex command @kbd{set}. Or you
1906can include a line like this in your @file{.vip} file: 1906can include a line like this in your @file{~/.emacs.d/vip} file:
1907@example 1907@example
1908(setq vip-case-fold-search t) 1908(setq vip-case-fold-search t)
1909@end example 1909@end example
@@ -1916,8 +1916,8 @@ can include a line like this in your @file{.vip} file:
1916VIP uses @code{vip-command-mode-map} as the @dfn{local keymap} for vi mode. 1916VIP uses @code{vip-command-mode-map} as the @dfn{local keymap} for vi mode.
1917For example, in vi mode, @key{SPC} is bound to the function 1917For example, in vi mode, @key{SPC} is bound to the function
1918@code{vip-scroll}. But, if you wish to make @key{SPC} and some other keys 1918@code{vip-scroll}. But, if you wish to make @key{SPC} and some other keys
1919 behave like Vi, you can include the following lines in your @file{.vip} 1919 behave like Vi, you can include the following lines in your
1920file. 1920@file{~/.emacs.d/vip} file.
1921 1921
1922@example 1922@example
1923(define-key vip-command-mode-map "\C-g" 'vip-info-on-file) 1923(define-key vip-command-mode-map "\C-g" 'vip-info-on-file)
diff --git a/doc/misc/viper.texi b/doc/misc/viper.texi
index 0048d1363f3..ee3a4d057ee 100644
--- a/doc/misc/viper.texi
+++ b/doc/misc/viper.texi
@@ -170,8 +170,8 @@ world of Vi! These users are well familiar with Emacs bindings and prefer them
170in some cases, especially in the Vi Insert state. John Hawkins 170in some cases, especially in the Vi Insert state. John Hawkins
171<jshawkin@@eecs.umich.edu> has provided a set of customizations, which 171<jshawkin@@eecs.umich.edu> has provided a set of customizations, which
172enables additional Emacs bindings under Viper. These customizations can be 172enables additional Emacs bindings under Viper. These customizations can be
173included in your @file{~/.viper} file and are found at the following URL: 173included in your @file{~/.emacs.d/viper} file and are found at the
174@file{http://traeki.freeshell.org/files/viper-sample}. 174following URL: @file{http://traeki.freeshell.org/files/viper-sample}.
175 175
176@menu 176@menu
177* Emacs Preliminaries:: Basic concepts in Emacs. 177* Emacs Preliminaries:: Basic concepts in Emacs.
@@ -329,14 +329,14 @@ the place where all general Emacs customization takes place. Beginning with
329version 20.0, Emacsen have an interactive interface, which simplifies the 329version 20.0, Emacsen have an interactive interface, which simplifies the
330job of customization significantly. 330job of customization significantly.
331 331
332Viper also uses the file @file{~/.viper} for Viper-specific customization. 332Viper also uses the file @file{~/.emacs.d/viper} for Viper-specific customization.
333The location of Viper customization file can be changed by setting the 333The location of Viper customization file can be changed by setting the
334variable @code{viper-custom-file-name} in @file{.emacs} @emph{prior} to loading 334variable @code{viper-custom-file-name} in @file{.emacs} @emph{prior} to loading
335Viper. 335Viper.
336 336
337The latest versions of Emacs have an interactive customization facility, 337The latest versions of Emacs have an interactive customization facility,
338which allows you to (mostly) bypass the use of the @file{.emacs} and 338which allows you to (mostly) bypass the use of the @file{.emacs} and
339@file{.viper} files. You can reach this customization 339@code{viper-custom-file-name} files. You can reach this customization
340facility from within Viper's VI state by executing the Ex command 340facility from within Viper's VI state by executing the Ex command
341@kbd{:customize}. 341@kbd{:customize}.
342 342
@@ -611,8 +611,8 @@ is slightly different from other programs. It is designed to minimize the
611need for deleting file names that Emacs provides in its prompts. (This is 611need for deleting file names that Emacs provides in its prompts. (This is
612usually convenient, but occasionally the prompt may suggest a wrong file 612usually convenient, but occasionally the prompt may suggest a wrong file
613name for you.) If you see a prompt @kbd{/usr/foo/} and you wish to edit the 613name for you.) If you see a prompt @kbd{/usr/foo/} and you wish to edit the
614file @kbd{~/.viper}, you don't have to erase the prompt. Instead, simply 614file @kbd{~/.file}, you don't have to erase the prompt. Instead, simply
615continue typing what you need. Emacs will interpret @kbd{/usr/foo/~/.viper} 615continue typing what you need. Emacs will interpret @kbd{/usr/foo/~/.file}
616correctly. Similarly, if the prompt is @kbd{~/foo/} and you need to get to 616correctly. Similarly, if the prompt is @kbd{~/foo/} and you need to get to
617@kbd{/bar/file}, keep typing. Emacs interprets @kbd{~/foo//bar/} as 617@kbd{/bar/file}, keep typing. Emacs interprets @kbd{~/foo//bar/} as
618@kbd{/bar/file}, since when it sees @samp{//}, it understands that 618@kbd{/bar/file}, since when it sees @samp{//}, it understands that
@@ -795,8 +795,8 @@ between the Vi state and Insert state at will, and even use the replace mode.
795Initially, the minibuffer comes up in Insert state. 795Initially, the minibuffer comes up in Insert state.
796 796
797Some users prefer plain Emacs bindings in the minibuffer. To this end, set 797Some users prefer plain Emacs bindings in the minibuffer. To this end, set
798@code{viper-vi-style-in-minibuffer} to @code{nil} in @file{.viper}. 798@code{viper-vi-style-in-minibuffer} to @code{nil} in
799@xref{Customization}, to learn how to do this. 799your Viper customization file. @xref{Customization}, to learn how to do this.
800 800
801When the minibuffer changes Viper states, you will notice that the appearance 801When the minibuffer changes Viper states, you will notice that the appearance
802of the text there changes as well. This is useful because the minibuffer 802of the text there changes as well. This is useful because the minibuffer
@@ -989,8 +989,8 @@ In the Overview chapter, some Multiple File issues were discussed
989(@pxref{Multiple Files in Viper}). In addition to the files, Emacs has 989(@pxref{Multiple Files in Viper}). In addition to the files, Emacs has
990buffers. These can be seen in the @kbd{:args} list and switched using 990buffers. These can be seen in the @kbd{:args} list and switched using
991@kbd{:next} if you type @kbd{:set ex-cycle-through-non-files t}, or 991@kbd{:next} if you type @kbd{:set ex-cycle-through-non-files t}, or
992specify @code{(setq ex-cycle-through-non-files t)} in your @file{.viper} 992specify @code{(setq ex-cycle-through-non-files t)} in your
993file. @xref{Customization}, for details. 993Viper customization file. @xref{Customization}, for details.
994 994
995@node Undo and Backups 995@node Undo and Backups
996@section Undo and Backups 996@section Undo and Backups
@@ -1132,7 +1132,8 @@ of the form @kbd{/foo//bar} as @kbd{/bar} and @kbd{/foo/~/bar} as
1132@cindex word search 1132@cindex word search
1133 1133
1134Viper provides buffer search, the ability to search the buffer for a region 1134Viper provides buffer search, the ability to search the buffer for a region
1135under the cursor. You have to turn this on in @file{.viper} either by calling 1135under the cursor. You have to turn this on in your Viper customization file
1136either by calling
1136 1137
1137@example 1138@example
1138(viper-buffer-search-enable) 1139(viper-buffer-search-enable)
@@ -1182,10 +1183,10 @@ variable that controls how search patterns are highlighted is
1182@end example 1183@end example
1183@vindex @code{viper-search-face} 1184@vindex @code{viper-search-face}
1184@noindent 1185@noindent
1185in @file{~/.viper}. If you want to change how patterns are highlighted, you 1186in your Viper customization file. If you want to change how patterns are
1186will have to change @code{viper-search-face} to your liking. The easiest 1187highlighted, you will have to change @code{viper-search-face} to your liking.
1187way to do this is to use Emacs customization widget, which is accessible 1188The easiest way to do this is to use Emacs customization widget, which is
1188from the menubar. Viper customization group is located under the 1189accessible from the menubar. Viper customization group is located under the
1189@emph{Emulations} customization group, which in turn is under the 1190@emph{Emulations} customization group, which in turn is under the
1190@emph{Editing} group (or simply by typing @kbd{:customize}). All Viper 1191@emph{Editing} group (or simply by typing @kbd{:customize}). All Viper
1191faces are grouped together under Viper's 1192faces are grouped together under Viper's
@@ -1225,8 +1226,8 @@ Facilities like this make Vi's @kbd{:ab} command obsolete.
1225 1226
1226Viper can be set free from the line--limited movements in Vi, such as @kbd{l} 1227Viper can be set free from the line--limited movements in Vi, such as @kbd{l}
1227refusing to move beyond the line, @key{ESC} moving one character back, 1228refusing to move beyond the line, @key{ESC} moving one character back,
1228etc. These derive from Ex, which is a line editor. If your @file{.viper} 1229etc. These derive from Ex, which is a line editor. If your
1229contains 1230Viper customization file contains
1230 1231
1231@example 1232@example
1232@code{(setq viper-ex-style-motion nil)} 1233@code{(setq viper-ex-style-motion nil)}
@@ -1306,9 +1307,10 @@ These two keys invoke many important Emacs functions. For example, if you
1306hit @kbd{C-x} followed by @kbd{2}, then the current window will be split 1307hit @kbd{C-x} followed by @kbd{2}, then the current window will be split
1307into 2. Except for novice users, @kbd{C-c} is also set to execute an Emacs 1308into 2. Except for novice users, @kbd{C-c} is also set to execute an Emacs
1308command from the current major mode. @key{ESC} will do the same, if you 1309command from the current major mode. @key{ESC} will do the same, if you
1309configure @key{ESC} as Meta by setting @code{viper-no-multiple-ESC} to @code{nil} 1310configure @key{ESC} as Meta by setting @code{viper-no-multiple-ESC} to
1310in @file{.viper}. @xref{Customization}. @kbd{C-\} in Insert, Replace, or Vi 1311@code{nil} in your Viper customization file. @xref{Customization}.
1311states will make Emacs think @kbd{Meta} has been hit. 1312@kbd{C-\} in Insert, Replace, or Vi states will make Emacs think
1313@kbd{Meta} has been hit.
1312@item \ 1314@item \
1313@kindex @kbd{\} 1315@kindex @kbd{\}
1314Escape to Emacs to execute a single Emacs command. For instance, 1316Escape to Emacs to execute a single Emacs command. For instance,
@@ -1574,9 +1576,9 @@ Customization can be done in 2 ways.
1574@item 1576@item
1575@cindex initialization 1577@cindex initialization
1576@cindex .viper 1578@cindex .viper
1577Elisp code in a @file{.viper} file in your home directory. Viper 1579Elisp code in a @file{~/.emacs.d/viper} (or @file{~/.viper}) file.
1578loads @file{.viper} just before it does the binding for mode 1580Viper loads this file just before it does the binding for mode hooks.
1579hooks. This is recommended for experts only. 1581This is recommended for experts only.
1580@item 1582@item
1581@cindex .emacs 1583@cindex .emacs
1582Elisp code in your @file{.emacs} file before and after the @code{(require 1584Elisp code in your @file{.emacs} file before and after the @code{(require
@@ -1591,12 +1593,12 @@ customization widget, which lets you change the values of Viper
1591customizable variables easily. This method is good for novice and 1593customizable variables easily. This method is good for novice and
1592experts alike. The customization code in the form of Lisp commands will be 1594experts alike. The customization code in the form of Lisp commands will be
1593placed in @file{~/.emacs} or some other customization file depending on the 1595placed in @file{~/.emacs} or some other customization file depending on the
1594version of Emacs that you use. Still, it is recommended to separate 1596version of Emacs that you use. Still, it is recommended to separate
1595Viper-related customization produced by the Emacs customization widget 1597Viper-related customization produced by the Emacs customization widget
1596and keep it in the @file{.viper} file. 1598and keep it in your Viper customization file.
1597 1599
1598Some advanced customization cannot be accomplished this way, however, and 1600Some advanced customization cannot be accomplished this way, however, and
1599has to be done in Emacs Lisp in the @file{.viper} file. For the common 1601has to be done in Emacs Lisp in your Viper customization file. For the common
1600cases, examples are provided that you can use directly. 1602cases, examples are provided that you can use directly.
1601@end itemize 1603@end itemize
1602 1604
@@ -1753,10 +1755,10 @@ cases. @code{nil} means you either has to invoke @code{viper-mode} manually
1753for each buffer (or you can add @code{viper-mode} to the appropriate major mode 1755for each buffer (or you can add @code{viper-mode} to the appropriate major mode
1754hooks using @code{viper-load-hook}). 1756hooks using @code{viper-load-hook}).
1755 1757
1756This option must be set in the file @file{~/.viper}. 1758This option must be set in your Viper customization file.
1757@item viper-custom-file-name "~/.viper" 1759@item viper-custom-file-name "~/.emacs.d/viper"
1758File used for Viper-specific customization. 1760File used for Viper-specific customization.
1759Change this setting, if you want. Must be set in @file{.emacs} (not @file{.viper}!) 1761Change this setting, if you want. Must be set in @file{.emacs}
1760before Viper is loaded. Note that you 1762before Viper is loaded. Note that you
1761have to set it as a string inside double quotes. 1763have to set it as a string inside double quotes.
1762@item viper-spell-function 'ispell-region 1764@item viper-spell-function 'ispell-region
@@ -1807,8 +1809,8 @@ Both these macros are bound (as Viper macros) to
1807@code{viper-repeat-from-history}, 1809@code{viper-repeat-from-history},
1808which checks the second key by which it is invoked to see which of the 1810which checks the second key by which it is invoked to see which of the
1809previous commands to invoke. Viper binds @kbd{f12 1} and @kbd{f12 2} only, 1811previous commands to invoke. Viper binds @kbd{f12 1} and @kbd{f12 2} only,
1810but the user can bind more in @file{~/.viper}. @xref{Vi Macros}, for how to do 1812but the user can bind more in his/her Viper customization file.
1811this. 1813@xref{Vi Macros}, for how to do this.
1812@item viper-keep-point-on-undo nil 1814@item viper-keep-point-on-undo nil
1813If not @code{nil}, Viper tries to not move point when undoing commands. 1815If not @code{nil}, Viper tries to not move point when undoing commands.
1814Instead, it will briefly move the cursor to the place where change has 1816Instead, it will briefly move the cursor to the place where change has
@@ -1873,7 +1875,7 @@ emulate the standard Vi behavior, which supports only intra-line
1873replacement regions (and multi-line replacement regions are deleted). 1875replacement regions (and multi-line replacement regions are deleted).
1874@item viper-toggle-key "\C-z" 1876@item viper-toggle-key "\C-z"
1875Specifies the key used to switch from Emacs to Vi and back. 1877Specifies the key used to switch from Emacs to Vi and back.
1876Must be set in @file{.viper}. This variable can't be 1878Must be set in your Viper customization file. This variable can't be
1877changed interactively after Viper is loaded. 1879changed interactively after Viper is loaded.
1878 1880
1879In Insert state, this key acts as a temporary escape to Vi state, i.e., it 1881In Insert state, this key acts as a temporary escape to Vi state, i.e., it
@@ -1906,7 +1908,7 @@ the last chance to do customization before Viper is up and running.
1906@noindent 1908@noindent
1907You can reset some of these constants in Viper with the Ex command @kbd{:set} 1909You can reset some of these constants in Viper with the Ex command @kbd{:set}
1908(when so indicated in the table). Or you 1910(when so indicated in the table). Or you
1909can include a line like this in your @file{.viper} file: 1911can include a line like this in your Viper customization file:
1910@example 1912@example
1911(setq viper-case-fold-search t) 1913(setq viper-case-fold-search t)
1912@end example 1914@end example
@@ -2018,7 +2020,7 @@ state.
2018If you want to 2020If you want to
2019bind a key, say @kbd{C-v}, to the function that scrolls 2021bind a key, say @kbd{C-v}, to the function that scrolls
2020page down and to make @kbd{0} display information on the current buffer, 2022page down and to make @kbd{0} display information on the current buffer,
2021putting this in @file{.viper} will do the trick in Vi state: 2023putting this in your Viper customization file will do the trick in Vi state:
2022@example 2024@example
2023(define-key viper-vi-global-user-map "\C-v" 'scroll-down) 2025(define-key viper-vi-global-user-map "\C-v" 'scroll-down)
2024@end example 2026@end example
@@ -2067,11 +2069,12 @@ keys necessary in that keymap, and put
2067@end example 2069@end example
2068 2070
2069@noindent 2071@noindent
2070in @file{~/.viper}. To do the same in Vi and Insert states, you should use 2072in your Viper customization file. To do the same in Vi and Insert states, you
2071@code{vi-state} and @code{insert-state}. Changes in Insert state are also 2073should use @code{vi-state} and @code{insert-state}. Changes in Insert state
2072in effect in Replace state. For instance, suppose that the user wants to 2074are also in effect in Replace state. For instance, suppose that the user wants
2073use @kbd{dd} in Vi state under Dired mode to delete files, @kbd{u} to unmark 2075to use @kbd{dd} in Vi state under Dired mode to delete files, @kbd{u} to unmark
2074files, etc. The following code in @file{~/.viper} will then do the job: 2076files, etc. The following code in the Viper customization file will then do
2077the job:
2075 2078
2076@example 2079@example
2077(setq my-dired-modifier-map (make-sparse-keymap)) 2080(setq my-dired-modifier-map (make-sparse-keymap))
@@ -2275,7 +2278,7 @@ can happen only in the beginning, when the minor mode kicks in. Typing
2275several such minor modes and takes care of them, so the above trick 2278several such minor modes and takes care of them, so the above trick
2276is usually not necessary. If you find that some minor mode, e.g., 2279is usually not necessary. If you find that some minor mode, e.g.,
2277@code{nasty-mode} interferes with Viper, putting the following in 2280@code{nasty-mode} interferes with Viper, putting the following in
2278@file{.viper} should fix the problem: 2281your Viper customization file should fix the problem:
2279@lisp 2282@lisp
2280(viper-harness-minor-mode "nasty-mode") 2283(viper-harness-minor-mode "nasty-mode")
2281@end lisp 2284@end lisp
@@ -2332,8 +2335,8 @@ document. Other features are explained here.
2332@item viper-buffer-search-char nil 2335@item viper-buffer-search-char nil
2333Enable buffer search. Explicit call to @code{viper-buffer-search-enable} 2336Enable buffer search. Explicit call to @code{viper-buffer-search-enable}
2334sets @code{viper-buffer-search-char} to @kbd{g}. Alternatively, the user can 2337sets @code{viper-buffer-search-char} to @kbd{g}. Alternatively, the user can
2335set @code{viper-buffer-search-char} in @file{.viper} to a key sequence 2338set @code{viper-buffer-search-char} in his/her Viper customization file to a key
2336to be used for buffer search. There is no need to call 2339sequence to be used for buffer search. There is no need to call
2337@code{viper-buffer-search-enable} in that case. 2340@code{viper-buffer-search-enable} in that case.
2338@findex @code{viper-buffer-search-enable} 2341@findex @code{viper-buffer-search-enable}
2339@vindex @code{viper-buffer-search-char} 2342@vindex @code{viper-buffer-search-char}
@@ -2356,8 +2359,8 @@ If you hit something other than @kbd{/} after the first @kbd{/} or if the
2356second @kbd{/} doesn't follow quickly enough, then Viper will issue the 2359second @kbd{/} doesn't follow quickly enough, then Viper will issue the
2357usual prompt @kbd{/} and will wait for input, as usual in Vi. 2360usual prompt @kbd{/} and will wait for input, as usual in Vi.
2358If you don't like this behavior, you can ``unrecord'' these macros in your 2361If you don't like this behavior, you can ``unrecord'' these macros in your
2359@file{~/.viper} file. For instance, if you don't like the above feature, put 2362Viper customization file. For instance, if you don't like the above
2360this in @file{~/.viper}: 2363feature, put this in the file:
2361@example 2364@example
2362(viper-set-searchstyle-toggling-macros 'undefine) 2365(viper-set-searchstyle-toggling-macros 'undefine)
2363@end example 2366@end example
@@ -2444,7 +2447,7 @@ the direction of newer insertions. Hitting @kbd{C-c M-p} or @kbd{C-c M-n}
2444in succession 2447in succession
2445will undo the previous insertion from the ring and insert the next item on 2448will undo the previous insertion from the ring and insert the next item on
2446the ring. If a larger ring size is needed, change the value of the above 2449the ring. If a larger ring size is needed, change the value of the above
2447variable in the @file{~/.viper} file. 2450variable in the Viper customization file.
2448 2451
2449Since typing these sequences of keys may be tedious, it is suggested that the 2452Since typing these sequences of keys may be tedious, it is suggested that the
2450user should bind a function key, such as @kbd{f31}, as follows: 2453user should bind a function key, such as @kbd{f31}, as follows:
@@ -2515,7 +2518,7 @@ putting
2515(copy-face 'default 'viper-minibuffer-insert-face) 2518(copy-face 'default 'viper-minibuffer-insert-face)
2516(copy-face 'default 'viper-minibuffer-emacs-face) 2519(copy-face 'default 'viper-minibuffer-emacs-face)
2517@end example 2520@end example
2518in the @file{~/.viper} file or through the customization widget, as 2521in their Viper customization file or through the customization widget, as
2519described above. However, in that case, the user will not have any 2522described above. However, in that case, the user will not have any
2520indication of the current Viper state in the minibuffer. (This is important 2523indication of the current Viper state in the minibuffer. (This is important
2521if the user accidentally switches to another Viper state by typing @key{ESC} or 2524if the user accidentally switches to another Viper state by typing @key{ESC} or
@@ -2587,8 +2590,8 @@ Note: while loading initially, Viper binds this mouse action only if it is
2587not already bound to something else. If you want to use the mouse-search 2590not already bound to something else. If you want to use the mouse-search
2588feature, and the @kbd{Meta-Shift-Mouse-1} mouse action is already bound to 2591feature, and the @kbd{Meta-Shift-Mouse-1} mouse action is already bound to
2589something else, you can rebind the mouse-search feature by setting 2592something else, you can rebind the mouse-search feature by setting
2590@code{viper-mouse-search-key} to something else in your @code{~/.viper} 2593@code{viper-mouse-search-key} to something else in
2591file: 2594your Viper customization file:
2592@lisp 2595@lisp
2593(setq viper-mouse-search-key '(meta 1)) 2596(setq viper-mouse-search-key '(meta 1))
2594@end lisp 2597@end lisp
@@ -2600,7 +2603,8 @@ Meta key and clicking mouse button 1. The allowed values of
2600 2603
2601If the requested mouse action (e.g., (meta 1)) is already taken for other 2604If the requested mouse action (e.g., (meta 1)) is already taken for other
2602purposes then you have to confirm your intention by placing the following 2605purposes then you have to confirm your intention by placing the following
2603command in @code{~/.viper} after setting @code{viper-mouse-search-key}: 2606command in your Viper customization file after setting
2607@code{viper-mouse-search-key}:
2604@lisp 2608@lisp
2605(viper-bind-mouse-search-key 'force) 2609(viper-bind-mouse-search-key 'force)
2606@end lisp 2610@end lisp
@@ -2642,13 +2646,13 @@ case of a triple-click, the prefix argument is ignored.)
2642Note: while loading initially, Viper binds this mouse action only if it not 2646Note: while loading initially, Viper binds this mouse action only if it not
2643already bound to something else. If you want to use this feature and the 2647already bound to something else. If you want to use this feature and the
2644default mouse action is already bound, you can rebind mouse-insert by 2648default mouse action is already bound, you can rebind mouse-insert by
2645placing this command in @code{~/.viper}: 2649placing this command in your Viper customization file:
2646@lisp 2650@lisp
2647(setq viper-mouse-insert-key '(meta 2)) 2651(setq viper-mouse-insert-key '(meta 2))
2648@end lisp 2652@end lisp
2649If you want to bind mouse-insert to an action even if this action is 2653If you want to bind mouse-insert to an action even if this action is
2650already taken for other purposes in Emacs, then you should add this command 2654already taken for other purposes in Emacs, then you should add this command
2651to @code{~/.viper}, after setting @code{viper-mouse-insert-key}: 2655to your Viper customization file, after setting @code{viper-mouse-insert-key}:
2652@lisp 2656@lisp
2653(viper-bind-mouse-insert-key 'force) 2657(viper-bind-mouse-insert-key 'force)
2654@end lisp 2658@end lisp
@@ -2785,7 +2789,7 @@ Manual}.
2785When the user finishes defining a macro (which is done by typing @kbd{C-x)}, 2789When the user finishes defining a macro (which is done by typing @kbd{C-x)},
2786a departure from Vi), you will be asked whether you want this 2790a departure from Vi), you will be asked whether you want this
2787macro to be global, mode-specific, or buffer-specific. You will also be 2791macro to be global, mode-specific, or buffer-specific. You will also be
2788given a chance to save the macro in your @file{~/.viper} file. 2792given a chance to save the macro in your Viper customization file.
2789This is the easiest way to save a macro and make 2793This is the easiest way to save a macro and make
2790it permanently available. If you work your startup files with bare hands, 2794it permanently available. If you work your startup files with bare hands,
2791here is how Viper saves the above macro so that it will be 2795here is how Viper saves the above macro so that it will be
@@ -2834,8 +2838,8 @@ the latter says that the macro is to be defined for all buffers
2834 2838
2835For convenience, Viper also lets you define Vi-style macros in its Emacs 2839For convenience, Viper also lets you define Vi-style macros in its Emacs
2836state. There is no Ex command, like @kbd{:map} and @kbd{:map!} for doing 2840state. There is no Ex command, like @kbd{:map} and @kbd{:map!} for doing
2837this, but the user can include such a macro in the @file{~/.viper} file. The 2841this, but the user can include such a macro in the Viper customization file.
2838only thing is that the @code{viper-record-kbd-macro} command should specify 2842The only thing is that the @code{viper-record-kbd-macro} command should specify
2839@code{emacs-state} instead of @code{vi-state} or @code{insert-state}. 2843@code{emacs-state} instead of @code{vi-state} or @code{insert-state}.
2840 2844
2841The user can get rid of a macro either by using the Ex commands @kbd{:unmap} 2845The user can get rid of a macro either by using the Ex commands @kbd{:unmap}
@@ -2899,8 +2903,9 @@ Vi and Emacs commands, so that you could see what will happen each time the
2899macro is executed. Suppose now we wanted to bind the key sequence 2903macro is executed. Suppose now we wanted to bind the key sequence
2900@kbd{f13 f13} to the command @code{eval-last-sexp}. To accomplish this, we 2904@kbd{f13 f13} to the command @code{eval-last-sexp}. To accomplish this, we
2901can type @kbd{M-x eval-last-sexp} followed by @kbd{C-x )}. 2905can type @kbd{M-x eval-last-sexp} followed by @kbd{C-x )}.
2902If you answer positively to Viper's offer to save this macro in @file{~/.viper} 2906If you answer positively to Viper's offer to save this macro in your
2903for future uses, the following will be inserted in that file: 2907Viper customization file for future uses, the following will be inserted
2908in that file:
2904 2909
2905@example 2910@example
2906(viper-record-kbd-macro [f16 f16] 'vi-state 2911(viper-record-kbd-macro [f16 f16] 'vi-state
@@ -2972,8 +2977,8 @@ The rate at which the user must type keys in order for them to be
2972recognized as a timeout macro is controlled by the variable 2977recognized as a timeout macro is controlled by the variable
2973@code{viper-fast-keyseq-timeout}, which defaults to 200 milliseconds. 2978@code{viper-fast-keyseq-timeout}, which defaults to 200 milliseconds.
2974 2979
2975For the most part, Viper macros defined in @file{~/.viper} can be shared 2980For the most part, Viper macros defined in the Viper customization file can
2976between X and TTY modes. 2981be shared between X and TTY modes.
2977The problem with TTY may be that the function keys there generate sequences 2982The problem with TTY may be that the function keys there generate sequences
2978of events instead of a single event (as under a window system). 2983of events instead of a single event (as under a window system).
2979Emacs maps some of these sequences back to the logical keys 2984Emacs maps some of these sequences back to the logical keys
@@ -3359,7 +3364,8 @@ this function.
3359Find the next bracket/parenthesis/brace and go to its match. 3364Find the next bracket/parenthesis/brace and go to its match.
3360By default, Viper ignores brackets/parentheses/braces that occur inside 3365By default, Viper ignores brackets/parentheses/braces that occur inside
3361parentheses. You can change this by setting 3366parentheses. You can change this by setting
3362@code{viper-parse-sexp-ignore-comments} to @code{nil} in your @file{.viper} file. 3367@code{viper-parse-sexp-ignore-comments} to @code{nil} in your Viper
3368customization file.
3363This option can also be toggled interactively if you quickly hit @kbd{%%%}. 3369This option can also be toggled interactively if you quickly hit @kbd{%%%}.
3364 3370
3365This latter feature is implemented as a vi-style keyboard macro. If you 3371This latter feature is implemented as a vi-style keyboard macro. If you
@@ -3370,7 +3376,7 @@ don't want this macro, put
3370@end example 3376@end example
3371@findex @code{viper-set-parsing-style-toggling-macro} 3377@findex @code{viper-set-parsing-style-toggling-macro}
3372 3378
3373in your @file{~/.viper} file. 3379in your Viper customization file.
3374 3380
3375@end table 3381@end table
3376@kindex @kbd{%} 3382@kindex @kbd{%}
@@ -3544,7 +3550,7 @@ then be executed by typing `@kbd{.}'.
3544 3550
3545Since typing the above sequences of keys may be tedious, the 3551Since typing the above sequences of keys may be tedious, the
3546functions doing the perusing can be bound to unused keyboard keys in the 3552functions doing the perusing can be bound to unused keyboard keys in the
3547@file{~/.viper} file. @xref{Viper Specials}, for details. 3553Viper customization file. @xref{Viper Specials}, for details.
3548@end table 3554@end table
3549@kindex @kbd{C-c M-p} 3555@kindex @kbd{C-c M-p}
3550@kindex @kbd{C-c M-n} 3556@kindex @kbd{C-c M-n}
@@ -3984,7 +3990,7 @@ Write the file. Viper makes sure that a final newline is always added to
3984any file where this newline is missing. This is done by setting Emacs 3990any file where this newline is missing. This is done by setting Emacs
3985variable @code{require-final-newline} to @code{t}. If you don't like this 3991variable @code{require-final-newline} to @code{t}. If you don't like this
3986feature, use @code{setq-default} to set @code{require-final-newline} to 3992feature, use @code{setq-default} to set @code{require-final-newline} to
3987@code{nil}. This must be done in @file{.viper} file. 3993@code{nil}. This must be done in the Viper customization file.
3988@item :[x,y] w <name> 3994@item :[x,y] w <name>
3989Write to the file <name>. 3995Write to the file <name>.
3990@item :[x,y] w>> <name> 3996@item :[x,y] w>> <name>
diff --git a/etc/NEWS b/etc/NEWS
index f934bc30bd6..14dcb3eaf58 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -320,6 +320,7 @@ copy of each repeated line. The lines need not be sorted.
320 320
321* Changes in Specialized Modes and Packages in Emacs 24.4 321* Changes in Specialized Modes and Packages in Emacs 24.4
322 322
323+++
323** More packages look for ~/.emacs.d/<foo> additionally to ~/.<foo>. 324** More packages look for ~/.emacs.d/<foo> additionally to ~/.<foo>.
324Affected files: 325Affected files:
325~/.emacs.d/timelog replaces ~/.timelog 326~/.emacs.d/timelog replaces ~/.timelog
@@ -328,7 +329,7 @@ Affected files:
328~/.emacs.d/ido.last replaces ~/.ido.last 329~/.emacs.d/ido.last replaces ~/.ido.last
329~/.emacs.d/kkcrc replaces ~/.kkcrc 330~/.emacs.d/kkcrc replaces ~/.kkcrc
330~/.emacs.d/quickurls replaces ~/.quickurls 331~/.emacs.d/quickurls replaces ~/.quickurls
331~/.emacs.d/idlwave replaces ~/.idlwave 332~/.emacs.d/idlwave/ replaces ~/.idlwave/
332~/.emacs.d/bdfcache.el replaces ~/.bdfcache.el 333~/.emacs.d/bdfcache.el replaces ~/.bdfcache.el
333~/.emacs.d/places replaces ~/.emacs-places 334~/.emacs.d/places replaces ~/.emacs-places
334~/.emacs.d/shadows replaces ~/.shadows 335~/.emacs.d/shadows replaces ~/.shadows
@@ -353,14 +354,11 @@ you access lexical variables.
353*** New minor mode `jit-lock-debug-mode' lets you use the debuggers on 354*** New minor mode `jit-lock-debug-mode' lets you use the debuggers on
354code run via JIT Lock. 355code run via JIT Lock.
355 356
356** Battery
357
358--- 357---
359*** Battery information via the BSD `apm' utility is now supported. 358** Battery information can now be retrieved from BSD's `apm' utility.
360 359
361** Buffer Menu 360---
362 361** In the Buffer Menu, `M-s a C-o' shows matches for a regexp in marked buffers.
363*** `M-s a C-o' shows lines matching a regexp in marked buffers using Occur.
364 362
365** Calendar and Diary 363** Calendar and Diary
366 364
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fcbff5b8ee5..a84cc146c65 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,22 @@
12014-01-27 Glenn Morris <rgm@gnu.org>
2
3 * shadowfile.el (shadow-info-file, shadow-todo-file): Doc fix.
4 * strokes.el (strokes-file): Doc fix. Bump :version.
5 (strokes-help): Doc fix.
6 * emulation/viper-init.el (viper-vi-style-in-minibuffer): Doc fix.
7 * emulation/viper.el (viper): Doc fix for custom group.
8 (top-level): Remove oh-so-no-longer-relevant text about vip.
9 * obsolete/otodo-mode.el (todo-prefix): Doc fix.
10
11 * ido.el (ido-save-directory-list-file):
12 * saveplace.el (save-place-file):
13 * calendar/timeclock.el (timeclock-file):
14 * net/quickurl.el (quickurl-url-file):
15 * obsolete/otodo-mode.el (todo-file-do, todo-file-done, todo-file-top):
16 * progmodes/idlwave.el (idlwave-config-directory):
17 * textmodes/remember.el (remember-data-file):
18 Bump :version.
19
12014-01-26 Glenn Morris <rgm@gnu.org> 202014-01-26 Glenn Morris <rgm@gnu.org>
2 21
3 * progmodes/opascal.el (opascal-tab-always-indents, opascal-tab): 22 * progmodes/opascal.el (opascal-tab-always-indents, opascal-tab):
diff --git a/lisp/calendar/timeclock.el b/lisp/calendar/timeclock.el
index 016fa2f8738..2b4db9a7820 100644
--- a/lisp/calendar/timeclock.el
+++ b/lisp/calendar/timeclock.el
@@ -64,7 +64,7 @@
64;; 64;;
65;; (add-hook 'kill-emacs-query-functions 'timeclock-query-out) 65;; (add-hook 'kill-emacs-query-functions 'timeclock-query-out)
66 66
67;; NOTE: If you change your .timelog file without using timeclock's 67;; NOTE: If you change your timelog file without using timeclock's
68;; functions, or if you change the value of any of timeclock's 68;; functions, or if you change the value of any of timeclock's
69;; customizable variables, you should run the command 69;; customizable variables, you should run the command
70;; `timeclock-reread-log'. This will recompute any discrepancies in 70;; `timeclock-reread-log'. This will recompute any discrepancies in
@@ -83,6 +83,7 @@
83 83
84(defcustom timeclock-file (locate-user-emacs-file "timelog" ".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 :version "24.4" ; added locate-user-emacs-file
86 :type 'file 87 :type 'file
87 :group 'timeclock) 88 :group 'timeclock)
88 89
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index a4a5f349ffe..65192c245e0 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -1887,7 +1887,8 @@ Please contact your system administrator. "
1887 (if (featurep 'xemacs) "X" "") 1887 (if (featurep 'xemacs) "X" "")
1888 )))))) 1888 ))))))
1889 1889
1890;; Ex source command. Loads the file specified as argument or `~/.viper' 1890;; Ex source command.
1891;; Loads the file specified as argument or viper-custom-file-name.
1891(defun ex-source () 1892(defun ex-source ()
1892 (viper-get-ex-file) 1893 (viper-get-ex-file)
1893 (if (string= ex-file "") 1894 (if (string= ex-file "")
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 27e7c30375b..9914fdcd2f4 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -922,7 +922,7 @@ value refers to the number of characters affected."
922 922
923(defcustom viper-vi-style-in-minibuffer t 923(defcustom viper-vi-style-in-minibuffer t
924 "If t, use vi-style editing in minibuffer. 924 "If t, use vi-style editing in minibuffer.
925Should be set in `~/.viper' file." 925Should be set in `viper-custom-file-name'."
926 :type 'boolean 926 :type 'boolean
927 :group 'viper) 927 :group 'viper)
928 928
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index 10afe229a63..96c5c2bb650 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -147,8 +147,8 @@ viper-insert-basic-map. Not recommended, except for novice users.")
147(defvar viper-empty-keymap (make-sparse-keymap)) 147(defvar viper-empty-keymap (make-sparse-keymap))
148 148
149;; This was the main Vi mode in old versions of VIP which may have been 149;; This was the main Vi mode in old versions of VIP which may have been
150;; extensively used by VIP users. We declare it as a global var 150;; extensively used by VIP users. We declare it as a global var and, after
151;; and, after .viper is loaded, we add this keymap to viper-vi-basic-map. 151;; viper-custom-file-name is loaded, we add this keymapto viper-vi-basic-map.
152(defvar viper-mode-map (make-sparse-keymap)) 152(defvar viper-mode-map (make-sparse-keymap))
153 153
154;; Some important keys used in viper 154;; Some important keys used in viper
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index a937309c63d..0c4e7ddac6f 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -322,7 +322,8 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
322;; More general definitions are inherited by more specific scopes: 322;; More general definitions are inherited by more specific scopes:
323;; global->major mode->buffer. More specific definitions override more general 323;; global->major mode->buffer. More specific definitions override more general
324(defun viper-record-kbd-macro (macro-name state macro-body &optional scope) 324(defun viper-record-kbd-macro (macro-name state macro-body &optional scope)
325 "Record a Vi macro. Can be used in `.viper' file to define permanent macros. 325 "Record a Vi macro.
326Can be used in `viper-custom-file-name' to define permanent macros.
326MACRO-NAME is a string of characters or a vector of keys. STATE is 327MACRO-NAME is a string of characters or a vector of keys. STATE is
327either `vi-state' or `insert-state'. It specifies the Viper state in which to 328either `vi-state' or `insert-state'. It specifies the Viper state in which to
328define the macro. MACRO-BODY is a string that represents the keyboard macro. 329define the macro. MACRO-BODY is a string that represents the keyboard macro.
@@ -351,8 +352,8 @@ If SCOPE is nil, the user is asked to specify the scope."
351 (error "Can't map an empty macro name")) 352 (error "Can't map an empty macro name"))
352 353
353 ;; Macro-name is usually a vector. However, command history or macros 354 ;; Macro-name is usually a vector. However, command history or macros
354 ;; recorded in ~/.viper may be recorded as strings. So, convert to 355 ;; recorded in viper-custom-file-name may be recorded as strings.
355 ;; vectors. 356 ;; So, convert to vectors.
356 (setq macro-name (viper-fixup-macro macro-name)) 357 (setq macro-name (viper-fixup-macro macro-name))
357 (if (viper-char-array-p macro-name) 358 (if (viper-char-array-p macro-name)
358 (setq macro-name (viper-char-array-to-macro macro-name))) 359 (setq macro-name (viper-char-array-to-macro macro-name)))
@@ -422,7 +423,7 @@ If SCOPE is nil, the user is asked to specify the scope."
422 ;; if we don't let vector macro-body through %S, 423 ;; if we don't let vector macro-body through %S,
423 ;; the symbols `\.' `\[' etc will be converted into 424 ;; the symbols `\.' `\[' etc will be converted into
424 ;; characters, causing invalid read error on recorded 425 ;; characters, causing invalid read error on recorded
425 ;; macros in .viper. 426 ;; macros in viper-custom-file-name.
426 ;; I am not sure is macro-body can still be a string at 427 ;; I am not sure is macro-body can still be a string at
427 ;; this point, but I am preserving this option anyway. 428 ;; this point, but I am preserving this option anyway.
428 (if (vectorp macro-body) 429 (if (vectorp macro-body)
@@ -483,11 +484,11 @@ If SCOPE is nil, the user is asked to specify the scope."
483;; in effect 484;; in effect
484(defun viper-unrecord-kbd-macro (macro-name state) 485(defun viper-unrecord-kbd-macro (macro-name state)
485 "Delete macro MACRO-NAME from Viper STATE. 486 "Delete macro MACRO-NAME from Viper STATE.
486MACRO-NAME must be a vector of viper-style keys. This command is used by Viper 487MACRO-NAME must be a vector of viper-style keys. This command is used
487internally, but the user can also use it in ~/.viper to delete pre-defined 488by Viper internally, but you can also use it in `viper-custom-file-name'
488macros supplied with Viper. The best way to avoid mistakes in macro names to 489to delete pre-defined macros supplied with Viper. The best way to avoid
489be passed to this function is to use viper-describe-kbd-macros and copy the 490mistakes in macro names to be passed to this function is to use
490name from there." 491`viper-describe-kbd-macros' and copy the name from there."
491 (let* (state-name keymap 492 (let* (state-name keymap
492 (macro-alist-var 493 (macro-alist-var
493 (cond ((eq state 'vi-state) 494 (cond ((eq state 'vi-state)
@@ -507,7 +508,8 @@ name from there."
507 macro-pair macro-entry) 508 macro-pair macro-entry)
508 509
509 ;; Macro-name is usually a vector. However, command history or macros 510 ;; Macro-name is usually a vector. However, command history or macros
510 ;; recorded in ~/.viper may appear as strings. So, convert to vectors. 511 ;; recorded in viper-custom-file-name may appear as strings.
512 ;; So, convert to vectors.
511 (setq macro-name (viper-fixup-macro macro-name)) 513 (setq macro-name (viper-fixup-macro macro-name))
512 (if (viper-char-array-p macro-name) 514 (if (viper-char-array-p macro-name)
513 (setq macro-name (viper-char-array-to-macro macro-name))) 515 (setq macro-name (viper-char-array-to-macro macro-name)))
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index 690cd881c6c..650b8acbb81 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -153,9 +153,9 @@
153;; 153;;
154;; The last viper-vi-basic-minor-mode contains most of the usual Vi bindings 154;; The last viper-vi-basic-minor-mode contains most of the usual Vi bindings
155;; in its edit mode. This mode provides access to all Emacs facilities. 155;; in its edit mode. This mode provides access to all Emacs facilities.
156;; Novice users, however, may want to set their viper-expert-level to 1 156;; Novice users, however, may want to set their viper-expert-level to 1 in
157;; in their .viper file. This will enable viper-vi-diehard-minor-mode. This 157;; their viper-custom-file-name. This will enable viper-vi-diehard-minor-mode.
158;; minor mode's bindings make Viper simulate the usual Vi very closely. 158;; This minor mode's bindings make Viper simulate the usual Vi very closely.
159;; For instance, C-c will not have its standard Emacs binding 159;; For instance, C-c will not have its standard Emacs binding
160;; and so many of the goodies of Emacs are not available. 160;; and so many of the goodies of Emacs are not available.
161;; 161;;
@@ -165,12 +165,12 @@
165;; 165;;
166;; Viper gurus should have at least 166;; Viper gurus should have at least
167;; (setq viper-expert-level 4) 167;; (setq viper-expert-level 4)
168;; in their ~/.viper files. This will unsuppress all Emacs keys that are not 168;; in their viper-custom-file-name. This will unsuppress all Emacs keys
169;; essential for VI-style editing. 169;; that are not essential for VI-style editing.
170;; Pick-and-choose users may want to put 170;; Pick-and-choose users may want to put
171;; (setq viper-expert-level 5) 171;; (setq viper-expert-level 5)
172;; in ~/.viper. Viper will then leave it up to the user to set the variables 172;; in viper-custom-file-name. Viper will then leave it up to the user to
173;; viper-want-* See viper-set-expert-level for details. 173;; set the variables viper-want-* See viper-set-expert-level for details.
174;; 174;;
175;; The very first minor mode, viper-vi-intercept-minor-mode, is of no 175;; The very first minor mode, viper-vi-intercept-minor-mode, is of no
176;; concern for the user. It is needed to bind Viper's vital keys, such as 176;; concern for the user. It is needed to bind Viper's vital keys, such as
@@ -319,8 +319,7 @@ If set by the user, this must be done _before_ Viper is loaded in `~/.emacs'.")
319 319
320(defgroup viper nil 320(defgroup viper nil
321 "Vi emulation within Emacs. 321 "Vi emulation within Emacs.
322NOTE: Viper customization should be saved in `viper-custom-file-name', which 322NOTE: Viper customization should be saved in `viper-custom-file-name'."
323defaults to `~/.viper'."
324 :prefix "viper-" 323 :prefix "viper-"
325 :group 'emulations) 324 :group 'emulations)
326 325
@@ -1222,11 +1221,7 @@ If you wish to Viperize AND make this your way of life, please put
1222 (require 'viper) 1221 (require 'viper)
1223 1222
1224in your init file (preferably, close to the top). 1223in your init file (preferably, close to the top).
1225These two lines must come in the order given. 1224These two lines must come in the order given."))
1226
1227** Viper users:
1228 **** The startup file name has been changed from .vip to .viper
1229 **** All vip-* style names have been converted to viper-* style."))
1230 (if (y-or-n-p "Viperize? ") 1225 (if (y-or-n-p "Viperize? ")
1231 (setq viper-mode t) 1226 (setq viper-mode t)
1232 (setq viper-mode nil)) 1227 (setq viper-mode nil))
@@ -1268,8 +1263,8 @@ These two lines must come in the order given.
1268 1263
1269 1264
1270;; Set some useful macros, advices 1265;; Set some useful macros, advices
1271;; These must be BEFORE ~/.viper is loaded, 1266;; These must be BEFORE viper-custom-file-name is loaded,
1272;; so the user can unrecord them in ~/.viper. 1267;; so the user can unrecord them in viper-custom-file-name.
1273(if viper-mode 1268(if viper-mode
1274 (progn 1269 (progn
1275 ;; set advices and some variables that give emacs Vi look. 1270 ;; set advices and some variables that give emacs Vi look.
@@ -1289,7 +1284,7 @@ These two lines must come in the order given.
1289 ;; Make %%% toggle parsing comments for matching parentheses 1284 ;; Make %%% toggle parsing comments for matching parentheses
1290 (viper-set-parsing-style-toggling-macro nil) 1285 (viper-set-parsing-style-toggling-macro nil)
1291 1286
1292 ;; ~/.viper is loaded if exists 1287 ;; viper-custom-file-name is loaded if exists
1293 (viper-load-custom-file) 1288 (viper-load-custom-file)
1294 1289
1295 ;; should be after loading custom file to avoid the pesky msg that 1290 ;; should be after loading custom file to avoid the pesky msg that
@@ -1300,7 +1295,7 @@ These two lines must come in the order given.
1300 1295
1301 1296
1302 1297
1303;; Applying Viper customization -- runs after (load .viper) 1298;; Applying Viper customization -- runs after (load viper-custom-file-name)
1304 1299
1305;; Save user settings or Viper defaults for vars controlled by 1300;; Save user settings or Viper defaults for vars controlled by
1306;; viper-expert-level 1301;; viper-expert-level
@@ -1350,7 +1345,7 @@ These two lines must come in the order given.
1350 1345
1351 1346
1352;; Intercept maps could go in viper-keym.el 1347;; Intercept maps could go in viper-keym.el
1353;; We keep them here in case someone redefines them in ~/.viper 1348;; We keep them here in case someone redefines them in viper-custom-file-name
1354 1349
1355(define-key viper-vi-intercept-map viper-ESC-key 'viper-intercept-ESC-key) 1350(define-key viper-vi-intercept-map viper-ESC-key 'viper-intercept-ESC-key)
1356(define-key viper-insert-intercept-map viper-ESC-key 'viper-intercept-ESC-key) 1351(define-key viper-insert-intercept-map viper-ESC-key 'viper-intercept-ESC-key)
diff --git a/lisp/ido.el b/lisp/ido.el
index f0a4dd36a98..265a9a9f1c1 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -956,6 +956,7 @@ ido is running. Copied from `icomplete-minibuffer-setup-hook'."
956Variables stored are: `ido-last-directory-list', `ido-work-directory-list', 956Variables stored are: `ido-last-directory-list', `ido-work-directory-list',
957`ido-work-file-list', and `ido-dir-file-cache'. 957`ido-work-file-list', and `ido-dir-file-cache'.
958Must be set before enabling ido mode." 958Must be set before enabling ido mode."
959 :version "24.4" ; added locate-user-emacs-file
959 :type 'string 960 :type 'string
960 :group 'ido) 961 :group 'ido)
961 962
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el
index c2e4a734214..fdb117ea690 100644
--- a/lisp/net/quickurl.el
+++ b/lisp/net/quickurl.el
@@ -97,6 +97,7 @@
97(defcustom quickurl-url-file 97(defcustom quickurl-url-file
98 (locate-user-emacs-file "quickurls" ".quickurls") 98 (locate-user-emacs-file "quickurls" ".quickurls")
99 "File that contains the URL list." 99 "File that contains the URL list."
100 :version "24.4" ; added locate-user-emacs-file
100 :type 'file 101 :type 'file
101 :group 'quickurl) 102 :group 'quickurl)
102 103
diff --git a/lisp/obsolete/otodo-mode.el b/lisp/obsolete/otodo-mode.el
index 53220f06481..d551d167a91 100644
--- a/lisp/obsolete/otodo-mode.el
+++ b/lisp/obsolete/otodo-mode.el
@@ -272,7 +272,7 @@
272 272
273This is useful in conjunction with `calendar' and `diary' if you use 273This is useful in conjunction with `calendar' and `diary' if you use
274 274
275#include \"~/.todo-do\" 275#include \"~/.emacs.d/todo-do\"
276 276
277in your diary file to include your todo list file as part of your 277in your diary file to include your todo list file as part of your
278diary. With the default value \"*/*\" the diary displays each entry 278diary. With the default value \"*/*\" the diary displays each entry
@@ -284,10 +284,12 @@ the diary file somewhat."
284 :group 'todo) 284 :group 'todo)
285(defcustom todo-file-do (locate-user-emacs-file "todo-do" ".todo-do") 285(defcustom todo-file-do (locate-user-emacs-file "todo-do" ".todo-do")
286 "TODO mode list file." 286 "TODO mode list file."
287 :version "24.4" ; added locate-user-emacs-file
287 :type 'file 288 :type 'file
288 :group 'todo) 289 :group 'todo)
289(defcustom todo-file-done (locate-user-emacs-file "todo-done" ".todo-done") 290(defcustom todo-file-done (locate-user-emacs-file "todo-done" ".todo-done")
290 "TODO mode archive file." 291 "TODO mode archive file."
292 :version "24.4" ; added locate-user-emacs-file
291 :type 'file 293 :type 'file
292 :group 'todo) 294 :group 'todo)
293(defcustom todo-mode-hook nil 295(defcustom todo-mode-hook nil
@@ -321,6 +323,7 @@ window."
321 323
322Not in TODO format, but diary compatible. 324Not in TODO format, but diary compatible.
323Automatically generated when `todo-save-top-priorities' is non-nil." 325Automatically generated when `todo-save-top-priorities' is non-nil."
326 :version "24.4" ; added locate-user-emacs-file
324 :type 'string 327 :type 'string
325 :group 'todo) 328 :group 'todo)
326 329
@@ -916,7 +919,7 @@ If INCLUDE-SEP is non-nil, return point after the separator."
916 ["Quit" todo-quit t] 919 ["Quit" todo-quit t]
917 )) 920 ))
918 921
919;; As calendar reads .todo-do before todo-mode is loaded. 922;; As calendar reads todo-file-do before todo-mode is loaded.
920;;;###autoload 923;;;###autoload
921(define-derived-mode todo-mode nil "TODO" 924(define-derived-mode todo-mode nil "TODO"
922 "Major mode for editing TODO lists." 925 "Major mode for editing TODO lists."
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 3dcc183345a..8d4320669a1 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -449,6 +449,7 @@ value of `!DIR'. See also `idlwave-library-path'."
449(defcustom idlwave-config-directory 449(defcustom idlwave-config-directory
450 (locate-user-emacs-file "idlwave" ".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 :version "24.4" ; added locate-user-emacs-file
452 :group 'idlwave-routine-info 453 :group 'idlwave-routine-info
453 :type 'file) 454 :type 'file)
454 455
diff --git a/lisp/saveplace.el b/lisp/saveplace.el
index 064a70a1041..91da103ba9e 100644
--- a/lisp/saveplace.el
+++ b/lisp/saveplace.el
@@ -70,6 +70,7 @@ following code in your init file:
70 70
71(defcustom save-place-file (locate-user-emacs-file "places" ".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 :version "24.4" ; added locate-user-emacs-file
73 :type 'file 74 :type 'file
74 :group 'save-place) 75 :group 'save-place)
75 76
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index d409d5672f5..2bf200d07dd 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -34,21 +34,22 @@
34;; documentation for these functions for information on how and when to use 34;; documentation for these functions for information on how and when to use
35;; them). After doing this once, everything should be automatic. 35;; them). After doing this once, everything should be automatic.
36 36
37;; The lists of clusters and shadows are saved in a file called .shadows, 37;; The lists of clusters and shadows are saved in a ~/.emacs.d/shadows
38;; so that they can be remembered from one Emacs session to another, even 38;; (`shadow-info-file') file, so that they can be remembered from one
39;; (as much as possible) if the Emacs session terminates abnormally. The 39;; Emacs session to another, even (as much as possible) if the Emacs
40;; files needing to be copied are stored in .shadow_todo; if a file cannot 40;; session terminates abnormally. The files needing to be copied are
41;; be copied for any reason, it will stay on the list to be tried again 41;; stored in `shadow-todo-file'; if a file cannot be copied for any
42;; next time. The .shadows file should itself have shadows on all your 42;; reason, it will stay on the list to be tried again next time. The
43;; accounts so that the information in it is consistent everywhere, but 43;; `shadow-info-file' file should itself have shadows on all your accounts
44;; .shadow_todo is local information and should have no shadows. 44;; so that the information in it is consistent everywhere, but
45;; `shadow-todo-file' is local information and should have no shadows.
45 46
46;; If you do not want to copy a particular file, you can answer "no" and 47;; If you do not want to copy a particular file, you can answer "no" and
47;; be asked again next time you hit C-x 4 s or exit Emacs. If you do not 48;; be asked again next time you hit C-x 4 s or exit Emacs. If you do not
48;; want to be asked again, use shadow-cancel, and you will not be asked 49;; want to be asked again, use shadow-cancel, and you will not be asked
49;; until you change the file and save it again. If you do not want to 50;; until you change the file and save it again. If you do not want to
50;; shadow that file ever again, you can edit it out of the .shadows 51;; shadow that file ever again, you can edit it out of the shadows
51;; buffer. Anytime you edit the .shadows buffer, you must type M-x 52;; buffer. Anytime you edit the shadows buffer, you must type M-x
52;; shadow-read-files to load in the new information, or your changes will 53;; shadow-read-files to load in the new information, or your changes will
53;; be overwritten! 54;; be overwritten!
54 55
@@ -106,10 +107,13 @@ files that have been changed and need to be copied to other systems."
106 :type 'boolean 107 :type 'boolean
107 :group 'shadow) 108 :group 'shadow)
108 109
110;; FIXME in a sense, this changed in 24.4 (addition of locate-user-emacs-file),
111;; but due to the weird way this variable is initialized to nil, it didn't
112;; literally change. Same for shadow-todo-file.
109(defcustom shadow-info-file nil 113(defcustom shadow-info-file nil
110 "File to keep shadow information in. 114 "File to keep shadow information in.
111The `shadow-info-file' should be shadowed to all your accounts to 115The `shadow-info-file' should be shadowed to all your accounts to
112ensure consistency. Default: ~/.shadows" 116ensure consistency. Default: ~/.emacs.d/shadows"
113 :type '(choice (const nil) file) 117 :type '(choice (const nil) file)
114 :group 'shadow) 118 :group 'shadow)
115 119
@@ -119,7 +123,7 @@ This means that if a remote system is down, or for any reason you cannot or
119decide not to copy your shadow files at the end of one Emacs session, it will 123decide not to copy your shadow files at the end of one Emacs session, it will
120remember and ask you again in your next Emacs session. 124remember and ask you again in your next Emacs session.
121This file must NOT be shadowed to any other system, it is host-specific. 125This file must NOT be shadowed to any other system, it is host-specific.
122Default: ~/.shadow_todo" 126Default: ~/.emacs.d/shadow_todo"
123 :type '(choice (const nil) file) 127 :type '(choice (const nil) file)
124 :group 'shadow) 128 :group 'shadow)
125 129
diff --git a/lisp/strokes.el b/lisp/strokes.el
index 890c3d0726c..35136e5da65 100644
--- a/lisp/strokes.el
+++ b/lisp/strokes.el
@@ -118,8 +118,7 @@
118 118
119;; > M-x strokes-prompt-user-save-strokes 119;; > M-x strokes-prompt-user-save-strokes
120 120
121;; and it will save your strokes in ~/.strokes, or you may wish to change 121;; and it will save your strokes in your `strokes-file'.
122;; this by setting the variable `strokes-file'.
123 122
124;; Note that internally, all of the routines that are part of this 123;; Note that internally, all of the routines that are part of this
125;; package are able to deal with complex strokes, as they are a superset 124;; package are able to deal with complex strokes, as they are a superset
@@ -261,7 +260,8 @@ WARNING: Changing the value of this variable will gravely affect the
261 :group 'strokes) 260 :group 'strokes)
262 261
263(defcustom strokes-file (locate-user-emacs-file "strokes" ".strokes") 262(defcustom strokes-file (locate-user-emacs-file "strokes" ".strokes")
264 "File containing saved strokes for Strokes mode (default is ~/.strokes)." 263 "File containing saved strokes for Strokes mode."
264 :version "24.4" ; added locate-user-emacs-file
265 :type 'file 265 :type 'file
266 :group 'strokes) 266 :group 'strokes)
267 267
@@ -991,11 +991,10 @@ down, then use a prefix argument:
991 991
992> C-u M-x strokes-list-strokes 992> C-u M-x strokes-list-strokes
993 993
994Your strokes are stored as you enter them. They get saved in a file 994Your strokes are stored as you enter them. They get saved into the
995called ~/.strokes, along with other strokes configuration variables. 995file specified by the `strokes-file' variable, along with other strokes
996You can change this location by setting the variable `strokes-file'. 996configuration variables. You will be prompted to save them when
997You will be prompted to save them when you exit Emacs, or you can save 997you exit Emacs, or you can save them with
998them with
999 998
1000> M-x strokes-prompt-user-save-strokes 999> M-x strokes-prompt-user-save-strokes
1001 1000
diff --git a/lisp/textmodes/remember.el b/lisp/textmodes/remember.el
index ceecbd9ba37..3f5227f908b 100644
--- a/lisp/textmodes/remember.el
+++ b/lisp/textmodes/remember.el
@@ -118,7 +118,7 @@
118;; 118;;
119;; * Using "remember" 119;; * Using "remember"
120;; 120;;
121;; As a rough beginning, what I do is to keep my .notes file in 121;; As a rough beginning, what I do is to keep my `remember-data-file' in
122;; outline-mode format, with a final entry called "* Raw data". Then, 122;; outline-mode format, with a final entry called "* Raw data". Then,
123;; at intervals, I can move the data that gets appended there into 123;; at intervals, I can move the data that gets appended there into
124;; other places. But certainly this should evolve into an intuitive 124;; other places. But certainly this should evolve into an intuitive
@@ -386,6 +386,7 @@ Subject: %s\n\n"
386 "The file in which to store unprocessed data. 386 "The file in which to store unprocessed data.
387When set via customize, visited file of the notes buffer (if it 387When set via customize, visited file of the notes buffer (if it
388exists) might be changed." 388exists) might be changed."
389 :version "24.4" ; added locate-user-emacs-file
389 :type 'file 390 :type 'file
390 :set (lambda (symbol value) 391 :set (lambda (symbol value)
391 (let ((buf (find-buffer-visiting (default-value symbol)))) 392 (let ((buf (find-buffer-visiting (default-value symbol))))
diff --git a/lisp/type-break.el b/lisp/type-break.el
index 3e09a7a6c06..f954e5d1c26 100644
--- a/lisp/type-break.el
+++ b/lisp/type-break.el
@@ -1,7 +1,6 @@
1;;; type-break.el --- encourage rests from typing at appropriate intervals -*- lexical-binding: t -*- 1;;; type-break.el --- encourage rests from typing at appropriate intervals -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1994-1995, 1997, 2000-2014 Free Software Foundation, 3;; Copyright (C) 1994-1995, 1997, 2000-2014 Free Software Foundation, Inc.
4;; Inc.
5 4
6;; Author: Noah Friedman 5;; Author: Noah Friedman
7;; Maintainer: Noah Friedman <friedman@splode.com> 6;; Maintainer: Noah Friedman <friedman@splode.com>
@@ -208,6 +207,7 @@ key is pressed."
208 (locate-user-emacs-file "type-break" ".type-break") 207 (locate-user-emacs-file "type-break" ".type-break")
209 "Name of file used to save state across sessions. 208 "Name of file used to save state across sessions.
210If this is nil, no data will be saved across sessions." 209If this is nil, no data will be saved across sessions."
210 :version "24.4" ; added locate-user
211 :type 'file) 211 :type 'file)
212 212
213(defvar type-break-post-command-hook '(type-break-check) 213(defvar type-break-post-command-hook '(type-break-check)