aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-05-07 11:15:53 +0000
committerEli Zaretskii2005-05-07 11:15:53 +0000
commitf3c2dbe9146caafcf968904434c70c04669ac509 (patch)
tree099a7069af360b344123fb304d0e74b13e9ee1f5
parenta790bcd479bc87e78ec852a3218df7d82b6cbc8b (diff)
downloademacs-f3c2dbe9146caafcf968904434c70c04669ac509.tar.gz
emacs-f3c2dbe9146caafcf968904434c70c04669ac509.zip
Document locate-file.
Move description of new command-line options to where they belong.
-rw-r--r--etc/NEWS44
1 files changed, 28 insertions, 16 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5b7338c5c3d..391c99c53f8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -121,6 +121,23 @@ the blinking cursor.
121the blinking cursor on graphical terminals. 121the blinking cursor on graphical terminals.
122 122
123+++ 123+++
124** The option --script FILE runs Emacs in batch mode and loads FILE.
125It is useful for writing Emacs Lisp shell script files, because they
126can start with this line:
127
128 #!/usr/bin/emacs --script
129
130+++
131** The option --directory DIR now modifies `load-path' immediately.
132Directories are added to the front of `load-path' in the order they
133appear on the command line. For example, with this command line:
134
135 emacs -batch -L .. -L /tmp --eval "(require 'foo)"
136
137Emacs looks for library `foo' in the parent directory, then in /tmp, then
138in the other directories in `load-path'. (-L is short for --directory.)
139
140+++
124** The command line option --no-windows has been changed to 141** The command line option --no-windows has been changed to
125--no-window-system. The old one still works, but is deprecated. 142--no-window-system. The old one still works, but is deprecated.
126 143
@@ -2842,22 +2859,17 @@ the command `undefined'. (In earlier Emacs versions, it used
2842 2859
2843* Lisp Changes in Emacs 22.1 2860* Lisp Changes in Emacs 22.1
2844 2861
2845+++ 2862** New function `locate-file' searches for a file in a list of directories.
2846** The option --script FILE runs Emacs in batch mode and loads FILE. 2863`locate-file' accepts a name of a file to search (a string), and two
2847It is useful for writing Emacs Lisp shell script files, because they 2864lists: a list of directories to search in and a list of suffixes to
2848can start with this line: 2865try; typical usage might use `exec-path' and `load-path' for the list
2849 2866of directories, and `exec-suffixes' and `load-suffixes' for the list
2850 #!/usr/bin/emacs --script 2867of suffixes. The function also accepts a predicate argument to
2851 2868further filter candidate files.
2852+++ 2869
2853** The option --directory DIR now modifies `load-path' immediately. 2870One advantage of using this function is that the list of suffixes in
2854Directories are added to the front of `load-path' in the order they 2871`exec-suffixes' is OS-dependant, so this function will find
2855appear on the command line. For example, with this command line: 2872executables without polluting Lisp code with OS dependancies.
2856
2857 emacs -batch -L .. -L /tmp --eval "(require 'foo)"
2858
2859Emacs looks for library `foo' in the parent directory, then in /tmp, then
2860in the other directories in `load-path'. (-L is short for --directory.)
2861 2873
2862+++ 2874+++
2863** The default value of `sentence-end' is now defined using the new 2875** The default value of `sentence-end' is now defined using the new