diff options
| author | Eli Zaretskii | 2005-05-07 11:15:53 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-05-07 11:15:53 +0000 |
| commit | f3c2dbe9146caafcf968904434c70c04669ac509 (patch) | |
| tree | 099a7069af360b344123fb304d0e74b13e9ee1f5 | |
| parent | a790bcd479bc87e78ec852a3218df7d82b6cbc8b (diff) | |
| download | emacs-f3c2dbe9146caafcf968904434c70c04669ac509.tar.gz emacs-f3c2dbe9146caafcf968904434c70c04669ac509.zip | |
Document locate-file.
Move description of new command-line options to where they belong.
| -rw-r--r-- | etc/NEWS | 44 |
1 files changed, 28 insertions, 16 deletions
| @@ -121,6 +121,23 @@ the blinking cursor. | |||
| 121 | the blinking cursor on graphical terminals. | 121 | the blinking cursor on graphical terminals. |
| 122 | 122 | ||
| 123 | +++ | 123 | +++ |
| 124 | ** The option --script FILE runs Emacs in batch mode and loads FILE. | ||
| 125 | It is useful for writing Emacs Lisp shell script files, because they | ||
| 126 | can start with this line: | ||
| 127 | |||
| 128 | #!/usr/bin/emacs --script | ||
| 129 | |||
| 130 | +++ | ||
| 131 | ** The option --directory DIR now modifies `load-path' immediately. | ||
| 132 | Directories are added to the front of `load-path' in the order they | ||
| 133 | appear on the command line. For example, with this command line: | ||
| 134 | |||
| 135 | emacs -batch -L .. -L /tmp --eval "(require 'foo)" | ||
| 136 | |||
| 137 | Emacs looks for library `foo' in the parent directory, then in /tmp, then | ||
| 138 | in 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 |
| 2847 | It is useful for writing Emacs Lisp shell script files, because they | 2864 | lists: a list of directories to search in and a list of suffixes to |
| 2848 | can start with this line: | 2865 | try; typical usage might use `exec-path' and `load-path' for the list |
| 2849 | 2866 | of directories, and `exec-suffixes' and `load-suffixes' for the list | |
| 2850 | #!/usr/bin/emacs --script | 2867 | of suffixes. The function also accepts a predicate argument to |
| 2851 | 2868 | further filter candidate files. | |
| 2852 | +++ | 2869 | |
| 2853 | ** The option --directory DIR now modifies `load-path' immediately. | 2870 | One advantage of using this function is that the list of suffixes in |
| 2854 | Directories are added to the front of `load-path' in the order they | 2871 | `exec-suffixes' is OS-dependant, so this function will find |
| 2855 | appear on the command line. For example, with this command line: | 2872 | executables without polluting Lisp code with OS dependancies. |
| 2856 | |||
| 2857 | emacs -batch -L .. -L /tmp --eval "(require 'foo)" | ||
| 2858 | |||
| 2859 | Emacs looks for library `foo' in the parent directory, then in /tmp, then | ||
| 2860 | in 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 |