Mercurial > emacs
comparison etc/NEWS @ 62146:83bf059ae430
Document locate-file.
Move description of new command-line options to where they belong.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 07 May 2005 11:15:53 +0000 |
parents | 534734b70d1a |
children | 0c38f5bedcab |
comparison
equal
deleted
inserted
replaced
62145:da3ebc608137 | 62146:83bf059ae430 |
---|---|
117 the blinking cursor. | 117 the blinking cursor. |
118 | 118 |
119 +++ | 119 +++ |
120 ** New command line option -nbc or --no-blinking-cursor disables | 120 ** New command line option -nbc or --no-blinking-cursor disables |
121 the blinking cursor on graphical terminals. | 121 the blinking cursor on graphical terminals. |
122 | |
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.) | |
122 | 139 |
123 +++ | 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 |
2840 :propertize and :eval forms in the value of a variable whose | 2857 :propertize and :eval forms in the value of a variable whose |
2841 `risky-local-variable' property is nil. | 2858 `risky-local-variable' property is nil. |
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 |
2864 variable `sentence-end-without-space', which contains such characters | 2876 variable `sentence-end-without-space', which contains such characters |
2865 that end a sentence without following spaces. | 2877 that end a sentence without following spaces. |