diff options
| author | Paul Eggert | 2011-04-10 18:41:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-10 18:41:15 -0700 |
| commit | 16a97296c05ec9d5bb4ffeae9dce90fc63f578ed (patch) | |
| tree | 0801b434f760fd8dded7204501ffcdb82460720c /src | |
| parent | 785bbd422461295890087ced24bfd87504032d0c (diff) | |
| download | emacs-16a97296c05ec9d5bb4ffeae9dce90fc63f578ed.tar.gz emacs-16a97296c05ec9d5bb4ffeae9dce90fc63f578ed.zip | |
Make Emacs functions such as Fatom 'static' by default.
This makes it easier for human readers (and static analyzers)
to see whether these functions can be called from other modules.
DEFUN now defines a static function. To make the function external
so that it can be used in other C modules, use the new macro DEFUE.
* lisp.h (DEFINE_FUNC): New macro, with the old contents of DEFUN.
(DEFUN): Rewrite in terms of DEFINE_FUNC. It now generates a
static function definition. Use DEFUE if you want an extern one.
(DEFUE, INFUN): New macros.
(Funibyte_char_to_multibyte, Fsyntax_table_p, Finit_image_library):
(Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer):
(Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute):
(Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes):
Remove decls, since these functions are now static.
(Funintern, Fget_internal_run_time): New decls, since these functions
were already external.
* alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c:
* ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c:
* doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c:
* fns.c, font.c, fontset.c, frame.c, image.c, indent.c:
* keyboard.c, keymap.c, lread.c:
* macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c:
* syntax.c, term.c, terminal.c, textprop.c, undo.c:
* window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c:
Mark functions with DEFUE instead of DEFUN,
if they are used in other modules.
* buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward
decls for now-static functions.
* buffer.h (Fdelete_overlay): Remove decl.
* callproc.c (Fgetenv_internal): Mark as internal.
* composite.c (Fremove_list_of_text_properties): Remove decl.
(Fcomposition_get_gstring): New forward static decl.
* composite.h (Fcomposite_get_gstring): Remove decl.
* dired.c (Ffile_attributes): New forward static decl.
* doc.c (Fdocumntation_property): New forward static decl.
* eval.c (Ffetch_bytecode): New forward static decl.
(Funintern): Remove extern decl; now in .h file where it belongs.
* fileio.c (Fmake_symbolic_link): New forward static decl.
* image.c (Finit_image_library): New forward static decl.
* insdel.c (Fcombine_after_change_execute): Make forward decl static.
* intervals.h (Fprevious_property_change):
(Fremove_list_of_text_properties): Remove decls.
* keyboard.c (Fthis_command_keys): Remove decl.
(Fcommand_execute): New forward static decl.
* keymap.c (Flookup_key): New forward static decl.
(Fcopy_keymap): Now static.
* keymap.h (Flookup_key): Remove decl.
* process.c (Fget_process): New forward static decl.
(Fprocess_datagram_address): Mark as internal.
* syntax.c (Fsyntax_table_p): New forward static decl.
(skip_chars): Remove duplicate decl.
* textprop.c (Fprevious_property_change): New forward static decl.
* window.c (Fset_window_fringes, Fset_window_scroll_bars):
Now internal.
(Fset_window_margins, Fset_window_vscroll): New forward static decls.
* window.h (Fset_window_vscroll, Fset_window_margins): Remove decls.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 59 | ||||
| -rw-r--r-- | src/alloc.c | 26 | ||||
| -rw-r--r-- | src/buffer.c | 53 | ||||
| -rw-r--r-- | src/buffer.h | 1 | ||||
| -rw-r--r-- | src/callint.c | 2 | ||||
| -rw-r--r-- | src/callproc.c | 4 | ||||
| -rw-r--r-- | src/casefiddle.c | 10 | ||||
| -rw-r--r-- | src/casetab.c | 5 | ||||
| -rw-r--r-- | src/ccl.c | 2 | ||||
| -rw-r--r-- | src/character.c | 4 | ||||
| -rw-r--r-- | src/chartab.c | 12 | ||||
| -rw-r--r-- | src/cmds.c | 6 | ||||
| -rw-r--r-- | src/coding.c | 16 | ||||
| -rw-r--r-- | src/composite.c | 2 | ||||
| -rw-r--r-- | src/composite.h | 2 | ||||
| -rw-r--r-- | src/data.c | 88 | ||||
| -rw-r--r-- | src/dired.c | 1 | ||||
| -rw-r--r-- | src/dispnew.c | 10 | ||||
| -rw-r--r-- | src/doc.c | 5 | ||||
| -rw-r--r-- | src/editfns.c | 62 | ||||
| -rw-r--r-- | src/emacs.c | 2 | ||||
| -rw-r--r-- | src/eval.c | 27 | ||||
| -rw-r--r-- | src/fileio.c | 37 | ||||
| -rw-r--r-- | src/filelock.c | 2 | ||||
| -rw-r--r-- | src/floatfns.c | 4 | ||||
| -rw-r--r-- | src/fns.c | 88 | ||||
| -rw-r--r-- | src/font.c | 18 | ||||
| -rw-r--r-- | src/fontset.c | 4 | ||||
| -rw-r--r-- | src/frame.c | 26 | ||||
| -rw-r--r-- | src/image.c | 7 | ||||
| -rw-r--r-- | src/indent.c | 6 | ||||
| -rw-r--r-- | src/insdel.c | 2 | ||||
| -rw-r--r-- | src/intervals.h | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 21 | ||||
| -rw-r--r-- | src/keymap.c | 23 | ||||
| -rw-r--r-- | src/keymap.h | 2 | ||||
| -rw-r--r-- | src/lisp.h | 26 | ||||
| -rw-r--r-- | src/lread.c | 18 | ||||
| -rw-r--r-- | src/macros.c | 5 | ||||
| -rw-r--r-- | src/marker.c | 8 | ||||
| -rw-r--r-- | src/menu.c | 2 | ||||
| -rw-r--r-- | src/minibuf.c | 17 | ||||
| -rw-r--r-- | src/print.c | 12 | ||||
| -rw-r--r-- | src/process.c | 13 | ||||
| -rw-r--r-- | src/search.c | 10 | ||||
| -rw-r--r-- | src/syntax.c | 9 | ||||
| -rw-r--r-- | src/term.c | 2 | ||||
| -rw-r--r-- | src/terminal.c | 4 | ||||
| -rw-r--r-- | src/textprop.c | 35 | ||||
| -rw-r--r-- | src/undo.c | 3 | ||||
| -rw-r--r-- | src/window.c | 41 | ||||
| -rw-r--r-- | src/window.h | 2 | ||||
| -rw-r--r-- | src/xdisp.c | 12 | ||||
| -rw-r--r-- | src/xfaces.c | 8 | ||||
| -rw-r--r-- | src/xfns.c | 8 | ||||
| -rw-r--r-- | src/xmenu.c | 2 | ||||
| -rw-r--r-- | src/xsettings.c | 4 |
57 files changed, 471 insertions, 411 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 58df7e08955..56bb83e0314 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,62 @@ | |||
| 1 | 2011-04-11 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Make Emacs functions such as Fatom 'static' by default. | ||
| 4 | This makes it easier for human readers (and static analyzers) | ||
| 5 | to see whether these functions can be called from other modules. | ||
| 6 | DEFUN now defines a static function. To make the function external | ||
| 7 | so that it can be used in other C modules, use the new macro DEFUE. | ||
| 8 | * lisp.h (DEFINE_FUNC): New macro, with the old contents of DEFUN. | ||
| 9 | (DEFUN): Rewrite in terms of DEFINE_FUNC. It now generates a | ||
| 10 | static function definition. Use DEFUE if you want an extern one. | ||
| 11 | (DEFUE, INFUN): New macros. | ||
| 12 | (Funibyte_char_to_multibyte, Fsyntax_table_p, Finit_image_library): | ||
| 13 | (Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer): | ||
| 14 | (Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute): | ||
| 15 | (Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes): | ||
| 16 | Remove decls, since these functions are now static. | ||
| 17 | (Funintern, Fget_internal_run_time): New decls, since these functions | ||
| 18 | were already external. | ||
| 19 | * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c: | ||
| 20 | * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c: | ||
| 21 | * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c: | ||
| 22 | * fns.c, font.c, fontset.c, frame.c, image.c, indent.c: | ||
| 23 | * keyboard.c, keymap.c, lread.c: | ||
| 24 | * macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c: | ||
| 25 | * syntax.c, term.c, terminal.c, textprop.c, undo.c: | ||
| 26 | * window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c: | ||
| 27 | Mark functions with DEFUE instead of DEFUN, | ||
| 28 | if they are used in other modules. | ||
| 29 | * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward | ||
| 30 | decls for now-static functions. | ||
| 31 | * buffer.h (Fdelete_overlay): Remove decl. | ||
| 32 | * callproc.c (Fgetenv_internal): Mark as internal. | ||
| 33 | * composite.c (Fremove_list_of_text_properties): Remove decl. | ||
| 34 | (Fcomposition_get_gstring): New forward static decl. | ||
| 35 | * composite.h (Fcomposite_get_gstring): Remove decl. | ||
| 36 | * dired.c (Ffile_attributes): New forward static decl. | ||
| 37 | * doc.c (Fdocumntation_property): New forward static decl. | ||
| 38 | * eval.c (Ffetch_bytecode): New forward static decl. | ||
| 39 | (Funintern): Remove extern decl; now in .h file where it belongs. | ||
| 40 | * fileio.c (Fmake_symbolic_link): New forward static decl. | ||
| 41 | * image.c (Finit_image_library): New forward static decl. | ||
| 42 | * insdel.c (Fcombine_after_change_execute): Make forward decl static. | ||
| 43 | * intervals.h (Fprevious_property_change): | ||
| 44 | (Fremove_list_of_text_properties): Remove decls. | ||
| 45 | * keyboard.c (Fthis_command_keys): Remove decl. | ||
| 46 | (Fcommand_execute): New forward static decl. | ||
| 47 | * keymap.c (Flookup_key): New forward static decl. | ||
| 48 | (Fcopy_keymap): Now static. | ||
| 49 | * keymap.h (Flookup_key): Remove decl. | ||
| 50 | * process.c (Fget_process): New forward static decl. | ||
| 51 | (Fprocess_datagram_address): Mark as internal. | ||
| 52 | * syntax.c (Fsyntax_table_p): New forward static decl. | ||
| 53 | (skip_chars): Remove duplicate decl. | ||
| 54 | * textprop.c (Fprevious_property_change): New forward static decl. | ||
| 55 | * window.c (Fset_window_fringes, Fset_window_scroll_bars): | ||
| 56 | Now internal. | ||
| 57 | (Fset_window_margins, Fset_window_vscroll): New forward static decls. | ||
| 58 | * window.h (Fset_window_vscroll, Fset_window_margins): Remove decls. | ||
| 59 | |||
| 1 | 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> | 60 | 2011-04-10 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 61 | ||
| 3 | * editfns.c (Fformat): Remove unreachable code. | 62 | * editfns.c (Fformat): Remove unreachable code. |
diff --git a/src/alloc.c b/src/alloc.c index 54c4760abab..1396586ba3e 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -2174,7 +2174,7 @@ compact_small_strings (void) | |||
| 2174 | } | 2174 | } |
| 2175 | 2175 | ||
| 2176 | 2176 | ||
| 2177 | DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0, | 2177 | DEFUE ("make-string", Fmake_string, Smake_string, 2, 2, 0, |
| 2178 | doc: /* Return a newly created string of length LENGTH, with INIT in each element. | 2178 | doc: /* Return a newly created string of length LENGTH, with INIT in each element. |
| 2179 | LENGTH must be an integer. | 2179 | LENGTH must be an integer. |
| 2180 | INIT must be an integer that represents a character. */) | 2180 | INIT must be an integer that represents a character. */) |
| @@ -2222,7 +2222,7 @@ INIT must be an integer that represents a character. */) | |||
| 2222 | } | 2222 | } |
| 2223 | 2223 | ||
| 2224 | 2224 | ||
| 2225 | DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, | 2225 | DEFUE ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, |
| 2226 | doc: /* Return a new bool-vector of length LENGTH, using INIT for each element. | 2226 | doc: /* Return a new bool-vector of length LENGTH, using INIT for each element. |
| 2227 | LENGTH must be a number. INIT matters only in whether it is t or nil. */) | 2227 | LENGTH must be a number. INIT matters only in whether it is t or nil. */) |
| 2228 | (Lisp_Object length, Lisp_Object init) | 2228 | (Lisp_Object length, Lisp_Object init) |
| @@ -2610,7 +2610,7 @@ free_cons (struct Lisp_Cons *ptr) | |||
| 2610 | cons_free_list = ptr; | 2610 | cons_free_list = ptr; |
| 2611 | } | 2611 | } |
| 2612 | 2612 | ||
| 2613 | DEFUN ("cons", Fcons, Scons, 2, 2, 0, | 2613 | DEFUE ("cons", Fcons, Scons, 2, 2, 0, |
| 2614 | doc: /* Create a new cons, give it CAR and CDR as components, and return it. */) | 2614 | doc: /* Create a new cons, give it CAR and CDR as components, and return it. */) |
| 2615 | (Lisp_Object car, Lisp_Object cdr) | 2615 | (Lisp_Object car, Lisp_Object cdr) |
| 2616 | { | 2616 | { |
| @@ -2703,7 +2703,7 @@ list5 (Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, Lisp_Object arg4, L | |||
| 2703 | } | 2703 | } |
| 2704 | 2704 | ||
| 2705 | 2705 | ||
| 2706 | DEFUN ("list", Flist, Slist, 0, MANY, 0, | 2706 | DEFUE ("list", Flist, Slist, 0, MANY, 0, |
| 2707 | doc: /* Return a newly created list with specified arguments as elements. | 2707 | doc: /* Return a newly created list with specified arguments as elements. |
| 2708 | Any number of arguments, even zero arguments, are allowed. | 2708 | Any number of arguments, even zero arguments, are allowed. |
| 2709 | usage: (list &rest OBJECTS) */) | 2709 | usage: (list &rest OBJECTS) */) |
| @@ -2721,7 +2721,7 @@ usage: (list &rest OBJECTS) */) | |||
| 2721 | } | 2721 | } |
| 2722 | 2722 | ||
| 2723 | 2723 | ||
| 2724 | DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, | 2724 | DEFUE ("make-list", Fmake_list, Smake_list, 2, 2, 0, |
| 2725 | doc: /* Return a newly created list of length LENGTH, with each element being INIT. */) | 2725 | doc: /* Return a newly created list of length LENGTH, with each element being INIT. */) |
| 2726 | (register Lisp_Object length, Lisp_Object init) | 2726 | (register Lisp_Object length, Lisp_Object init) |
| 2727 | { | 2727 | { |
| @@ -2897,7 +2897,7 @@ allocate_process (void) | |||
| 2897 | } | 2897 | } |
| 2898 | 2898 | ||
| 2899 | 2899 | ||
| 2900 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, | 2900 | DEFUE ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, |
| 2901 | doc: /* Return a newly created vector of length LENGTH, with each element being INIT. | 2901 | doc: /* Return a newly created vector of length LENGTH, with each element being INIT. |
| 2902 | See also the function `vector'. */) | 2902 | See also the function `vector'. */) |
| 2903 | (register Lisp_Object length, Lisp_Object init) | 2903 | (register Lisp_Object length, Lisp_Object init) |
| @@ -2919,7 +2919,7 @@ See also the function `vector'. */) | |||
| 2919 | } | 2919 | } |
| 2920 | 2920 | ||
| 2921 | 2921 | ||
| 2922 | DEFUN ("vector", Fvector, Svector, 0, MANY, 0, | 2922 | DEFUE ("vector", Fvector, Svector, 0, MANY, 0, |
| 2923 | doc: /* Return a newly created vector with specified arguments as elements. | 2923 | doc: /* Return a newly created vector with specified arguments as elements. |
| 2924 | Any number of arguments, even zero arguments, are allowed. | 2924 | Any number of arguments, even zero arguments, are allowed. |
| 2925 | usage: (vector &rest OBJECTS) */) | 2925 | usage: (vector &rest OBJECTS) */) |
| @@ -2938,7 +2938,7 @@ usage: (vector &rest OBJECTS) */) | |||
| 2938 | } | 2938 | } |
| 2939 | 2939 | ||
| 2940 | 2940 | ||
| 2941 | DEFUN ("make-byte-code", Fmake_byte_code, Smake_byte_code, 4, MANY, 0, | 2941 | DEFUE ("make-byte-code", Fmake_byte_code, Smake_byte_code, 4, MANY, 0, |
| 2942 | doc: /* Create a byte-code object with specified arguments as elements. | 2942 | doc: /* Create a byte-code object with specified arguments as elements. |
| 2943 | The arguments should be the ARGLIST, bytecode-string BYTE-CODE, constant | 2943 | The arguments should be the ARGLIST, bytecode-string BYTE-CODE, constant |
| 2944 | vector CONSTANTS, maximum stack size DEPTH, (optional) DOCSTRING, | 2944 | vector CONSTANTS, maximum stack size DEPTH, (optional) DOCSTRING, |
| @@ -3033,7 +3033,7 @@ init_symbol (void) | |||
| 3033 | } | 3033 | } |
| 3034 | 3034 | ||
| 3035 | 3035 | ||
| 3036 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, | 3036 | DEFUE ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, |
| 3037 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. | 3037 | doc: /* Return a newly allocated uninterned symbol whose name is NAME. |
| 3038 | Its value and function definition are void, and its property list is nil. */) | 3038 | Its value and function definition are void, and its property list is nil. */) |
| 3039 | (Lisp_Object name) | 3039 | (Lisp_Object name) |
| @@ -3196,7 +3196,7 @@ make_save_value (void *pointer, int integer) | |||
| 3196 | return val; | 3196 | return val; |
| 3197 | } | 3197 | } |
| 3198 | 3198 | ||
| 3199 | DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, | 3199 | DEFUE ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, |
| 3200 | doc: /* Return a newly allocated marker which does not point at any place. */) | 3200 | doc: /* Return a newly allocated marker which does not point at any place. */) |
| 3201 | (void) | 3201 | (void) |
| 3202 | { | 3202 | { |
| @@ -3925,7 +3925,7 @@ static int max_live, max_zombies; | |||
| 3925 | 3925 | ||
| 3926 | static double avg_live; | 3926 | static double avg_live; |
| 3927 | 3927 | ||
| 3928 | DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", | 3928 | DEFUE ("gc-status", Fgc_status, Sgc_status, 0, 0, "", |
| 3929 | doc: /* Show information about live and zombie objects. */) | 3929 | doc: /* Show information about live and zombie objects. */) |
| 3930 | (void) | 3930 | (void) |
| 3931 | { | 3931 | { |
| @@ -4740,7 +4740,7 @@ make_pure_vector (EMACS_INT len) | |||
| 4740 | } | 4740 | } |
| 4741 | 4741 | ||
| 4742 | 4742 | ||
| 4743 | DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0, | 4743 | DEFUE ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0, |
| 4744 | doc: /* Make a copy of object OBJ in pure storage. | 4744 | doc: /* Make a copy of object OBJ in pure storage. |
| 4745 | Recursively copies contents of vectors and cons cells. | 4745 | Recursively copies contents of vectors and cons cells. |
| 4746 | Does not copy symbols. Copies strings without text properties. */) | 4746 | Does not copy symbols. Copies strings without text properties. */) |
| @@ -4834,7 +4834,7 @@ inhibit_garbage_collection (void) | |||
| 4834 | } | 4834 | } |
| 4835 | 4835 | ||
| 4836 | 4836 | ||
| 4837 | DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", | 4837 | DEFUE ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", |
| 4838 | doc: /* Reclaim storage for Lisp objects no longer needed. | 4838 | doc: /* Reclaim storage for Lisp objects no longer needed. |
| 4839 | Garbage collection happens automatically if you cons more than | 4839 | Garbage collection happens automatically if you cons more than |
| 4840 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection. | 4840 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection. |
diff --git a/src/buffer.c b/src/buffer.c index a0054e32d0a..a88afbb36e6 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -100,6 +100,8 @@ static char buffer_permanent_local_flags[MAX_PER_BUFFER_VARS]; | |||
| 100 | 100 | ||
| 101 | int last_per_buffer_idx; | 101 | int last_per_buffer_idx; |
| 102 | 102 | ||
| 103 | INFUN (Fset_buffer_major_mode, 1); | ||
| 104 | INFUN (Fdelete_overlay, 1); | ||
| 103 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, | 105 | static void call_overlay_mod_hooks (Lisp_Object list, Lisp_Object overlay, |
| 104 | int after, Lisp_Object arg1, | 106 | int after, Lisp_Object arg1, |
| 105 | Lisp_Object arg2, Lisp_Object arg3); | 107 | Lisp_Object arg2, Lisp_Object arg3); |
| @@ -157,7 +159,7 @@ nsberror (Lisp_Object spec) | |||
| 157 | error ("Invalid buffer argument"); | 159 | error ("Invalid buffer argument"); |
| 158 | } | 160 | } |
| 159 | 161 | ||
| 160 | DEFUN ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0, | 162 | DEFUE ("buffer-live-p", Fbuffer_live_p, Sbuffer_live_p, 1, 1, 0, |
| 161 | doc: /* Return non-nil if OBJECT is a buffer which has not been killed. | 163 | doc: /* Return non-nil if OBJECT is a buffer which has not been killed. |
| 162 | Value is nil if OBJECT is not a buffer or if it has been killed. */) | 164 | Value is nil if OBJECT is not a buffer or if it has been killed. */) |
| 163 | (Lisp_Object object) | 165 | (Lisp_Object object) |
| @@ -229,7 +231,7 @@ assoc_ignore_text_properties (register Lisp_Object key, Lisp_Object list) | |||
| 229 | return Qnil; | 231 | return Qnil; |
| 230 | } | 232 | } |
| 231 | 233 | ||
| 232 | DEFUN ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0, | 234 | DEFUE ("get-buffer", Fget_buffer, Sget_buffer, 1, 1, 0, |
| 233 | doc: /* Return the buffer named BUFFER-OR-NAME. | 235 | doc: /* Return the buffer named BUFFER-OR-NAME. |
| 234 | BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME | 236 | BUFFER-OR-NAME must be either a string or a buffer. If BUFFER-OR-NAME |
| 235 | is a string and there is no buffer with that name, return nil. If | 237 | is a string and there is no buffer with that name, return nil. If |
| @@ -294,7 +296,7 @@ get_truename_buffer (register Lisp_Object filename) | |||
| 294 | /* Incremented for each buffer created, to assign the buffer number. */ | 296 | /* Incremented for each buffer created, to assign the buffer number. */ |
| 295 | int buffer_count; | 297 | int buffer_count; |
| 296 | 298 | ||
| 297 | DEFUN ("get-buffer-create", Fget_buffer_create, Sget_buffer_create, 1, 1, 0, | 299 | DEFUE ("get-buffer-create", Fget_buffer_create, Sget_buffer_create, 1, 1, 0, |
| 298 | doc: /* Return the buffer specified by BUFFER-OR-NAME, creating a new one if needed. | 300 | doc: /* Return the buffer specified by BUFFER-OR-NAME, creating a new one if needed. |
| 299 | If BUFFER-OR-NAME is a string and a live buffer with that name exists, | 301 | If BUFFER-OR-NAME is a string and a live buffer with that name exists, |
| 300 | return that buffer. If no such buffer exists, create a new buffer with | 302 | return that buffer. If no such buffer exists, create a new buffer with |
| @@ -830,8 +832,8 @@ reset_buffer_local_variables (register struct buffer *b, int permanent_too) | |||
| 830 | and set-visited-file-name ought to be able to use this to really | 832 | and set-visited-file-name ought to be able to use this to really |
| 831 | rename the buffer properly. */ | 833 | rename the buffer properly. */ |
| 832 | 834 | ||
| 833 | DEFUN ("generate-new-buffer-name", Fgenerate_new_buffer_name, Sgenerate_new_buffer_name, | 835 | DEFUE ("generate-new-buffer-name", Fgenerate_new_buffer_name, |
| 834 | 1, 2, 0, | 836 | Sgenerate_new_buffer_name, 1, 2, 0, |
| 835 | doc: /* Return a string that is the name of no existing buffer based on NAME. | 837 | doc: /* Return a string that is the name of no existing buffer based on NAME. |
| 836 | If there is no live buffer named NAME, then return NAME. | 838 | If there is no live buffer named NAME, then return NAME. |
| 837 | Otherwise modify name by appending `<NUMBER>', incrementing NUMBER | 839 | Otherwise modify name by appending `<NUMBER>', incrementing NUMBER |
| @@ -868,7 +870,7 @@ it is in the sequence to be tried) even if a buffer with that name exists. */) | |||
| 868 | } | 870 | } |
| 869 | 871 | ||
| 870 | 872 | ||
| 871 | DEFUN ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0, | 873 | DEFUE ("buffer-name", Fbuffer_name, Sbuffer_name, 0, 1, 0, |
| 872 | doc: /* Return the name of BUFFER, as a string. | 874 | doc: /* Return the name of BUFFER, as a string. |
| 873 | BUFFER defaults to the current buffer. | 875 | BUFFER defaults to the current buffer. |
| 874 | Return nil if BUFFER has been killed. */) | 876 | Return nil if BUFFER has been killed. */) |
| @@ -880,7 +882,7 @@ Return nil if BUFFER has been killed. */) | |||
| 880 | return BVAR (XBUFFER (buffer), name); | 882 | return BVAR (XBUFFER (buffer), name); |
| 881 | } | 883 | } |
| 882 | 884 | ||
| 883 | DEFUN ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0, | 885 | DEFUE ("buffer-file-name", Fbuffer_file_name, Sbuffer_file_name, 0, 1, 0, |
| 884 | doc: /* Return name of file BUFFER is visiting, or nil if none. | 886 | doc: /* Return name of file BUFFER is visiting, or nil if none. |
| 885 | No argument or nil as argument means use the current buffer. */) | 887 | No argument or nil as argument means use the current buffer. */) |
| 886 | (register Lisp_Object buffer) | 888 | (register Lisp_Object buffer) |
| @@ -915,7 +917,7 @@ BUFFER defaults to the current buffer. */) | |||
| 915 | return base_buffer; | 917 | return base_buffer; |
| 916 | } | 918 | } |
| 917 | 919 | ||
| 918 | DEFUN ("buffer-local-value", Fbuffer_local_value, | 920 | DEFUE ("buffer-local-value", Fbuffer_local_value, |
| 919 | Sbuffer_local_value, 2, 2, 0, | 921 | Sbuffer_local_value, 2, 2, 0, |
| 920 | doc: /* Return the value of VARIABLE in BUFFER. | 922 | doc: /* Return the value of VARIABLE in BUFFER. |
| 921 | If VARIABLE does not have a buffer-local binding in BUFFER, the value | 923 | If VARIABLE does not have a buffer-local binding in BUFFER, the value |
| @@ -1056,7 +1058,7 @@ No argument or nil as argument means use current buffer as BUFFER. */) | |||
| 1056 | return result; | 1058 | return result; |
| 1057 | } | 1059 | } |
| 1058 | 1060 | ||
| 1059 | DEFUN ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p, | 1061 | DEFUE ("buffer-modified-p", Fbuffer_modified_p, Sbuffer_modified_p, |
| 1060 | 0, 1, 0, | 1062 | 0, 1, 0, |
| 1061 | doc: /* Return t if BUFFER was modified since its file was last read or saved. | 1063 | doc: /* Return t if BUFFER was modified since its file was last read or saved. |
| 1062 | No argument or nil as argument means use current buffer as BUFFER. */) | 1064 | No argument or nil as argument means use current buffer as BUFFER. */) |
| @@ -1074,7 +1076,7 @@ No argument or nil as argument means use current buffer as BUFFER. */) | |||
| 1074 | return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil; | 1076 | return BUF_SAVE_MODIFF (buf) < BUF_MODIFF (buf) ? Qt : Qnil; |
| 1075 | } | 1077 | } |
| 1076 | 1078 | ||
| 1077 | DEFUN ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, | 1079 | DEFUE ("set-buffer-modified-p", Fset_buffer_modified_p, Sset_buffer_modified_p, |
| 1078 | 1, 1, 0, | 1080 | 1, 1, 0, |
| 1079 | doc: /* Mark current buffer as modified or unmodified according to FLAG. | 1081 | doc: /* Mark current buffer as modified or unmodified according to FLAG. |
| 1080 | A non-nil FLAG means mark the buffer modified. */) | 1082 | A non-nil FLAG means mark the buffer modified. */) |
| @@ -1266,7 +1268,7 @@ This does not change the name of the visited file (if any). */) | |||
| 1266 | return BVAR (current_buffer, name); | 1268 | return BVAR (current_buffer, name); |
| 1267 | } | 1269 | } |
| 1268 | 1270 | ||
| 1269 | DEFUN ("other-buffer", Fother_buffer, Sother_buffer, 0, 3, 0, | 1271 | DEFUE ("other-buffer", Fother_buffer, Sother_buffer, 0, 3, 0, |
| 1270 | doc: /* Return most recently selected buffer other than BUFFER. | 1272 | doc: /* Return most recently selected buffer other than BUFFER. |
| 1271 | Buffers not visible in windows are preferred to visible buffers, | 1273 | Buffers not visible in windows are preferred to visible buffers, |
| 1272 | unless optional second argument VISIBLE-OK is non-nil. | 1274 | unless optional second argument VISIBLE-OK is non-nil. |
| @@ -1276,7 +1278,6 @@ If no other buffer exists, the buffer `*scratch*' is returned. | |||
| 1276 | If BUFFER is omitted or nil, some interesting buffer is returned. */) | 1278 | If BUFFER is omitted or nil, some interesting buffer is returned. */) |
| 1277 | (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) | 1279 | (register Lisp_Object buffer, Lisp_Object visible_ok, Lisp_Object frame) |
| 1278 | { | 1280 | { |
| 1279 | Lisp_Object Fset_buffer_major_mode (Lisp_Object buffer); | ||
| 1280 | register Lisp_Object tail, buf, notsogood, tem, pred, add_ons; | 1281 | register Lisp_Object tail, buf, notsogood, tem, pred, add_ons; |
| 1281 | notsogood = Qnil; | 1282 | notsogood = Qnil; |
| 1282 | 1283 | ||
| @@ -1341,7 +1342,7 @@ If BUFFER is omitted or nil, some interesting buffer is returned. */) | |||
| 1341 | return buf; | 1342 | return buf; |
| 1342 | } | 1343 | } |
| 1343 | 1344 | ||
| 1344 | DEFUN ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo, | 1345 | DEFUE ("buffer-enable-undo", Fbuffer_enable_undo, Sbuffer_enable_undo, |
| 1345 | 0, 1, "", | 1346 | 0, 1, "", |
| 1346 | doc: /* Start keeping undo information for buffer BUFFER. | 1347 | doc: /* Start keeping undo information for buffer BUFFER. |
| 1347 | No argument or nil as argument means do this for the current buffer. */) | 1348 | No argument or nil as argument means do this for the current buffer. */) |
| @@ -1370,7 +1371,7 @@ Hook to be run (by `run-hooks', which see) when a buffer is killed.\n\ | |||
| 1370 | The buffer being killed will be current while the hook is running.\n\ | 1371 | The buffer being killed will be current while the hook is running.\n\ |
| 1371 | See `kill-buffer'." | 1372 | See `kill-buffer'." |
| 1372 | */ | 1373 | */ |
| 1373 | DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 0, 1, "bKill buffer: ", | 1374 | DEFUE ("kill-buffer", Fkill_buffer, Skill_buffer, 0, 1, "bKill buffer: ", |
| 1374 | doc: /* Kill buffer BUFFER-OR-NAME. | 1375 | doc: /* Kill buffer BUFFER-OR-NAME. |
| 1375 | The argument may be a buffer or the name of an existing buffer. | 1376 | The argument may be a buffer or the name of an existing buffer. |
| 1376 | Argument nil or omitted means kill the current buffer. Return t if the | 1377 | Argument nil or omitted means kill the current buffer. Return t if the |
| @@ -1789,7 +1790,7 @@ messing with the window-buffer correspondences. */) | |||
| 1789 | return switch_to_buffer_1 (buffer_or_name, norecord); | 1790 | return switch_to_buffer_1 (buffer_or_name, norecord); |
| 1790 | } | 1791 | } |
| 1791 | 1792 | ||
| 1792 | DEFUN ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0, | 1793 | DEFUE ("current-buffer", Fcurrent_buffer, Scurrent_buffer, 0, 0, 0, |
| 1793 | doc: /* Return the current buffer as a Lisp object. */) | 1794 | doc: /* Return the current buffer as a Lisp object. */) |
| 1794 | (void) | 1795 | (void) |
| 1795 | { | 1796 | { |
| @@ -1899,7 +1900,7 @@ set_buffer_temp (struct buffer *b) | |||
| 1899 | fetch_buffer_markers (b); | 1900 | fetch_buffer_markers (b); |
| 1900 | } | 1901 | } |
| 1901 | 1902 | ||
| 1902 | DEFUN ("set-buffer", Fset_buffer, Sset_buffer, 1, 1, 0, | 1903 | DEFUE ("set-buffer", Fset_buffer, Sset_buffer, 1, 1, 0, |
| 1903 | doc: /* Make buffer BUFFER-OR-NAME current for editing operations. | 1904 | doc: /* Make buffer BUFFER-OR-NAME current for editing operations. |
| 1904 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer. See | 1905 | BUFFER-OR-NAME may be a buffer or the name of an existing buffer. See |
| 1905 | also `save-excursion' when you want to make a buffer current | 1906 | also `save-excursion' when you want to make a buffer current |
| @@ -1928,7 +1929,7 @@ set_buffer_if_live (Lisp_Object buffer) | |||
| 1928 | return Qnil; | 1929 | return Qnil; |
| 1929 | } | 1930 | } |
| 1930 | 1931 | ||
| 1931 | DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, | 1932 | DEFUE ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, |
| 1932 | Sbarf_if_buffer_read_only, 0, 0, 0, | 1933 | Sbarf_if_buffer_read_only, 0, 0, 0, |
| 1933 | doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */) | 1934 | doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. */) |
| 1934 | (void) | 1935 | (void) |
| @@ -2001,7 +2002,7 @@ its frame, iconify that frame. */) | |||
| 2001 | return Qnil; | 2002 | return Qnil; |
| 2002 | } | 2003 | } |
| 2003 | 2004 | ||
| 2004 | DEFUN ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*", | 2005 | DEFUE ("erase-buffer", Ferase_buffer, Serase_buffer, 0, 0, "*", |
| 2005 | doc: /* Delete the entire contents of the current buffer. | 2006 | doc: /* Delete the entire contents of the current buffer. |
| 2006 | Any narrowing restriction in effect (see `narrow-to-region') is removed, | 2007 | Any narrowing restriction in effect (see `narrow-to-region') is removed, |
| 2007 | so the buffer is truly empty after this. */) | 2008 | so the buffer is truly empty after this. */) |
| @@ -2212,7 +2213,7 @@ DEFUN ("buffer-swap-text", Fbuffer_swap_text, Sbuffer_swap_text, | |||
| 2212 | return Qnil; | 2213 | return Qnil; |
| 2213 | } | 2214 | } |
| 2214 | 2215 | ||
| 2215 | DEFUN ("set-buffer-multibyte", Fset_buffer_multibyte, Sset_buffer_multibyte, | 2216 | DEFUE ("set-buffer-multibyte", Fset_buffer_multibyte, Sset_buffer_multibyte, |
| 2216 | 1, 1, 0, | 2217 | 1, 1, 0, |
| 2217 | doc: /* Set the multibyte flag of the current buffer to FLAG. | 2218 | doc: /* Set the multibyte flag of the current buffer to FLAG. |
| 2218 | If FLAG is t, this makes the buffer a multibyte buffer. | 2219 | If FLAG is t, this makes the buffer a multibyte buffer. |
| @@ -2501,8 +2502,8 @@ current buffer is cleared. */) | |||
| 2501 | return flag; | 2502 | return flag; |
| 2502 | } | 2503 | } |
| 2503 | 2504 | ||
| 2504 | DEFUN ("kill-all-local-variables", Fkill_all_local_variables, Skill_all_local_variables, | 2505 | DEFUE ("kill-all-local-variables", Fkill_all_local_variables, |
| 2505 | 0, 0, 0, | 2506 | Skill_all_local_variables, 0, 0, 0, |
| 2506 | doc: /* Switch to Fundamental mode by killing current buffer's local variables. | 2507 | doc: /* Switch to Fundamental mode by killing current buffer's local variables. |
| 2507 | Most local variable bindings are eliminated so that the default values | 2508 | Most local variable bindings are eliminated so that the default values |
| 2508 | become effective once more. Also, the syntax table is set from | 2509 | become effective once more. Also, the syntax table is set from |
| @@ -3900,7 +3901,7 @@ DEFUN ("delete-overlay", Fdelete_overlay, Sdelete_overlay, 1, 1, 0, | |||
| 3900 | 3901 | ||
| 3901 | /* Overlay dissection functions. */ | 3902 | /* Overlay dissection functions. */ |
| 3902 | 3903 | ||
| 3903 | DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, | 3904 | DEFUE ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, |
| 3904 | doc: /* Return the position at which OVERLAY starts. */) | 3905 | doc: /* Return the position at which OVERLAY starts. */) |
| 3905 | (Lisp_Object overlay) | 3906 | (Lisp_Object overlay) |
| 3906 | { | 3907 | { |
| @@ -3909,7 +3910,7 @@ DEFUN ("overlay-start", Foverlay_start, Soverlay_start, 1, 1, 0, | |||
| 3909 | return (Fmarker_position (OVERLAY_START (overlay))); | 3910 | return (Fmarker_position (OVERLAY_START (overlay))); |
| 3910 | } | 3911 | } |
| 3911 | 3912 | ||
| 3912 | DEFUN ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0, | 3913 | DEFUE ("overlay-end", Foverlay_end, Soverlay_end, 1, 1, 0, |
| 3913 | doc: /* Return the position at which OVERLAY ends. */) | 3914 | doc: /* Return the position at which OVERLAY ends. */) |
| 3914 | (Lisp_Object overlay) | 3915 | (Lisp_Object overlay) |
| 3915 | { | 3916 | { |
| @@ -3999,7 +4000,7 @@ end of the buffer. */) | |||
| 3999 | return result; | 4000 | return result; |
| 4000 | } | 4001 | } |
| 4001 | 4002 | ||
| 4002 | DEFUN ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, | 4003 | DEFUE ("next-overlay-change", Fnext_overlay_change, Snext_overlay_change, |
| 4003 | 1, 1, 0, | 4004 | 1, 1, 0, |
| 4004 | doc: /* Return the next position after POS where an overlay starts or ends. | 4005 | doc: /* Return the next position after POS where an overlay starts or ends. |
| 4005 | If there are no overlay boundaries from POS to (point-max), | 4006 | If there are no overlay boundaries from POS to (point-max), |
| @@ -4040,7 +4041,7 @@ the value is (point-max). */) | |||
| 4040 | return make_number (endpos); | 4041 | return make_number (endpos); |
| 4041 | } | 4042 | } |
| 4042 | 4043 | ||
| 4043 | DEFUN ("previous-overlay-change", Fprevious_overlay_change, | 4044 | DEFUE ("previous-overlay-change", Fprevious_overlay_change, |
| 4044 | Sprevious_overlay_change, 1, 1, 0, | 4045 | Sprevious_overlay_change, 1, 1, 0, |
| 4045 | doc: /* Return the previous position before POS where an overlay starts or ends. | 4046 | doc: /* Return the previous position before POS where an overlay starts or ends. |
| 4046 | If there are no overlay boundaries from (point-min) to POS, | 4047 | If there are no overlay boundaries from (point-min) to POS, |
| @@ -4109,7 +4110,7 @@ for positions far away from POS). */) | |||
| 4109 | return Qnil; | 4110 | return Qnil; |
| 4110 | } | 4111 | } |
| 4111 | 4112 | ||
| 4112 | DEFUN ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0, | 4113 | DEFUE ("overlay-get", Foverlay_get, Soverlay_get, 2, 2, 0, |
| 4113 | doc: /* Get the property of overlay OVERLAY with property name PROP. */) | 4114 | doc: /* Get the property of overlay OVERLAY with property name PROP. */) |
| 4114 | (Lisp_Object overlay, Lisp_Object prop) | 4115 | (Lisp_Object overlay, Lisp_Object prop) |
| 4115 | { | 4116 | { |
diff --git a/src/buffer.h b/src/buffer.h index d80875a0811..2963aa382ca 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -917,7 +917,6 @@ extern void mmap_set_vars (int); | |||
| 917 | EXFUN (Fbuffer_live_p, 1); | 917 | EXFUN (Fbuffer_live_p, 1); |
| 918 | EXFUN (Fbuffer_name, 1); | 918 | EXFUN (Fbuffer_name, 1); |
| 919 | EXFUN (Fnext_overlay_change, 1); | 919 | EXFUN (Fnext_overlay_change, 1); |
| 920 | EXFUN (Fdelete_overlay, 1); | ||
| 921 | EXFUN (Fbuffer_local_value, 2); | 920 | EXFUN (Fbuffer_local_value, 2); |
| 922 | 921 | ||
| 923 | extern Lisp_Object Qbefore_change_functions; | 922 | extern Lisp_Object Qbefore_change_functions; |
diff --git a/src/callint.c b/src/callint.c index 047fbcdb467..1de1f607878 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -851,7 +851,7 @@ invoke it. If KEYS is omitted or nil, the return value of | |||
| 851 | } | 851 | } |
| 852 | } | 852 | } |
| 853 | 853 | ||
| 854 | DEFUN ("prefix-numeric-value", Fprefix_numeric_value, Sprefix_numeric_value, | 854 | DEFUE ("prefix-numeric-value", Fprefix_numeric_value, Sprefix_numeric_value, |
| 855 | 1, 1, 0, | 855 | 1, 1, 0, |
| 856 | doc: /* Return numeric meaning of raw prefix argument RAW. | 856 | doc: /* Return numeric meaning of raw prefix argument RAW. |
| 857 | A raw prefix argument is what you get from `(interactive "P")'. | 857 | A raw prefix argument is what you get from `(interactive "P")'. |
diff --git a/src/callproc.c b/src/callproc.c index eb2a2268fe1..ec6afcde3a3 100644 --- a/src/callproc.c +++ b/src/callproc.c | |||
| @@ -96,7 +96,7 @@ int synch_process_retcode; | |||
| 96 | /* Nonzero if this is termination due to exit. */ | 96 | /* Nonzero if this is termination due to exit. */ |
| 97 | static int call_process_exited; | 97 | static int call_process_exited; |
| 98 | 98 | ||
| 99 | EXFUN (Fgetenv_internal, 2); | 99 | INFUN (Fgetenv_internal, 2); |
| 100 | 100 | ||
| 101 | static Lisp_Object | 101 | static Lisp_Object |
| 102 | call_process_kill (Lisp_Object fdpid) | 102 | call_process_kill (Lisp_Object fdpid) |
| @@ -152,7 +152,7 @@ call_process_cleanup (Lisp_Object arg) | |||
| 152 | return Qnil; | 152 | return Qnil; |
| 153 | } | 153 | } |
| 154 | 154 | ||
| 155 | DEFUN ("call-process", Fcall_process, Scall_process, 1, MANY, 0, | 155 | DEFUE ("call-process", Fcall_process, Scall_process, 1, MANY, 0, |
| 156 | doc: /* Call PROGRAM synchronously in separate process. | 156 | doc: /* Call PROGRAM synchronously in separate process. |
| 157 | The remaining arguments are optional. | 157 | The remaining arguments are optional. |
| 158 | The program's input comes from file INFILE (nil means `/dev/null'). | 158 | The program's input comes from file INFILE (nil means `/dev/null'). |
diff --git a/src/casefiddle.c b/src/casefiddle.c index 9f286d73a5e..7a220c81865 100644 --- a/src/casefiddle.c +++ b/src/casefiddle.c | |||
| @@ -148,7 +148,7 @@ casify_object (enum case_action flag, Lisp_Object obj) | |||
| 148 | } | 148 | } |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | DEFUN ("upcase", Fupcase, Supcase, 1, 1, 0, | 151 | DEFUE ("upcase", Fupcase, Supcase, 1, 1, 0, |
| 152 | doc: /* Convert argument to upper case and return that. | 152 | doc: /* Convert argument to upper case and return that. |
| 153 | The argument may be a character or string. The result has the same type. | 153 | The argument may be a character or string. The result has the same type. |
| 154 | The argument object is not altered--the value is a copy. | 154 | The argument object is not altered--the value is a copy. |
| @@ -158,7 +158,7 @@ See also `capitalize', `downcase' and `upcase-initials'. */) | |||
| 158 | return casify_object (CASE_UP, obj); | 158 | return casify_object (CASE_UP, obj); |
| 159 | } | 159 | } |
| 160 | 160 | ||
| 161 | DEFUN ("downcase", Fdowncase, Sdowncase, 1, 1, 0, | 161 | DEFUE ("downcase", Fdowncase, Sdowncase, 1, 1, 0, |
| 162 | doc: /* Convert argument to lower case and return that. | 162 | doc: /* Convert argument to lower case and return that. |
| 163 | The argument may be a character or string. The result has the same type. | 163 | The argument may be a character or string. The result has the same type. |
| 164 | The argument object is not altered--the value is a copy. */) | 164 | The argument object is not altered--the value is a copy. */) |
| @@ -180,7 +180,7 @@ The argument object is not altered--the value is a copy. */) | |||
| 180 | 180 | ||
| 181 | /* Like Fcapitalize but change only the initials. */ | 181 | /* Like Fcapitalize but change only the initials. */ |
| 182 | 182 | ||
| 183 | DEFUN ("upcase-initials", Fupcase_initials, Supcase_initials, 1, 1, 0, | 183 | DEFUE ("upcase-initials", Fupcase_initials, Supcase_initials, 1, 1, 0, |
| 184 | doc: /* Convert the initial of each word in the argument to upper case. | 184 | doc: /* Convert the initial of each word in the argument to upper case. |
| 185 | Do not change the other letters of each word. | 185 | Do not change the other letters of each word. |
| 186 | The argument may be a character or string. The result has the same type. | 186 | The argument may be a character or string. The result has the same type. |
| @@ -301,7 +301,7 @@ casify_region (enum case_action flag, Lisp_Object b, Lisp_Object e) | |||
| 301 | } | 301 | } |
| 302 | } | 302 | } |
| 303 | 303 | ||
| 304 | DEFUN ("upcase-region", Fupcase_region, Supcase_region, 2, 2, "r", | 304 | DEFUE ("upcase-region", Fupcase_region, Supcase_region, 2, 2, "r", |
| 305 | doc: /* Convert the region to upper case. In programs, wants two arguments. | 305 | doc: /* Convert the region to upper case. In programs, wants two arguments. |
| 306 | These arguments specify the starting and ending character numbers of | 306 | These arguments specify the starting and ending character numbers of |
| 307 | the region to operate on. When used as a command, the text between | 307 | the region to operate on. When used as a command, the text between |
| @@ -338,7 +338,7 @@ character positions to operate on. */) | |||
| 338 | 338 | ||
| 339 | /* Like Fcapitalize_region but change only the initials. */ | 339 | /* Like Fcapitalize_region but change only the initials. */ |
| 340 | 340 | ||
| 341 | DEFUN ("upcase-initials-region", Fupcase_initials_region, | 341 | DEFUE ("upcase-initials-region", Fupcase_initials_region, |
| 342 | Supcase_initials_region, 2, 2, "r", | 342 | Supcase_initials_region, 2, 2, "r", |
| 343 | doc: /* Upcase the initial of each word in the region. | 343 | doc: /* Upcase the initial of each word in the region. |
| 344 | Subsequent letters of each word are not changed. | 344 | Subsequent letters of each word are not changed. |
diff --git a/src/casetab.c b/src/casetab.c index 9a1accf6940..7acefbceba9 100644 --- a/src/casetab.c +++ b/src/casetab.c | |||
| @@ -79,7 +79,7 @@ This is the one used for new buffers. */) | |||
| 79 | 79 | ||
| 80 | static Lisp_Object set_case_table (Lisp_Object table, int standard); | 80 | static Lisp_Object set_case_table (Lisp_Object table, int standard); |
| 81 | 81 | ||
| 82 | DEFUN ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, | 82 | DEFUE ("set-case-table", Fset_case_table, Sset_case_table, 1, 1, 0, |
| 83 | doc: /* Select a new case table for the current buffer. | 83 | doc: /* Select a new case table for the current buffer. |
| 84 | A case table is a char-table which maps characters | 84 | A case table is a char-table which maps characters |
| 85 | to their lower-case equivalents. It also has three \"extra\" slots | 85 | to their lower-case equivalents. It also has three \"extra\" slots |
| @@ -101,7 +101,8 @@ EQUIVALENCES is a map that cyclicly permutes each equivalence class | |||
| 101 | return set_case_table (table, 0); | 101 | return set_case_table (table, 0); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | DEFUN ("set-standard-case-table", Fset_standard_case_table, Sset_standard_case_table, 1, 1, 0, | 104 | DEFUE ("set-standard-case-table", Fset_standard_case_table, |
| 105 | Sset_standard_case_table, 1, 1, 0, | ||
| 105 | doc: /* Select a new standard case table for new buffers. | 106 | doc: /* Select a new standard case table for new buffers. |
| 106 | See `set-case-table' for more info on case tables. */) | 107 | See `set-case-table' for more info on case tables. */) |
| 107 | (Lisp_Object table) | 108 | (Lisp_Object table) |
| @@ -1953,7 +1953,7 @@ check_ccl_update (struct ccl_program *ccl) | |||
| 1953 | } | 1953 | } |
| 1954 | 1954 | ||
| 1955 | 1955 | ||
| 1956 | DEFUN ("ccl-program-p", Fccl_program_p, Sccl_program_p, 1, 1, 0, | 1956 | DEFUE ("ccl-program-p", Fccl_program_p, Sccl_program_p, 1, 1, 0, |
| 1957 | doc: /* Return t if OBJECT is a CCL program name or a compiled CCL program code. | 1957 | doc: /* Return t if OBJECT is a CCL program name or a compiled CCL program code. |
| 1958 | See the documentation of `define-ccl-program' for the detail of CCL program. */) | 1958 | See the documentation of `define-ccl-program' for the detail of CCL program. */) |
| 1959 | (Lisp_Object object) | 1959 | (Lisp_Object object) |
diff --git a/src/character.c b/src/character.c index bac9f6af81e..636601c7452 100644 --- a/src/character.c +++ b/src/character.c | |||
| @@ -307,7 +307,7 @@ If the multibyte character does not represent a byte, return -1. */) | |||
| 307 | } | 307 | } |
| 308 | } | 308 | } |
| 309 | 309 | ||
| 310 | DEFUN ("char-width", Fchar_width, Schar_width, 1, 1, 0, | 310 | DEFUE ("char-width", Fchar_width, Schar_width, 1, 1, 0, |
| 311 | doc: /* Return width of CHAR when displayed in the current buffer. | 311 | doc: /* Return width of CHAR when displayed in the current buffer. |
| 312 | The width is measured by how many columns it occupies on the screen. | 312 | The width is measured by how many columns it occupies on the screen. |
| 313 | Tab is taken to occupy `tab-width' columns. | 313 | Tab is taken to occupy `tab-width' columns. |
| @@ -886,7 +886,7 @@ string_escape_byte8 (Lisp_Object string) | |||
| 886 | } | 886 | } |
| 887 | 887 | ||
| 888 | 888 | ||
| 889 | DEFUN ("string", Fstring, Sstring, 0, MANY, 0, | 889 | DEFUE ("string", Fstring, Sstring, 0, MANY, 0, |
| 890 | doc: /* | 890 | doc: /* |
| 891 | Concatenate all the argument characters and make the result a string. | 891 | Concatenate all the argument characters and make the result a string. |
| 892 | usage: (string &rest CHARACTERS) */) | 892 | usage: (string &rest CHARACTERS) */) |
diff --git a/src/chartab.c b/src/chartab.c index 7a0a3aabbb6..50c3fd7cb73 100644 --- a/src/chartab.c +++ b/src/chartab.c | |||
| @@ -54,7 +54,7 @@ const int chartab_bits[4] = | |||
| 54 | (((c) - (min_char)) >> chartab_bits[(depth)]) | 54 | (((c) - (min_char)) >> chartab_bits[(depth)]) |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | DEFUN ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, | 57 | DEFUE ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, |
| 58 | doc: /* Return a newly created char-table, with purpose PURPOSE. | 58 | doc: /* Return a newly created char-table, with purpose PURPOSE. |
| 59 | Each element is initialized to INIT, which defaults to nil. | 59 | Each element is initialized to INIT, which defaults to nil. |
| 60 | 60 | ||
| @@ -459,7 +459,7 @@ then the actual applicable value is inherited from the parent char-table | |||
| 459 | return XCHAR_TABLE (char_table)->parent; | 459 | return XCHAR_TABLE (char_table)->parent; |
| 460 | } | 460 | } |
| 461 | 461 | ||
| 462 | DEFUN ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent, | 462 | DEFUE ("set-char-table-parent", Fset_char_table_parent, Sset_char_table_parent, |
| 463 | 2, 2, 0, | 463 | 2, 2, 0, |
| 464 | doc: /* Set the parent char-table of CHAR-TABLE to PARENT. | 464 | doc: /* Set the parent char-table of CHAR-TABLE to PARENT. |
| 465 | Return PARENT. PARENT must be either nil or another char-table. */) | 465 | Return PARENT. PARENT must be either nil or another char-table. */) |
| @@ -483,7 +483,7 @@ Return PARENT. PARENT must be either nil or another char-table. */) | |||
| 483 | return parent; | 483 | return parent; |
| 484 | } | 484 | } |
| 485 | 485 | ||
| 486 | DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, | 486 | DEFUE ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, |
| 487 | 2, 2, 0, | 487 | 2, 2, 0, |
| 488 | doc: /* Return the value of CHAR-TABLE's extra-slot number N. */) | 488 | doc: /* Return the value of CHAR-TABLE's extra-slot number N. */) |
| 489 | (Lisp_Object char_table, Lisp_Object n) | 489 | (Lisp_Object char_table, Lisp_Object n) |
| @@ -497,7 +497,7 @@ DEFUN ("char-table-extra-slot", Fchar_table_extra_slot, Schar_table_extra_slot, | |||
| 497 | return XCHAR_TABLE (char_table)->extras[XINT (n)]; | 497 | return XCHAR_TABLE (char_table)->extras[XINT (n)]; |
| 498 | } | 498 | } |
| 499 | 499 | ||
| 500 | DEFUN ("set-char-table-extra-slot", Fset_char_table_extra_slot, | 500 | DEFUE ("set-char-table-extra-slot", Fset_char_table_extra_slot, |
| 501 | Sset_char_table_extra_slot, | 501 | Sset_char_table_extra_slot, |
| 502 | 3, 3, 0, | 502 | 3, 3, 0, |
| 503 | doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */) | 503 | doc: /* Set CHAR-TABLE's extra-slot number N to VALUE. */) |
| @@ -541,7 +541,7 @@ a cons of character codes (for characters in the range), or a character code. * | |||
| 541 | return val; | 541 | return val; |
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, | 544 | DEFUE ("set-char-table-range", Fset_char_table_range, Sset_char_table_range, |
| 545 | 3, 3, 0, | 545 | 3, 3, 0, |
| 546 | doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE. | 546 | doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE. |
| 547 | RANGE should be t (for all characters), nil (for the default value), | 547 | RANGE should be t (for all characters), nil (for the default value), |
| @@ -626,7 +626,7 @@ optimize_sub_char_table (Lisp_Object table, Lisp_Object test) | |||
| 626 | return (optimizable ? elt : table); | 626 | return (optimizable ? elt : table); |
| 627 | } | 627 | } |
| 628 | 628 | ||
| 629 | DEFUN ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, | 629 | DEFUE ("optimize-char-table", Foptimize_char_table, Soptimize_char_table, |
| 630 | 1, 2, 0, | 630 | 1, 2, 0, |
| 631 | doc: /* Optimize CHAR-TABLE. | 631 | doc: /* Optimize CHAR-TABLE. |
| 632 | TEST is the comparison function used to decide whether two entries are | 632 | TEST is the comparison function used to decide whether two entries are |
diff --git a/src/cmds.c b/src/cmds.c index 1cf7ff24fec..60318225831 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -47,7 +47,7 @@ DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | |||
| 47 | return make_number (PT + XINT (n)); | 47 | return make_number (PT + XINT (n)); |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | DEFUN ("forward-char", Fforward_char, Sforward_char, 0, 1, "^p", | 50 | DEFUE ("forward-char", Fforward_char, Sforward_char, 0, 1, "^p", |
| 51 | doc: /* Move point N characters forward (backward if N is negative). | 51 | doc: /* Move point N characters forward (backward if N is negative). |
| 52 | On reaching end or beginning of buffer, stop and signal error. | 52 | On reaching end or beginning of buffer, stop and signal error. |
| 53 | 53 | ||
| @@ -104,7 +104,7 @@ right or to the left on the screen. This is in contrast with | |||
| 104 | return Fforward_char (n); | 104 | return Fforward_char (n); |
| 105 | } | 105 | } |
| 106 | 106 | ||
| 107 | DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", | 107 | DEFUE ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", |
| 108 | doc: /* Move N lines forward (backward if N is negative). | 108 | doc: /* Move N lines forward (backward if N is negative). |
| 109 | Precisely, if point is on line I, move to the start of line I + N | 109 | Precisely, if point is on line I, move to the start of line I + N |
| 110 | \("start of line" in the logical order). | 110 | \("start of line" in the logical order). |
| @@ -174,7 +174,7 @@ instead. For instance, `(forward-line 0)' does the same thing as | |||
| 174 | return Qnil; | 174 | return Qnil; |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | DEFUN ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "^p", | 177 | DEFUE ("end-of-line", Fend_of_line, Send_of_line, 0, 1, "^p", |
| 178 | doc: /* Move point to end of current line (in the logical order). | 178 | doc: /* Move point to end of current line (in the logical order). |
| 179 | With argument N not nil or 1, move forward N - 1 lines first. | 179 | With argument N not nil or 1, move forward N - 1 lines first. |
| 180 | If point reaches the beginning or end of buffer, it stops there. | 180 | If point reaches the beginning or end of buffer, it stops there. |
diff --git a/src/coding.c b/src/coding.c index 711ada59c85..13fcb7fb8a5 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7991,7 +7991,7 @@ preferred_coding_system (void) | |||
| 7991 | #ifdef emacs | 7991 | #ifdef emacs |
| 7992 | /*** 8. Emacs Lisp library functions ***/ | 7992 | /*** 8. Emacs Lisp library functions ***/ |
| 7993 | 7993 | ||
| 7994 | DEFUN ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0, | 7994 | DEFUE ("coding-system-p", Fcoding_system_p, Scoding_system_p, 1, 1, 0, |
| 7995 | doc: /* Return t if OBJECT is nil or a coding-system. | 7995 | doc: /* Return t if OBJECT is nil or a coding-system. |
| 7996 | See the documentation of `define-coding-system' for information | 7996 | See the documentation of `define-coding-system' for information |
| 7997 | about coding-system objects. */) | 7997 | about coding-system objects. */) |
| @@ -8006,7 +8006,7 @@ about coding-system objects. */) | |||
| 8006 | return Qt; | 8006 | return Qt; |
| 8007 | } | 8007 | } |
| 8008 | 8008 | ||
| 8009 | DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, | 8009 | DEFUE ("read-non-nil-coding-system", Fread_non_nil_coding_system, |
| 8010 | Sread_non_nil_coding_system, 1, 1, 0, | 8010 | Sread_non_nil_coding_system, 1, 1, 0, |
| 8011 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */) | 8011 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. */) |
| 8012 | (Lisp_Object prompt) | 8012 | (Lisp_Object prompt) |
| @@ -8021,7 +8021,7 @@ DEFUN ("read-non-nil-coding-system", Fread_non_nil_coding_system, | |||
| 8021 | return (Fintern (val, Qnil)); | 8021 | return (Fintern (val, Qnil)); |
| 8022 | } | 8022 | } |
| 8023 | 8023 | ||
| 8024 | DEFUN ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0, | 8024 | DEFUE ("read-coding-system", Fread_coding_system, Sread_coding_system, 1, 2, 0, |
| 8025 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. | 8025 | doc: /* Read a coding system from the minibuffer, prompting with string PROMPT. |
| 8026 | If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. | 8026 | If the user enters null input, return second argument DEFAULT-CODING-SYSTEM. |
| 8027 | Ignores case when completing coding systems (all Emacs coding systems | 8027 | Ignores case when completing coding systems (all Emacs coding systems |
| @@ -8041,7 +8041,7 @@ are lower-case). */) | |||
| 8041 | return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil)); | 8041 | return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil)); |
| 8042 | } | 8042 | } |
| 8043 | 8043 | ||
| 8044 | DEFUN ("check-coding-system", Fcheck_coding_system, Scheck_coding_system, | 8044 | DEFUE ("check-coding-system", Fcheck_coding_system, Scheck_coding_system, |
| 8045 | 1, 1, 0, | 8045 | 1, 1, 0, |
| 8046 | doc: /* Check validity of CODING-SYSTEM. | 8046 | doc: /* Check validity of CODING-SYSTEM. |
| 8047 | If valid, return CODING-SYSTEM, else signal a `coding-system-error' error. | 8047 | If valid, return CODING-SYSTEM, else signal a `coding-system-error' error. |
| @@ -8976,7 +8976,7 @@ code_convert_string_norecord (Lisp_Object string, Lisp_Object coding_system, | |||
| 8976 | } | 8976 | } |
| 8977 | 8977 | ||
| 8978 | 8978 | ||
| 8979 | DEFUN ("decode-coding-string", Fdecode_coding_string, Sdecode_coding_string, | 8979 | DEFUE ("decode-coding-string", Fdecode_coding_string, Sdecode_coding_string, |
| 8980 | 2, 4, 0, | 8980 | 2, 4, 0, |
| 8981 | doc: /* Decode STRING which is encoded in CODING-SYSTEM, and return the result. | 8981 | doc: /* Decode STRING which is encoded in CODING-SYSTEM, and return the result. |
| 8982 | 8982 | ||
| @@ -9250,7 +9250,7 @@ DEFUN ("keyboard-coding-system", | |||
| 9250 | } | 9250 | } |
| 9251 | 9251 | ||
| 9252 | 9252 | ||
| 9253 | DEFUN ("find-operation-coding-system", Ffind_operation_coding_system, | 9253 | DEFUE ("find-operation-coding-system", Ffind_operation_coding_system, |
| 9254 | Sfind_operation_coding_system, 1, MANY, 0, | 9254 | Sfind_operation_coding_system, 1, MANY, 0, |
| 9255 | doc: /* Choose a coding system for an operation based on the target name. | 9255 | doc: /* Choose a coding system for an operation based on the target name. |
| 9256 | The value names a pair of coding systems: (DECODING-SYSTEM . ENCODING-SYSTEM). | 9256 | The value names a pair of coding systems: (DECODING-SYSTEM . ENCODING-SYSTEM). |
| @@ -10093,7 +10093,7 @@ DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias, | |||
| 10093 | return Qnil; | 10093 | return Qnil; |
| 10094 | } | 10094 | } |
| 10095 | 10095 | ||
| 10096 | DEFUN ("coding-system-base", Fcoding_system_base, Scoding_system_base, | 10096 | DEFUE ("coding-system-base", Fcoding_system_base, Scoding_system_base, |
| 10097 | 1, 1, 0, | 10097 | 1, 1, 0, |
| 10098 | doc: /* Return the base of CODING-SYSTEM. | 10098 | doc: /* Return the base of CODING-SYSTEM. |
| 10099 | Any alias or subsidiary coding system is not a base coding system. */) | 10099 | Any alias or subsidiary coding system is not a base coding system. */) |
| @@ -10136,7 +10136,7 @@ DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases, | |||
| 10136 | return AREF (spec, 1); | 10136 | return AREF (spec, 1); |
| 10137 | } | 10137 | } |
| 10138 | 10138 | ||
| 10139 | DEFUN ("coding-system-eol-type", Fcoding_system_eol_type, | 10139 | DEFUE ("coding-system-eol-type", Fcoding_system_eol_type, |
| 10140 | Scoding_system_eol_type, 1, 1, 0, | 10140 | Scoding_system_eol_type, 1, 1, 0, |
| 10141 | doc: /* Return eol-type of CODING-SYSTEM. | 10141 | doc: /* Return eol-type of CODING-SYSTEM. |
| 10142 | An eol-type is an integer 0, 1, 2, or a vector of coding systems. | 10142 | An eol-type is an integer 0, 1, 2, or a vector of coding systems. |
diff --git a/src/composite.c b/src/composite.c index c18f9e8b56e..367606f5142 100644 --- a/src/composite.c +++ b/src/composite.c | |||
| @@ -158,7 +158,7 @@ Lisp_Object Qauto_composition_function; | |||
| 158 | auto-compositions. */ | 158 | auto-compositions. */ |
| 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 | 159 | #define MAX_AUTO_COMPOSITION_LOOKBACK 3 |
| 160 | 160 | ||
| 161 | EXFUN (Fremove_list_of_text_properties, 4); | 161 | INFUN (Fcomposition_get_gstring, 4); |
| 162 | 162 | ||
| 163 | /* Temporary variable used in macros COMPOSITION_XXX. */ | 163 | /* Temporary variable used in macros COMPOSITION_XXX. */ |
| 164 | Lisp_Object composition_temp; | 164 | Lisp_Object composition_temp; |
diff --git a/src/composite.h b/src/composite.h index cfb5db0dc6a..1f708e93b8e 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -328,6 +328,4 @@ extern int composition_update_it (struct composition_it *, | |||
| 328 | 328 | ||
| 329 | extern EMACS_INT composition_adjust_point (EMACS_INT, EMACS_INT); | 329 | extern EMACS_INT composition_adjust_point (EMACS_INT, EMACS_INT); |
| 330 | 330 | ||
| 331 | EXFUN (Fcomposition_get_gstring, 4); | ||
| 332 | |||
| 333 | #endif /* not EMACS_COMPOSITE_H */ | 331 | #endif /* not EMACS_COMPOSITE_H */ |
diff --git a/src/data.c b/src/data.c index 4b9d2ec0387..25e260c8686 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -462,7 +462,7 @@ DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1, 0, | |||
| 462 | 462 | ||
| 463 | /* Extract and set components of lists */ | 463 | /* Extract and set components of lists */ |
| 464 | 464 | ||
| 465 | DEFUN ("car", Fcar, Scar, 1, 1, 0, | 465 | DEFUE ("car", Fcar, Scar, 1, 1, 0, |
| 466 | doc: /* Return the car of LIST. If arg is nil, return nil. | 466 | doc: /* Return the car of LIST. If arg is nil, return nil. |
| 467 | Error if arg is not nil and not a cons cell. See also `car-safe'. | 467 | Error if arg is not nil and not a cons cell. See also `car-safe'. |
| 468 | 468 | ||
| @@ -473,14 +473,14 @@ Lisp concepts such as car, cdr, cons cell and list. */) | |||
| 473 | return CAR (list); | 473 | return CAR (list); |
| 474 | } | 474 | } |
| 475 | 475 | ||
| 476 | DEFUN ("car-safe", Fcar_safe, Scar_safe, 1, 1, 0, | 476 | DEFUE ("car-safe", Fcar_safe, Scar_safe, 1, 1, 0, |
| 477 | doc: /* Return the car of OBJECT if it is a cons cell, or else nil. */) | 477 | doc: /* Return the car of OBJECT if it is a cons cell, or else nil. */) |
| 478 | (Lisp_Object object) | 478 | (Lisp_Object object) |
| 479 | { | 479 | { |
| 480 | return CAR_SAFE (object); | 480 | return CAR_SAFE (object); |
| 481 | } | 481 | } |
| 482 | 482 | ||
| 483 | DEFUN ("cdr", Fcdr, Scdr, 1, 1, 0, | 483 | DEFUE ("cdr", Fcdr, Scdr, 1, 1, 0, |
| 484 | doc: /* Return the cdr of LIST. If arg is nil, return nil. | 484 | doc: /* Return the cdr of LIST. If arg is nil, return nil. |
| 485 | Error if arg is not nil and not a cons cell. See also `cdr-safe'. | 485 | Error if arg is not nil and not a cons cell. See also `cdr-safe'. |
| 486 | 486 | ||
| @@ -491,14 +491,14 @@ Lisp concepts such as cdr, car, cons cell and list. */) | |||
| 491 | return CDR (list); | 491 | return CDR (list); |
| 492 | } | 492 | } |
| 493 | 493 | ||
| 494 | DEFUN ("cdr-safe", Fcdr_safe, Scdr_safe, 1, 1, 0, | 494 | DEFUE ("cdr-safe", Fcdr_safe, Scdr_safe, 1, 1, 0, |
| 495 | doc: /* Return the cdr of OBJECT if it is a cons cell, or else nil. */) | 495 | doc: /* Return the cdr of OBJECT if it is a cons cell, or else nil. */) |
| 496 | (Lisp_Object object) | 496 | (Lisp_Object object) |
| 497 | { | 497 | { |
| 498 | return CDR_SAFE (object); | 498 | return CDR_SAFE (object); |
| 499 | } | 499 | } |
| 500 | 500 | ||
| 501 | DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0, | 501 | DEFUE ("setcar", Fsetcar, Ssetcar, 2, 2, 0, |
| 502 | doc: /* Set the car of CELL to be NEWCAR. Returns NEWCAR. */) | 502 | doc: /* Set the car of CELL to be NEWCAR. Returns NEWCAR. */) |
| 503 | (register Lisp_Object cell, Lisp_Object newcar) | 503 | (register Lisp_Object cell, Lisp_Object newcar) |
| 504 | { | 504 | { |
| @@ -508,7 +508,7 @@ DEFUN ("setcar", Fsetcar, Ssetcar, 2, 2, 0, | |||
| 508 | return newcar; | 508 | return newcar; |
| 509 | } | 509 | } |
| 510 | 510 | ||
| 511 | DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, | 511 | DEFUE ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, |
| 512 | doc: /* Set the cdr of CELL to be NEWCDR. Returns NEWCDR. */) | 512 | doc: /* Set the cdr of CELL to be NEWCDR. Returns NEWCDR. */) |
| 513 | (register Lisp_Object cell, Lisp_Object newcdr) | 513 | (register Lisp_Object cell, Lisp_Object newcdr) |
| 514 | { | 514 | { |
| @@ -520,7 +520,7 @@ DEFUN ("setcdr", Fsetcdr, Ssetcdr, 2, 2, 0, | |||
| 520 | 520 | ||
| 521 | /* Extract and set components of symbols */ | 521 | /* Extract and set components of symbols */ |
| 522 | 522 | ||
| 523 | DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, | 523 | DEFUE ("boundp", Fboundp, Sboundp, 1, 1, 0, |
| 524 | doc: /* Return t if SYMBOL's value is not void. */) | 524 | doc: /* Return t if SYMBOL's value is not void. */) |
| 525 | (register Lisp_Object symbol) | 525 | (register Lisp_Object symbol) |
| 526 | { | 526 | { |
| @@ -558,7 +558,7 @@ DEFUN ("boundp", Fboundp, Sboundp, 1, 1, 0, | |||
| 558 | return (EQ (valcontents, Qunbound) ? Qnil : Qt); | 558 | return (EQ (valcontents, Qunbound) ? Qnil : Qt); |
| 559 | } | 559 | } |
| 560 | 560 | ||
| 561 | DEFUN ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, | 561 | DEFUE ("fboundp", Ffboundp, Sfboundp, 1, 1, 0, |
| 562 | doc: /* Return t if SYMBOL's function definition is not void. */) | 562 | doc: /* Return t if SYMBOL's function definition is not void. */) |
| 563 | (register Lisp_Object symbol) | 563 | (register Lisp_Object symbol) |
| 564 | { | 564 | { |
| @@ -590,7 +590,7 @@ Return SYMBOL. */) | |||
| 590 | return symbol; | 590 | return symbol; |
| 591 | } | 591 | } |
| 592 | 592 | ||
| 593 | DEFUN ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, | 593 | DEFUE ("symbol-function", Fsymbol_function, Ssymbol_function, 1, 1, 0, |
| 594 | doc: /* Return SYMBOL's function definition. Error if that is void. */) | 594 | doc: /* Return SYMBOL's function definition. Error if that is void. */) |
| 595 | (register Lisp_Object symbol) | 595 | (register Lisp_Object symbol) |
| 596 | { | 596 | { |
| @@ -608,7 +608,7 @@ DEFUN ("symbol-plist", Fsymbol_plist, Ssymbol_plist, 1, 1, 0, | |||
| 608 | return XSYMBOL (symbol)->plist; | 608 | return XSYMBOL (symbol)->plist; |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, | 611 | DEFUE ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, |
| 612 | doc: /* Return SYMBOL's name, a string. */) | 612 | doc: /* Return SYMBOL's name, a string. */) |
| 613 | (register Lisp_Object symbol) | 613 | (register Lisp_Object symbol) |
| 614 | { | 614 | { |
| @@ -619,7 +619,7 @@ DEFUN ("symbol-name", Fsymbol_name, Ssymbol_name, 1, 1, 0, | |||
| 619 | return name; | 619 | return name; |
| 620 | } | 620 | } |
| 621 | 621 | ||
| 622 | DEFUN ("fset", Ffset, Sfset, 2, 2, 0, | 622 | DEFUE ("fset", Ffset, Sfset, 2, 2, 0, |
| 623 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) | 623 | doc: /* Set SYMBOL's function definition to DEFINITION, and return DEFINITION. */) |
| 624 | (register Lisp_Object symbol, Lisp_Object definition) | 624 | (register Lisp_Object symbol, Lisp_Object definition) |
| 625 | { | 625 | { |
| @@ -706,7 +706,7 @@ SUBR must be a built-in function. */) | |||
| 706 | return make_string (name, strlen (name)); | 706 | return make_string (name, strlen (name)); |
| 707 | } | 707 | } |
| 708 | 708 | ||
| 709 | DEFUN ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, | 709 | DEFUE ("interactive-form", Finteractive_form, Sinteractive_form, 1, 1, 0, |
| 710 | doc: /* Return the interactive form of CMD or nil if none. | 710 | doc: /* Return the interactive form of CMD or nil if none. |
| 711 | If CMD is not a command, the return value is nil. | 711 | If CMD is not a command, the return value is nil. |
| 712 | Value, if non-nil, is a list \(interactive SPEC). */) | 712 | Value, if non-nil, is a list \(interactive SPEC). */) |
| @@ -1049,7 +1049,7 @@ find_symbol_value (Lisp_Object symbol) | |||
| 1049 | } | 1049 | } |
| 1050 | } | 1050 | } |
| 1051 | 1051 | ||
| 1052 | DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, | 1052 | DEFUE ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, |
| 1053 | doc: /* Return SYMBOL's value. Error if that is void. */) | 1053 | doc: /* Return SYMBOL's value. Error if that is void. */) |
| 1054 | (Lisp_Object symbol) | 1054 | (Lisp_Object symbol) |
| 1055 | { | 1055 | { |
| @@ -1062,7 +1062,7 @@ DEFUN ("symbol-value", Fsymbol_value, Ssymbol_value, 1, 1, 0, | |||
| 1062 | xsignal1 (Qvoid_variable, symbol); | 1062 | xsignal1 (Qvoid_variable, symbol); |
| 1063 | } | 1063 | } |
| 1064 | 1064 | ||
| 1065 | DEFUN ("set", Fset, Sset, 2, 2, 0, | 1065 | DEFUE ("set", Fset, Sset, 2, 2, 0, |
| 1066 | doc: /* Set SYMBOL's value to NEWVAL, and return NEWVAL. */) | 1066 | doc: /* Set SYMBOL's value to NEWVAL, and return NEWVAL. */) |
| 1067 | (register Lisp_Object symbol, Lisp_Object newval) | 1067 | (register Lisp_Object symbol, Lisp_Object newval) |
| 1068 | { | 1068 | { |
| @@ -1308,7 +1308,7 @@ default_value (Lisp_Object symbol) | |||
| 1308 | } | 1308 | } |
| 1309 | } | 1309 | } |
| 1310 | 1310 | ||
| 1311 | DEFUN ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0, | 1311 | DEFUE ("default-boundp", Fdefault_boundp, Sdefault_boundp, 1, 1, 0, |
| 1312 | doc: /* Return t if SYMBOL has a non-void default value. | 1312 | doc: /* Return t if SYMBOL has a non-void default value. |
| 1313 | This is the value that is seen in buffers that do not have their own values | 1313 | This is the value that is seen in buffers that do not have their own values |
| 1314 | for this variable. */) | 1314 | for this variable. */) |
| @@ -1320,7 +1320,7 @@ for this variable. */) | |||
| 1320 | return (EQ (value, Qunbound) ? Qnil : Qt); | 1320 | return (EQ (value, Qunbound) ? Qnil : Qt); |
| 1321 | } | 1321 | } |
| 1322 | 1322 | ||
| 1323 | DEFUN ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0, | 1323 | DEFUE ("default-value", Fdefault_value, Sdefault_value, 1, 1, 0, |
| 1324 | doc: /* Return SYMBOL's default value. | 1324 | doc: /* Return SYMBOL's default value. |
| 1325 | This is the value that is seen in buffers that do not have their own values | 1325 | This is the value that is seen in buffers that do not have their own values |
| 1326 | for this variable. The default value is meaningful for variables with | 1326 | for this variable. The default value is meaningful for variables with |
| @@ -1336,7 +1336,7 @@ local bindings in certain buffers. */) | |||
| 1336 | xsignal1 (Qvoid_variable, symbol); | 1336 | xsignal1 (Qvoid_variable, symbol); |
| 1337 | } | 1337 | } |
| 1338 | 1338 | ||
| 1339 | DEFUN ("set-default", Fset_default, Sset_default, 2, 2, 0, | 1339 | DEFUE ("set-default", Fset_default, Sset_default, 2, 2, 0, |
| 1340 | doc: /* Set SYMBOL's default value to VALUE. SYMBOL and VALUE are evaluated. | 1340 | doc: /* Set SYMBOL's default value to VALUE. SYMBOL and VALUE are evaluated. |
| 1341 | The default value is seen in buffers that do not have their own values | 1341 | The default value is seen in buffers that do not have their own values |
| 1342 | for this variable. */) | 1342 | for this variable. */) |
| @@ -1479,8 +1479,8 @@ make_blv (struct Lisp_Symbol *sym, int forwarded, union Lisp_Val_Fwd valcontents | |||
| 1479 | return blv; | 1479 | return blv; |
| 1480 | } | 1480 | } |
| 1481 | 1481 | ||
| 1482 | DEFUN ("make-variable-buffer-local", Fmake_variable_buffer_local, Smake_variable_buffer_local, | 1482 | DEFUE ("make-variable-buffer-local", Fmake_variable_buffer_local, |
| 1483 | 1, 1, "vMake Variable Buffer Local: ", | 1483 | Smake_variable_buffer_local, 1, 1, "vMake Variable Buffer Local: ", |
| 1484 | doc: /* Make VARIABLE become buffer-local whenever it is set. | 1484 | doc: /* Make VARIABLE become buffer-local whenever it is set. |
| 1485 | At any time, the value for the current buffer is in effect, | 1485 | At any time, the value for the current buffer is in effect, |
| 1486 | unless the variable has never been set in this buffer, | 1486 | unless the variable has never been set in this buffer, |
| @@ -1550,7 +1550,7 @@ The function `default-value' gets the default value and `set-default' sets it. | |||
| 1550 | return variable; | 1550 | return variable; |
| 1551 | } | 1551 | } |
| 1552 | 1552 | ||
| 1553 | DEFUN ("make-local-variable", Fmake_local_variable, Smake_local_variable, | 1553 | DEFUE ("make-local-variable", Fmake_local_variable, Smake_local_variable, |
| 1554 | 1, 1, "vMake Local Variable: ", | 1554 | 1, 1, "vMake Local Variable: ", |
| 1555 | doc: /* Make VARIABLE have a separate value in the current buffer. | 1555 | doc: /* Make VARIABLE have a separate value in the current buffer. |
| 1556 | Other buffers will continue to share a common default value. | 1556 | Other buffers will continue to share a common default value. |
| @@ -1810,7 +1810,7 @@ frame-local bindings). */) | |||
| 1810 | return variable; | 1810 | return variable; |
| 1811 | } | 1811 | } |
| 1812 | 1812 | ||
| 1813 | DEFUN ("local-variable-p", Flocal_variable_p, Slocal_variable_p, | 1813 | DEFUE ("local-variable-p", Flocal_variable_p, Slocal_variable_p, |
| 1814 | 1, 2, 0, | 1814 | 1, 2, 0, |
| 1815 | doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER. | 1815 | doc: /* Non-nil if VARIABLE has a local binding in buffer BUFFER. |
| 1816 | BUFFER defaults to the current buffer. */) | 1816 | BUFFER defaults to the current buffer. */) |
| @@ -1955,7 +1955,8 @@ If the current binding is global (the default), the value is nil. */) | |||
| 1955 | #if 0 | 1955 | #if 0 |
| 1956 | extern struct terminal *get_terminal (Lisp_Object display, int); | 1956 | extern struct terminal *get_terminal (Lisp_Object display, int); |
| 1957 | 1957 | ||
| 1958 | DEFUN ("terminal-local-value", Fterminal_local_value, Sterminal_local_value, 2, 2, 0, | 1958 | DEFUE ("terminal-local-value", Fterminal_local_value, |
| 1959 | Sterminal_local_value, 2, 2, 0, | ||
| 1959 | doc: /* Return the terminal-local value of SYMBOL on TERMINAL. | 1960 | doc: /* Return the terminal-local value of SYMBOL on TERMINAL. |
| 1960 | If SYMBOL is not a terminal-local variable, then return its normal | 1961 | If SYMBOL is not a terminal-local variable, then return its normal |
| 1961 | value, like `symbol-value'. | 1962 | value, like `symbol-value'. |
| @@ -1972,7 +1973,8 @@ selected frame's terminal device). */) | |||
| 1972 | return result; | 1973 | return result; |
| 1973 | } | 1974 | } |
| 1974 | 1975 | ||
| 1975 | DEFUN ("set-terminal-local-value", Fset_terminal_local_value, Sset_terminal_local_value, 3, 3, 0, | 1976 | DEFUE ("set-terminal-local-value", Fset_terminal_local_value, |
| 1977 | Sset_terminal_local_value, 3, 3, 0, | ||
| 1976 | doc: /* Set the terminal-local binding of SYMBOL on TERMINAL to VALUE. | 1978 | doc: /* Set the terminal-local binding of SYMBOL on TERMINAL to VALUE. |
| 1977 | If VARIABLE is not a terminal-local variable, then set its normal | 1979 | If VARIABLE is not a terminal-local variable, then set its normal |
| 1978 | binding, like `set'. | 1980 | binding, like `set'. |
| @@ -2024,7 +2026,7 @@ indirect_function (register Lisp_Object object) | |||
| 2024 | return hare; | 2026 | return hare; |
| 2025 | } | 2027 | } |
| 2026 | 2028 | ||
| 2027 | DEFUN ("indirect-function", Findirect_function, Sindirect_function, 1, 2, 0, | 2029 | DEFUE ("indirect-function", Findirect_function, Sindirect_function, 1, 2, 0, |
| 2028 | doc: /* Return the function at the end of OBJECT's function chain. | 2030 | doc: /* Return the function at the end of OBJECT's function chain. |
| 2029 | If OBJECT is not a symbol, just return it. Otherwise, follow all | 2031 | If OBJECT is not a symbol, just return it. Otherwise, follow all |
| 2030 | function indirections to find the final function binding and return it. | 2032 | function indirections to find the final function binding and return it. |
| @@ -2052,7 +2054,7 @@ function chain of symbols. */) | |||
| 2052 | 2054 | ||
| 2053 | /* Extract and set vector and string elements */ | 2055 | /* Extract and set vector and string elements */ |
| 2054 | 2056 | ||
| 2055 | DEFUN ("aref", Faref, Saref, 2, 2, 0, | 2057 | DEFUE ("aref", Faref, Saref, 2, 2, 0, |
| 2056 | doc: /* Return the element of ARRAY at index IDX. | 2058 | doc: /* Return the element of ARRAY at index IDX. |
| 2057 | ARRAY may be a vector, a string, a char-table, a bool-vector, | 2059 | ARRAY may be a vector, a string, a char-table, a bool-vector, |
| 2058 | or a byte-code object. IDX starts at 0. */) | 2060 | or a byte-code object. IDX starts at 0. */) |
| @@ -2107,7 +2109,7 @@ or a byte-code object. IDX starts at 0. */) | |||
| 2107 | } | 2109 | } |
| 2108 | } | 2110 | } |
| 2109 | 2111 | ||
| 2110 | DEFUN ("aset", Faset, Saset, 3, 3, 0, | 2112 | DEFUE ("aset", Faset, Saset, 3, 3, 0, |
| 2111 | doc: /* Store into the element of ARRAY at index IDX the value NEWELT. | 2113 | doc: /* Store into the element of ARRAY at index IDX the value NEWELT. |
| 2112 | Return NEWELT. ARRAY may be a vector, a string, a char-table or a | 2114 | Return NEWELT. ARRAY may be a vector, a string, a char-table or a |
| 2113 | bool-vector. IDX starts at 0. */) | 2115 | bool-vector. IDX starts at 0. */) |
| @@ -2270,21 +2272,21 @@ DEFUN ("=", Feqlsign, Seqlsign, 2, 2, 0, | |||
| 2270 | return arithcompare (num1, num2, equal); | 2272 | return arithcompare (num1, num2, equal); |
| 2271 | } | 2273 | } |
| 2272 | 2274 | ||
| 2273 | DEFUN ("<", Flss, Slss, 2, 2, 0, | 2275 | DEFUE ("<", Flss, Slss, 2, 2, 0, |
| 2274 | doc: /* Return t if first arg is less than second arg. Both must be numbers or markers. */) | 2276 | doc: /* Return t if first arg is less than second arg. Both must be numbers or markers. */) |
| 2275 | (register Lisp_Object num1, Lisp_Object num2) | 2277 | (register Lisp_Object num1, Lisp_Object num2) |
| 2276 | { | 2278 | { |
| 2277 | return arithcompare (num1, num2, less); | 2279 | return arithcompare (num1, num2, less); |
| 2278 | } | 2280 | } |
| 2279 | 2281 | ||
| 2280 | DEFUN (">", Fgtr, Sgtr, 2, 2, 0, | 2282 | DEFUE (">", Fgtr, Sgtr, 2, 2, 0, |
| 2281 | doc: /* Return t if first arg is greater than second arg. Both must be numbers or markers. */) | 2283 | doc: /* Return t if first arg is greater than second arg. Both must be numbers or markers. */) |
| 2282 | (register Lisp_Object num1, Lisp_Object num2) | 2284 | (register Lisp_Object num1, Lisp_Object num2) |
| 2283 | { | 2285 | { |
| 2284 | return arithcompare (num1, num2, grtr); | 2286 | return arithcompare (num1, num2, grtr); |
| 2285 | } | 2287 | } |
| 2286 | 2288 | ||
| 2287 | DEFUN ("<=", Fleq, Sleq, 2, 2, 0, | 2289 | DEFUE ("<=", Fleq, Sleq, 2, 2, 0, |
| 2288 | doc: /* Return t if first arg is less than or equal to second arg. | 2290 | doc: /* Return t if first arg is less than or equal to second arg. |
| 2289 | Both must be numbers or markers. */) | 2291 | Both must be numbers or markers. */) |
| 2290 | (register Lisp_Object num1, Lisp_Object num2) | 2292 | (register Lisp_Object num1, Lisp_Object num2) |
| @@ -2292,7 +2294,7 @@ Both must be numbers or markers. */) | |||
| 2292 | return arithcompare (num1, num2, less_or_equal); | 2294 | return arithcompare (num1, num2, less_or_equal); |
| 2293 | } | 2295 | } |
| 2294 | 2296 | ||
| 2295 | DEFUN (">=", Fgeq, Sgeq, 2, 2, 0, | 2297 | DEFUE (">=", Fgeq, Sgeq, 2, 2, 0, |
| 2296 | doc: /* Return t if first arg is greater than or equal to second arg. | 2298 | doc: /* Return t if first arg is greater than or equal to second arg. |
| 2297 | Both must be numbers or markers. */) | 2299 | Both must be numbers or markers. */) |
| 2298 | (register Lisp_Object num1, Lisp_Object num2) | 2300 | (register Lisp_Object num1, Lisp_Object num2) |
| @@ -2307,7 +2309,7 @@ DEFUN ("/=", Fneq, Sneq, 2, 2, 0, | |||
| 2307 | return arithcompare (num1, num2, notequal); | 2309 | return arithcompare (num1, num2, notequal); |
| 2308 | } | 2310 | } |
| 2309 | 2311 | ||
| 2310 | DEFUN ("zerop", Fzerop, Szerop, 1, 1, 0, | 2312 | DEFUE ("zerop", Fzerop, Szerop, 1, 1, 0, |
| 2311 | doc: /* Return t if NUMBER is zero. */) | 2313 | doc: /* Return t if NUMBER is zero. */) |
| 2312 | (register Lisp_Object number) | 2314 | (register Lisp_Object number) |
| 2313 | { | 2315 | { |
| @@ -2354,7 +2356,7 @@ cons_to_long (Lisp_Object c) | |||
| 2354 | return ((XINT (top) << 16) | XINT (bot)); | 2356 | return ((XINT (top) << 16) | XINT (bot)); |
| 2355 | } | 2357 | } |
| 2356 | 2358 | ||
| 2357 | DEFUN ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0, | 2359 | DEFUE ("number-to-string", Fnumber_to_string, Snumber_to_string, 1, 1, 0, |
| 2358 | doc: /* Return the decimal representation of NUMBER as a string. | 2360 | doc: /* Return the decimal representation of NUMBER as a string. |
| 2359 | Uses a minus sign if negative. | 2361 | Uses a minus sign if negative. |
| 2360 | NUMBER may be an integer or a floating point number. */) | 2362 | NUMBER may be an integer or a floating point number. */) |
| @@ -2401,7 +2403,7 @@ digit_to_number (int character, int base) | |||
| 2401 | return digit; | 2403 | return digit; |
| 2402 | } | 2404 | } |
| 2403 | 2405 | ||
| 2404 | DEFUN ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 2, 0, | 2406 | DEFUE ("string-to-number", Fstring_to_number, Sstring_to_number, 1, 2, 0, |
| 2405 | doc: /* Parse STRING as a decimal number and return the number. | 2407 | doc: /* Parse STRING as a decimal number and return the number. |
| 2406 | This parses both integers and floating point numbers. | 2408 | This parses both integers and floating point numbers. |
| 2407 | It ignores leading spaces and tabs, and all trailing chars. | 2409 | It ignores leading spaces and tabs, and all trailing chars. |
| @@ -2624,7 +2626,7 @@ float_arith_driver (double accum, register size_t argnum, enum arithop code, | |||
| 2624 | } | 2626 | } |
| 2625 | 2627 | ||
| 2626 | 2628 | ||
| 2627 | DEFUN ("+", Fplus, Splus, 0, MANY, 0, | 2629 | DEFUE ("+", Fplus, Splus, 0, MANY, 0, |
| 2628 | doc: /* Return sum of any number of arguments, which are numbers or markers. | 2630 | doc: /* Return sum of any number of arguments, which are numbers or markers. |
| 2629 | usage: (+ &rest NUMBERS-OR-MARKERS) */) | 2631 | usage: (+ &rest NUMBERS-OR-MARKERS) */) |
| 2630 | (size_t nargs, Lisp_Object *args) | 2632 | (size_t nargs, Lisp_Object *args) |
| @@ -2632,7 +2634,7 @@ usage: (+ &rest NUMBERS-OR-MARKERS) */) | |||
| 2632 | return arith_driver (Aadd, nargs, args); | 2634 | return arith_driver (Aadd, nargs, args); |
| 2633 | } | 2635 | } |
| 2634 | 2636 | ||
| 2635 | DEFUN ("-", Fminus, Sminus, 0, MANY, 0, | 2637 | DEFUE ("-", Fminus, Sminus, 0, MANY, 0, |
| 2636 | doc: /* Negate number or subtract numbers or markers and return the result. | 2638 | doc: /* Negate number or subtract numbers or markers and return the result. |
| 2637 | With one arg, negates it. With more than one arg, | 2639 | With one arg, negates it. With more than one arg, |
| 2638 | subtracts all but the first from the first. | 2640 | subtracts all but the first from the first. |
| @@ -2642,7 +2644,7 @@ usage: (- &optional NUMBER-OR-MARKER &rest MORE-NUMBERS-OR-MARKERS) */) | |||
| 2642 | return arith_driver (Asub, nargs, args); | 2644 | return arith_driver (Asub, nargs, args); |
| 2643 | } | 2645 | } |
| 2644 | 2646 | ||
| 2645 | DEFUN ("*", Ftimes, Stimes, 0, MANY, 0, | 2647 | DEFUE ("*", Ftimes, Stimes, 0, MANY, 0, |
| 2646 | doc: /* Return product of any number of arguments, which are numbers or markers. | 2648 | doc: /* Return product of any number of arguments, which are numbers or markers. |
| 2647 | usage: (* &rest NUMBERS-OR-MARKERS) */) | 2649 | usage: (* &rest NUMBERS-OR-MARKERS) */) |
| 2648 | (size_t nargs, Lisp_Object *args) | 2650 | (size_t nargs, Lisp_Object *args) |
| @@ -2650,7 +2652,7 @@ usage: (* &rest NUMBERS-OR-MARKERS) */) | |||
| 2650 | return arith_driver (Amult, nargs, args); | 2652 | return arith_driver (Amult, nargs, args); |
| 2651 | } | 2653 | } |
| 2652 | 2654 | ||
| 2653 | DEFUN ("/", Fquo, Squo, 2, MANY, 0, | 2655 | DEFUE ("/", Fquo, Squo, 2, MANY, 0, |
| 2654 | doc: /* Return first argument divided by all the remaining arguments. | 2656 | doc: /* Return first argument divided by all the remaining arguments. |
| 2655 | The arguments must be numbers or markers. | 2657 | The arguments must be numbers or markers. |
| 2656 | usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */) | 2658 | usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */) |
| @@ -2663,7 +2665,7 @@ usage: (/ DIVIDEND DIVISOR &rest DIVISORS) */) | |||
| 2663 | return arith_driver (Adiv, nargs, args); | 2665 | return arith_driver (Adiv, nargs, args); |
| 2664 | } | 2666 | } |
| 2665 | 2667 | ||
| 2666 | DEFUN ("%", Frem, Srem, 2, 2, 0, | 2668 | DEFUE ("%", Frem, Srem, 2, 2, 0, |
| 2667 | doc: /* Return remainder of X divided by Y. | 2669 | doc: /* Return remainder of X divided by Y. |
| 2668 | Both must be integers or markers. */) | 2670 | Both must be integers or markers. */) |
| 2669 | (register Lisp_Object x, Lisp_Object y) | 2671 | (register Lisp_Object x, Lisp_Object y) |
| @@ -2734,7 +2736,7 @@ Both X and Y must be numbers or markers. */) | |||
| 2734 | return val; | 2736 | return val; |
| 2735 | } | 2737 | } |
| 2736 | 2738 | ||
| 2737 | DEFUN ("max", Fmax, Smax, 1, MANY, 0, | 2739 | DEFUE ("max", Fmax, Smax, 1, MANY, 0, |
| 2738 | doc: /* Return largest of all the arguments (which must be numbers or markers). | 2740 | doc: /* Return largest of all the arguments (which must be numbers or markers). |
| 2739 | The value is always a number; markers are converted to numbers. | 2741 | The value is always a number; markers are converted to numbers. |
| 2740 | usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) | 2742 | usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) |
| @@ -2743,7 +2745,7 @@ usage: (max NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) | |||
| 2743 | return arith_driver (Amax, nargs, args); | 2745 | return arith_driver (Amax, nargs, args); |
| 2744 | } | 2746 | } |
| 2745 | 2747 | ||
| 2746 | DEFUN ("min", Fmin, Smin, 1, MANY, 0, | 2748 | DEFUE ("min", Fmin, Smin, 1, MANY, 0, |
| 2747 | doc: /* Return smallest of all the arguments (which must be numbers or markers). | 2749 | doc: /* Return smallest of all the arguments (which must be numbers or markers). |
| 2748 | The value is always a number; markers are converted to numbers. | 2750 | The value is always a number; markers are converted to numbers. |
| 2749 | usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) | 2751 | usage: (min NUMBER-OR-MARKER &rest NUMBERS-OR-MARKERS) */) |
| @@ -2823,7 +2825,7 @@ In this case, zeros are shifted in on the left. */) | |||
| 2823 | return val; | 2825 | return val; |
| 2824 | } | 2826 | } |
| 2825 | 2827 | ||
| 2826 | DEFUN ("1+", Fadd1, Sadd1, 1, 1, 0, | 2828 | DEFUE ("1+", Fadd1, Sadd1, 1, 1, 0, |
| 2827 | doc: /* Return NUMBER plus one. NUMBER may be a number or a marker. | 2829 | doc: /* Return NUMBER plus one. NUMBER may be a number or a marker. |
| 2828 | Markers are converted to integers. */) | 2830 | Markers are converted to integers. */) |
| 2829 | (register Lisp_Object number) | 2831 | (register Lisp_Object number) |
| @@ -2837,7 +2839,7 @@ Markers are converted to integers. */) | |||
| 2837 | return number; | 2839 | return number; |
| 2838 | } | 2840 | } |
| 2839 | 2841 | ||
| 2840 | DEFUN ("1-", Fsub1, Ssub1, 1, 1, 0, | 2842 | DEFUE ("1-", Fsub1, Ssub1, 1, 1, 0, |
| 2841 | doc: /* Return NUMBER minus one. NUMBER may be a number or a marker. | 2843 | doc: /* Return NUMBER minus one. NUMBER may be a number or a marker. |
| 2842 | Markers are converted to integers. */) | 2844 | Markers are converted to integers. */) |
| 2843 | (register Lisp_Object number) | 2845 | (register Lisp_Object number) |
| @@ -2860,7 +2862,7 @@ DEFUN ("lognot", Flognot, Slognot, 1, 1, 0, | |||
| 2860 | return number; | 2862 | return number; |
| 2861 | } | 2863 | } |
| 2862 | 2864 | ||
| 2863 | DEFUN ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0, | 2865 | DEFUE ("byteorder", Fbyteorder, Sbyteorder, 0, 0, 0, |
| 2864 | doc: /* Return the byteorder for the machine. | 2866 | doc: /* Return the byteorder for the machine. |
| 2865 | Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII | 2867 | Returns 66 (ASCII uppercase B) for big endian machines or 108 (ASCII |
| 2866 | lowercase l) for small endian machines. */) | 2868 | lowercase l) for small endian machines. */) |
diff --git a/src/dired.c b/src/dired.c index 186cfd1420b..f5fc1e3a62d 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -87,6 +87,7 @@ Lisp_Object Qfile_attributes; | |||
| 87 | Lisp_Object Qfile_attributes_lessp; | 87 | Lisp_Object Qfile_attributes_lessp; |
| 88 | 88 | ||
| 89 | static int scmp (const char *, const char *, int); | 89 | static int scmp (const char *, const char *, int); |
| 90 | INFUN (Ffile_attributes, 2); | ||
| 90 | 91 | ||
| 91 | #ifdef WINDOWSNT | 92 | #ifdef WINDOWSNT |
| 92 | Lisp_Object | 93 | Lisp_Object |
diff --git a/src/dispnew.c b/src/dispnew.c index 3a78845fa56..6e4c93d1676 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -337,7 +337,7 @@ add_frame_display_history (struct frame *f, int paused_p) | |||
| 337 | } | 337 | } |
| 338 | 338 | ||
| 339 | 339 | ||
| 340 | DEFUN ("dump-redisplay-history", Fdump_redisplay_history, | 340 | DEFUE ("dump-redisplay-history", Fdump_redisplay_history, |
| 341 | Sdump_redisplay_history, 0, 0, "", | 341 | Sdump_redisplay_history, 0, 0, "", |
| 342 | doc: /* Dump redisplay history to stderr. */) | 342 | doc: /* Dump redisplay history to stderr. */) |
| 343 | (void) | 343 | (void) |
| @@ -3139,7 +3139,7 @@ window_to_frame_hpos (struct window *w, int hpos) | |||
| 3139 | Redrawing Frames | 3139 | Redrawing Frames |
| 3140 | **********************************************************************/ | 3140 | **********************************************************************/ |
| 3141 | 3141 | ||
| 3142 | DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, | 3142 | DEFUE ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, |
| 3143 | doc: /* Clear frame FRAME and output again what is supposed to appear on it. */) | 3143 | doc: /* Clear frame FRAME and output again what is supposed to appear on it. */) |
| 3144 | (Lisp_Object frame) | 3144 | (Lisp_Object frame) |
| 3145 | { | 3145 | { |
| @@ -5878,7 +5878,7 @@ when TERMINAL is nil. */) | |||
| 5878 | } | 5878 | } |
| 5879 | 5879 | ||
| 5880 | 5880 | ||
| 5881 | DEFUN ("ding", Fding, Sding, 0, 1, 0, | 5881 | DEFUE ("ding", Fding, Sding, 0, 1, 0, |
| 5882 | doc: /* Beep, or flash the screen. | 5882 | doc: /* Beep, or flash the screen. |
| 5883 | Also, unless an argument is given, | 5883 | Also, unless an argument is given, |
| 5884 | terminate any keyboard macro currently executing. */) | 5884 | terminate any keyboard macro currently executing. */) |
| @@ -5914,7 +5914,7 @@ bitch_at_user (void) | |||
| 5914 | Sleeping, Waiting | 5914 | Sleeping, Waiting |
| 5915 | ***********************************************************************/ | 5915 | ***********************************************************************/ |
| 5916 | 5916 | ||
| 5917 | DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 0, | 5917 | DEFUE ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 0, |
| 5918 | doc: /* Pause, without updating display, for SECONDS seconds. | 5918 | doc: /* Pause, without updating display, for SECONDS seconds. |
| 5919 | SECONDS may be a floating-point value, meaning that you can wait for a | 5919 | SECONDS may be a floating-point value, meaning that you can wait for a |
| 5920 | fraction of a second. Optional second arg MILLISECONDS specifies an | 5920 | fraction of a second. Optional second arg MILLISECONDS specifies an |
| @@ -6020,7 +6020,7 @@ sit_for (Lisp_Object timeout, int reading, int do_display) | |||
| 6020 | } | 6020 | } |
| 6021 | 6021 | ||
| 6022 | 6022 | ||
| 6023 | DEFUN ("redisplay", Fredisplay, Sredisplay, 0, 1, 0, | 6023 | DEFUE ("redisplay", Fredisplay, Sredisplay, 0, 1, 0, |
| 6024 | doc: /* Perform redisplay if no input is available. | 6024 | doc: /* Perform redisplay if no input is available. |
| 6025 | If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil, | 6025 | If optional arg FORCE is non-nil or `redisplay-dont-pause' is non-nil, |
| 6026 | perform a full redisplay even if input is available. | 6026 | perform a full redisplay even if input is available. |
| @@ -42,7 +42,8 @@ static char *get_doc_string_buffer; | |||
| 42 | static int get_doc_string_buffer_size; | 42 | static int get_doc_string_buffer_size; |
| 43 | 43 | ||
| 44 | static unsigned char *read_bytecode_pointer; | 44 | static unsigned char *read_bytecode_pointer; |
| 45 | Lisp_Object Fsnarf_documentation (Lisp_Object); | 45 | INFUN (Fdocumentation_property, 3); |
| 46 | INFUN (Fsnarf_documentation, 1); | ||
| 46 | 47 | ||
| 47 | /* readchar in lread.c calls back here to fetch the next byte. | 48 | /* readchar in lread.c calls back here to fetch the next byte. |
| 48 | If UNREADFLAG is 1, we unread a byte. */ | 49 | If UNREADFLAG is 1, we unread a byte. */ |
| @@ -680,7 +681,7 @@ the same file name is found in the `doc-directory'. */) | |||
| 680 | return Qnil; | 681 | return Qnil; |
| 681 | } | 682 | } |
| 682 | 683 | ||
| 683 | DEFUN ("substitute-command-keys", Fsubstitute_command_keys, | 684 | DEFUE ("substitute-command-keys", Fsubstitute_command_keys, |
| 684 | Ssubstitute_command_keys, 1, 1, 0, | 685 | Ssubstitute_command_keys, 1, 1, 0, |
| 685 | doc: /* Substitute key descriptions for command names in STRING. | 686 | doc: /* Substitute key descriptions for command names in STRING. |
| 686 | Substrings of the form \\=\\[COMMAND] replaced by either: a keystroke | 687 | Substrings of the form \\=\\[COMMAND] replaced by either: a keystroke |
diff --git a/src/editfns.c b/src/editfns.c index 85b30de6975..0c34a95b949 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -108,7 +108,7 @@ static void transpose_markers (EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT, | |||
| 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); | 108 | EMACS_INT, EMACS_INT, EMACS_INT, EMACS_INT); |
| 109 | 109 | ||
| 110 | Lisp_Object Qbuffer_access_fontify_functions; | 110 | Lisp_Object Qbuffer_access_fontify_functions; |
| 111 | Lisp_Object Fuser_full_name (Lisp_Object); | 111 | INFUN (Fuser_full_name, 1); |
| 112 | 112 | ||
| 113 | /* Symbol for the text property used to mark fields. */ | 113 | /* Symbol for the text property used to mark fields. */ |
| 114 | 114 | ||
| @@ -185,7 +185,7 @@ init_editfns (void) | |||
| 185 | #endif | 185 | #endif |
| 186 | } | 186 | } |
| 187 | 187 | ||
| 188 | DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, | 188 | DEFUE ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0, |
| 189 | doc: /* Convert arg CHAR to a string containing that character. | 189 | doc: /* Convert arg CHAR to a string containing that character. |
| 190 | usage: (char-to-string CHAR) */) | 190 | usage: (char-to-string CHAR) */) |
| 191 | (Lisp_Object character) | 191 | (Lisp_Object character) |
| @@ -239,7 +239,7 @@ buildmark (EMACS_INT charpos, EMACS_INT bytepos) | |||
| 239 | return mark; | 239 | return mark; |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | DEFUN ("point", Fpoint, Spoint, 0, 0, 0, | 242 | DEFUE ("point", Fpoint, Spoint, 0, 0, 0, |
| 243 | doc: /* Return value of point, as an integer. | 243 | doc: /* Return value of point, as an integer. |
| 244 | Beginning of buffer is position (point-min). */) | 244 | Beginning of buffer is position (point-min). */) |
| 245 | (void) | 245 | (void) |
| @@ -249,7 +249,7 @@ Beginning of buffer is position (point-min). */) | |||
| 249 | return temp; | 249 | return temp; |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | DEFUN ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, | 252 | DEFUE ("point-marker", Fpoint_marker, Spoint_marker, 0, 0, 0, |
| 253 | doc: /* Return value of point, as a marker object. */) | 253 | doc: /* Return value of point, as a marker object. */) |
| 254 | (void) | 254 | (void) |
| 255 | { | 255 | { |
| @@ -267,7 +267,7 @@ clip_to_bounds (EMACS_INT lower, EMACS_INT num, EMACS_INT upper) | |||
| 267 | return num; | 267 | return num; |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | DEFUN ("goto-char", Fgoto_char, Sgoto_char, 1, 1, "NGoto char: ", | 270 | DEFUE ("goto-char", Fgoto_char, Sgoto_char, 1, 1, "NGoto char: ", |
| 271 | doc: /* Set point to POSITION, a number or marker. | 271 | doc: /* Set point to POSITION, a number or marker. |
| 272 | Beginning of buffer is position (point-min), end is (point-max). | 272 | Beginning of buffer is position (point-min), end is (point-max). |
| 273 | 273 | ||
| @@ -663,7 +663,7 @@ is before LIMIT, then LIMIT will be returned instead. */) | |||
| 663 | return make_number (beg); | 663 | return make_number (beg); |
| 664 | } | 664 | } |
| 665 | 665 | ||
| 666 | DEFUN ("field-end", Ffield_end, Sfield_end, 0, 3, 0, | 666 | DEFUE ("field-end", Ffield_end, Sfield_end, 0, 3, 0, |
| 667 | doc: /* Return the end of the field surrounding POS. | 667 | doc: /* Return the end of the field surrounding POS. |
| 668 | A field is a region of text with the same `field' property. | 668 | A field is a region of text with the same `field' property. |
| 669 | If POS is nil, the value of point is used for POS. | 669 | If POS is nil, the value of point is used for POS. |
| @@ -678,7 +678,7 @@ is after LIMIT, then LIMIT will be returned instead. */) | |||
| 678 | return make_number (end); | 678 | return make_number (end); |
| 679 | } | 679 | } |
| 680 | 680 | ||
| 681 | DEFUN ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0, | 681 | DEFUE ("constrain-to-field", Fconstrain_to_field, Sconstrain_to_field, 2, 5, 0, |
| 682 | doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS. | 682 | doc: /* Return the position closest to NEW-POS that is in the same field as OLD-POS. |
| 683 | 683 | ||
| 684 | A field is a region of text with the same `field' property. | 684 | A field is a region of text with the same `field' property. |
| @@ -787,7 +787,7 @@ Field boundaries are not noticed if `inhibit-field-text-motion' is non-nil. */) | |||
| 787 | } | 787 | } |
| 788 | 788 | ||
| 789 | 789 | ||
| 790 | DEFUN ("line-beginning-position", | 790 | DEFUE ("line-beginning-position", |
| 791 | Fline_beginning_position, Sline_beginning_position, 0, 1, 0, | 791 | Fline_beginning_position, Sline_beginning_position, 0, 1, 0, |
| 792 | doc: /* Return the character position of the first character on the current line. | 792 | doc: /* Return the character position of the first character on the current line. |
| 793 | With argument N not nil or 1, move forward N - 1 lines first. | 793 | With argument N not nil or 1, move forward N - 1 lines first. |
| @@ -829,7 +829,7 @@ This function does not move point. */) | |||
| 829 | Qt, Qnil); | 829 | Qt, Qnil); |
| 830 | } | 830 | } |
| 831 | 831 | ||
| 832 | DEFUN ("line-end-position", Fline_end_position, Sline_end_position, 0, 1, 0, | 832 | DEFUE ("line-end-position", Fline_end_position, Sline_end_position, 0, 1, 0, |
| 833 | doc: /* Return the character position of the last character on the current line. | 833 | doc: /* Return the character position of the last character on the current line. |
| 834 | With argument N not nil or 1, move forward N - 1 lines first. | 834 | With argument N not nil or 1, move forward N - 1 lines first. |
| 835 | If scan reaches end of buffer, return that position. | 835 | If scan reaches end of buffer, return that position. |
| @@ -1048,7 +1048,7 @@ is in effect, in which case it is less. */) | |||
| 1048 | return temp; | 1048 | return temp; |
| 1049 | } | 1049 | } |
| 1050 | 1050 | ||
| 1051 | DEFUN ("point-max-marker", Fpoint_max_marker, Spoint_max_marker, 0, 0, 0, | 1051 | DEFUE ("point-max-marker", Fpoint_max_marker, Spoint_max_marker, 0, 0, 0, |
| 1052 | doc: /* Return a marker to the maximum permissible value of point in this buffer. | 1052 | doc: /* Return a marker to the maximum permissible value of point in this buffer. |
| 1053 | This is (1+ (buffer-size)), unless narrowing (a buffer restriction) | 1053 | This is (1+ (buffer-size)), unless narrowing (a buffer restriction) |
| 1054 | is in effect, in which case it is less. */) | 1054 | is in effect, in which case it is less. */) |
| @@ -1099,7 +1099,7 @@ If BYTEPOS is out of range, the value is nil. */) | |||
| 1099 | return make_number (BYTE_TO_CHAR (XINT (bytepos))); | 1099 | return make_number (BYTE_TO_CHAR (XINT (bytepos))); |
| 1100 | } | 1100 | } |
| 1101 | 1101 | ||
| 1102 | DEFUN ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0, | 1102 | DEFUE ("following-char", Ffollowing_char, Sfollowing_char, 0, 0, 0, |
| 1103 | doc: /* Return the character following point, as a number. | 1103 | doc: /* Return the character following point, as a number. |
| 1104 | At the end of the buffer or accessible region, return 0. */) | 1104 | At the end of the buffer or accessible region, return 0. */) |
| 1105 | (void) | 1105 | (void) |
| @@ -1112,7 +1112,7 @@ At the end of the buffer or accessible region, return 0. */) | |||
| 1112 | return temp; | 1112 | return temp; |
| 1113 | } | 1113 | } |
| 1114 | 1114 | ||
| 1115 | DEFUN ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0, | 1115 | DEFUE ("preceding-char", Fprevious_char, Sprevious_char, 0, 0, 0, |
| 1116 | doc: /* Return the character preceding point, as a number. | 1116 | doc: /* Return the character preceding point, as a number. |
| 1117 | At the beginning of the buffer or accessible region, return 0. */) | 1117 | At the beginning of the buffer or accessible region, return 0. */) |
| 1118 | (void) | 1118 | (void) |
| @@ -1131,7 +1131,7 @@ At the beginning of the buffer or accessible region, return 0. */) | |||
| 1131 | return temp; | 1131 | return temp; |
| 1132 | } | 1132 | } |
| 1133 | 1133 | ||
| 1134 | DEFUN ("bobp", Fbobp, Sbobp, 0, 0, 0, | 1134 | DEFUE ("bobp", Fbobp, Sbobp, 0, 0, 0, |
| 1135 | doc: /* Return t if point is at the beginning of the buffer. | 1135 | doc: /* Return t if point is at the beginning of the buffer. |
| 1136 | If the buffer is narrowed, this means the beginning of the narrowed part. */) | 1136 | If the buffer is narrowed, this means the beginning of the narrowed part. */) |
| 1137 | (void) | 1137 | (void) |
| @@ -1141,7 +1141,7 @@ If the buffer is narrowed, this means the beginning of the narrowed part. */) | |||
| 1141 | return Qnil; | 1141 | return Qnil; |
| 1142 | } | 1142 | } |
| 1143 | 1143 | ||
| 1144 | DEFUN ("eobp", Feobp, Seobp, 0, 0, 0, | 1144 | DEFUE ("eobp", Feobp, Seobp, 0, 0, 0, |
| 1145 | doc: /* Return t if point is at the end of the buffer. | 1145 | doc: /* Return t if point is at the end of the buffer. |
| 1146 | If the buffer is narrowed, this means the end of the narrowed part. */) | 1146 | If the buffer is narrowed, this means the end of the narrowed part. */) |
| 1147 | (void) | 1147 | (void) |
| @@ -1151,7 +1151,7 @@ If the buffer is narrowed, this means the end of the narrowed part. */) | |||
| 1151 | return Qnil; | 1151 | return Qnil; |
| 1152 | } | 1152 | } |
| 1153 | 1153 | ||
| 1154 | DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0, | 1154 | DEFUE ("bolp", Fbolp, Sbolp, 0, 0, 0, |
| 1155 | doc: /* Return t if point is at the beginning of a line. */) | 1155 | doc: /* Return t if point is at the beginning of a line. */) |
| 1156 | (void) | 1156 | (void) |
| 1157 | { | 1157 | { |
| @@ -1160,7 +1160,7 @@ DEFUN ("bolp", Fbolp, Sbolp, 0, 0, 0, | |||
| 1160 | return Qnil; | 1160 | return Qnil; |
| 1161 | } | 1161 | } |
| 1162 | 1162 | ||
| 1163 | DEFUN ("eolp", Feolp, Seolp, 0, 0, 0, | 1163 | DEFUE ("eolp", Feolp, Seolp, 0, 0, 0, |
| 1164 | doc: /* Return t if point is at the end of a line. | 1164 | doc: /* Return t if point is at the end of a line. |
| 1165 | `End of a line' includes point being at the end of the buffer. */) | 1165 | `End of a line' includes point being at the end of the buffer. */) |
| 1166 | (void) | 1166 | (void) |
| @@ -1170,7 +1170,7 @@ DEFUN ("eolp", Feolp, Seolp, 0, 0, 0, | |||
| 1170 | return Qnil; | 1170 | return Qnil; |
| 1171 | } | 1171 | } |
| 1172 | 1172 | ||
| 1173 | DEFUN ("char-after", Fchar_after, Schar_after, 0, 1, 0, | 1173 | DEFUE ("char-after", Fchar_after, Schar_after, 0, 1, 0, |
| 1174 | doc: /* Return character in current buffer at position POS. | 1174 | doc: /* Return character in current buffer at position POS. |
| 1175 | POS is an integer or a marker and defaults to point. | 1175 | POS is an integer or a marker and defaults to point. |
| 1176 | If POS is out of range, the value is nil. */) | 1176 | If POS is out of range, the value is nil. */) |
| @@ -1247,7 +1247,7 @@ If POS is out of range, the value is nil. */) | |||
| 1247 | return val; | 1247 | return val; |
| 1248 | } | 1248 | } |
| 1249 | 1249 | ||
| 1250 | DEFUN ("user-login-name", Fuser_login_name, Suser_login_name, 0, 1, 0, | 1250 | DEFUE ("user-login-name", Fuser_login_name, Suser_login_name, 0, 1, 0, |
| 1251 | doc: /* Return the name under which the user logged in, as a string. | 1251 | doc: /* Return the name under which the user logged in, as a string. |
| 1252 | This is based on the effective uid, not the real uid. | 1252 | This is based on the effective uid, not the real uid. |
| 1253 | Also, if the environment variables LOGNAME or USER are set, | 1253 | Also, if the environment variables LOGNAME or USER are set, |
| @@ -1387,7 +1387,7 @@ name, or nil if there is no such user. */) | |||
| 1387 | return full; | 1387 | return full; |
| 1388 | } | 1388 | } |
| 1389 | 1389 | ||
| 1390 | DEFUN ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, | 1390 | DEFUE ("system-name", Fsystem_name, Ssystem_name, 0, 0, 0, |
| 1391 | doc: /* Return the host name of the machine you are running on, as a string. */) | 1391 | doc: /* Return the host name of the machine you are running on, as a string. */) |
| 1392 | (void) | 1392 | (void) |
| 1393 | { | 1393 | { |
| @@ -1462,7 +1462,7 @@ lo_time (time_t t) | |||
| 1462 | return t & ((1 << 16) - 1); | 1462 | return t & ((1 << 16) - 1); |
| 1463 | } | 1463 | } |
| 1464 | 1464 | ||
| 1465 | DEFUN ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, | 1465 | DEFUE ("current-time", Fcurrent_time, Scurrent_time, 0, 0, 0, |
| 1466 | doc: /* Return the current time, as the number of seconds since 1970-01-01 00:00:00. | 1466 | doc: /* Return the current time, as the number of seconds since 1970-01-01 00:00:00. |
| 1467 | The time is returned as a list of three integers. The first has the | 1467 | The time is returned as a list of three integers. The first has the |
| 1468 | most significant 16 bits of the seconds, while the second has the | 1468 | most significant 16 bits of the seconds, while the second has the |
| @@ -1481,7 +1481,7 @@ resolution finer than a second. */) | |||
| 1481 | make_number (EMACS_USECS (t))); | 1481 | make_number (EMACS_USECS (t))); |
| 1482 | } | 1482 | } |
| 1483 | 1483 | ||
| 1484 | DEFUN ("get-internal-run-time", Fget_internal_run_time, Sget_internal_run_time, | 1484 | DEFUE ("get-internal-run-time", Fget_internal_run_time, Sget_internal_run_time, |
| 1485 | 0, 0, 0, | 1485 | 0, 0, 0, |
| 1486 | doc: /* Return the current run time used by Emacs. | 1486 | doc: /* Return the current run time used by Emacs. |
| 1487 | The time is returned as a list of three integers. The first has the | 1487 | The time is returned as a list of three integers. The first has the |
| @@ -2255,7 +2255,7 @@ insert1 (Lisp_Object arg) | |||
| 2255 | not be used after calling insert or insert_from_string, so | 2255 | not be used after calling insert or insert_from_string, so |
| 2256 | we don't care if it gets trashed. */ | 2256 | we don't care if it gets trashed. */ |
| 2257 | 2257 | ||
| 2258 | DEFUN ("insert", Finsert, Sinsert, 0, MANY, 0, | 2258 | DEFUE ("insert", Finsert, Sinsert, 0, MANY, 0, |
| 2259 | doc: /* Insert the arguments, either strings or characters, at point. | 2259 | doc: /* Insert the arguments, either strings or characters, at point. |
| 2260 | Point and before-insertion markers move forward to end up | 2260 | Point and before-insertion markers move forward to end up |
| 2261 | after the inserted text. | 2261 | after the inserted text. |
| @@ -2335,7 +2335,7 @@ usage: (insert-before-markers-and-inherit &rest ARGS) */) | |||
| 2335 | return Qnil; | 2335 | return Qnil; |
| 2336 | } | 2336 | } |
| 2337 | 2337 | ||
| 2338 | DEFUN ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0, | 2338 | DEFUE ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0, |
| 2339 | doc: /* Insert COUNT copies of CHARACTER. | 2339 | doc: /* Insert COUNT copies of CHARACTER. |
| 2340 | Point, and before-insertion markers, are relocated as in the function `insert'. | 2340 | Point, and before-insertion markers, are relocated as in the function `insert'. |
| 2341 | The optional third arg INHERIT, if non-nil, says to inherit text properties | 2341 | The optional third arg INHERIT, if non-nil, says to inherit text properties |
| @@ -2509,7 +2509,7 @@ update_buffer_properties (EMACS_INT start, EMACS_INT end) | |||
| 2509 | } | 2509 | } |
| 2510 | } | 2510 | } |
| 2511 | 2511 | ||
| 2512 | DEFUN ("buffer-substring", Fbuffer_substring, Sbuffer_substring, 2, 2, 0, | 2512 | DEFUE ("buffer-substring", Fbuffer_substring, Sbuffer_substring, 2, 2, 0, |
| 2513 | doc: /* Return the contents of part of the current buffer as a string. | 2513 | doc: /* Return the contents of part of the current buffer as a string. |
| 2514 | The two arguments START and END are character positions; | 2514 | The two arguments START and END are character positions; |
| 2515 | they can be in either order. | 2515 | they can be in either order. |
| @@ -2545,7 +2545,7 @@ they can be in either order. */) | |||
| 2545 | return make_buffer_string (b, e, 0); | 2545 | return make_buffer_string (b, e, 0); |
| 2546 | } | 2546 | } |
| 2547 | 2547 | ||
| 2548 | DEFUN ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0, | 2548 | DEFUE ("buffer-string", Fbuffer_string, Sbuffer_string, 0, 0, 0, |
| 2549 | doc: /* Return the contents of the current buffer as a string. | 2549 | doc: /* Return the contents of the current buffer as a string. |
| 2550 | If narrowing is in effect, this function returns only the visible part | 2550 | If narrowing is in effect, this function returns only the visible part |
| 2551 | of the buffer. */) | 2551 | of the buffer. */) |
| @@ -3183,7 +3183,7 @@ It returns the number of characters changed. */) | |||
| 3183 | return make_number (cnt); | 3183 | return make_number (cnt); |
| 3184 | } | 3184 | } |
| 3185 | 3185 | ||
| 3186 | DEFUN ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r", | 3186 | DEFUE ("delete-region", Fdelete_region, Sdelete_region, 2, 2, "r", |
| 3187 | doc: /* Delete the text between point and mark. | 3187 | doc: /* Delete the text between point and mark. |
| 3188 | 3188 | ||
| 3189 | When called from a program, expects two arguments, | 3189 | When called from a program, expects two arguments, |
| @@ -3206,7 +3206,7 @@ DEFUN ("delete-and-extract-region", Fdelete_and_extract_region, | |||
| 3206 | return del_range_1 (XINT (start), XINT (end), 1, 1); | 3206 | return del_range_1 (XINT (start), XINT (end), 1, 1); |
| 3207 | } | 3207 | } |
| 3208 | 3208 | ||
| 3209 | DEFUN ("widen", Fwiden, Swiden, 0, 0, "", | 3209 | DEFUE ("widen", Fwiden, Swiden, 0, 0, "", |
| 3210 | doc: /* Remove restrictions (narrowing) from current buffer. | 3210 | doc: /* Remove restrictions (narrowing) from current buffer. |
| 3211 | This allows the buffer's full text to be seen and edited. */) | 3211 | This allows the buffer's full text to be seen and edited. */) |
| 3212 | (void) | 3212 | (void) |
| @@ -3221,7 +3221,7 @@ This allows the buffer's full text to be seen and edited. */) | |||
| 3221 | return Qnil; | 3221 | return Qnil; |
| 3222 | } | 3222 | } |
| 3223 | 3223 | ||
| 3224 | DEFUN ("narrow-to-region", Fnarrow_to_region, Snarrow_to_region, 2, 2, "r", | 3224 | DEFUE ("narrow-to-region", Fnarrow_to_region, Snarrow_to_region, 2, 2, "r", |
| 3225 | doc: /* Restrict editing in this buffer to the current region. | 3225 | doc: /* Restrict editing in this buffer to the current region. |
| 3226 | The rest of the text becomes temporarily invisible and untouchable | 3226 | The rest of the text becomes temporarily invisible and untouchable |
| 3227 | but is not deleted; if you save the buffer in a file, the invisible | 3227 | but is not deleted; if you save the buffer in a file, the invisible |
| @@ -3382,7 +3382,7 @@ static char *message_text; | |||
| 3382 | /* Allocated length of that buffer. */ | 3382 | /* Allocated length of that buffer. */ |
| 3383 | static int message_length; | 3383 | static int message_length; |
| 3384 | 3384 | ||
| 3385 | DEFUN ("message", Fmessage, Smessage, 1, MANY, 0, | 3385 | DEFUE ("message", Fmessage, Smessage, 1, MANY, 0, |
| 3386 | doc: /* Display a message at the bottom of the screen. | 3386 | doc: /* Display a message at the bottom of the screen. |
| 3387 | The message also goes into the `*Messages*' buffer. | 3387 | The message also goes into the `*Messages*' buffer. |
| 3388 | \(In keyboard macros, that's all it does.) | 3388 | \(In keyboard macros, that's all it does.) |
| @@ -3494,7 +3494,7 @@ usage: (message-or-box FORMAT-STRING &rest ARGS) */) | |||
| 3494 | return Fmessage (nargs, args); | 3494 | return Fmessage (nargs, args); |
| 3495 | } | 3495 | } |
| 3496 | 3496 | ||
| 3497 | DEFUN ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, | 3497 | DEFUE ("current-message", Fcurrent_message, Scurrent_message, 0, 0, 0, |
| 3498 | doc: /* Return the string currently displayed in the echo area, or nil if none. */) | 3498 | doc: /* Return the string currently displayed in the echo area, or nil if none. */) |
| 3499 | (void) | 3499 | (void) |
| 3500 | { | 3500 | { |
| @@ -3543,7 +3543,7 @@ usage: (propertize STRING &rest PROPERTIES) */) | |||
| 3543 | ? count_size_as_multibyte (SDATA (STRING), SBYTES (STRING)) \ | 3543 | ? count_size_as_multibyte (SDATA (STRING), SBYTES (STRING)) \ |
| 3544 | : SBYTES (STRING)) | 3544 | : SBYTES (STRING)) |
| 3545 | 3545 | ||
| 3546 | DEFUN ("format", Fformat, Sformat, 1, MANY, 0, | 3546 | DEFUE ("format", Fformat, Sformat, 1, MANY, 0, |
| 3547 | doc: /* Format a string out of a format-string and arguments. | 3547 | doc: /* Format a string out of a format-string and arguments. |
| 3548 | The first argument is a format control string. | 3548 | The first argument is a format control string. |
| 3549 | The other arguments are substituted into it to make the result, a string. | 3549 | The other arguments are substituted into it to make the result, a string. |
diff --git a/src/emacs.c b/src/emacs.c index 6bdd2550ed1..74379f4c62e 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1958,7 +1958,7 @@ sort_args (int argc, char **argv) | |||
| 1958 | xfree (priority); | 1958 | xfree (priority); |
| 1959 | } | 1959 | } |
| 1960 | 1960 | ||
| 1961 | DEFUN ("kill-emacs", Fkill_emacs, Skill_emacs, 0, 1, "P", | 1961 | DEFUE ("kill-emacs", Fkill_emacs, Skill_emacs, 0, 1, "P", |
| 1962 | doc: /* Exit the Emacs job and kill it. | 1962 | doc: /* Exit the Emacs job and kill it. |
| 1963 | If ARG is an integer, return ARG as the exit program code. | 1963 | If ARG is an integer, return ARG as the exit program code. |
| 1964 | If ARG is a string, stuff it as keyboard input. | 1964 | If ARG is a string, stuff it as keyboard input. |
diff --git a/src/eval.c b/src/eval.c index 0f9e012b823..d6d62aa4afb 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -126,6 +126,7 @@ static Lisp_Object funcall_lambda (Lisp_Object, size_t, Lisp_Object *); | |||
| 126 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; | 126 | static void unwind_to_catch (struct catchtag *, Lisp_Object) NO_RETURN; |
| 127 | static int interactive_p (int); | 127 | static int interactive_p (int); |
| 128 | static Lisp_Object apply_lambda (Lisp_Object fun, Lisp_Object args); | 128 | static Lisp_Object apply_lambda (Lisp_Object fun, Lisp_Object args); |
| 129 | INFUN (Ffetch_bytecode, 1); | ||
| 129 | 130 | ||
| 130 | void | 131 | void |
| 131 | init_eval_once (void) | 132 | init_eval_once (void) |
| @@ -339,7 +340,7 @@ usage: (cond CLAUSES...) */) | |||
| 339 | return val; | 340 | return val; |
| 340 | } | 341 | } |
| 341 | 342 | ||
| 342 | DEFUN ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, | 343 | DEFUE ("progn", Fprogn, Sprogn, 0, UNEVALLED, 0, |
| 343 | doc: /* Eval BODY forms sequentially and return value of last one. | 344 | doc: /* Eval BODY forms sequentially and return value of last one. |
| 344 | usage: (progn BODY...) */) | 345 | usage: (progn BODY...) */) |
| 345 | (Lisp_Object args) | 346 | (Lisp_Object args) |
| @@ -504,7 +505,7 @@ usage: (function ARG) */) | |||
| 504 | } | 505 | } |
| 505 | 506 | ||
| 506 | 507 | ||
| 507 | DEFUN ("interactive-p", Finteractive_p, Sinteractive_p, 0, 0, 0, | 508 | DEFUE ("interactive-p", Finteractive_p, Sinteractive_p, 0, 0, 0, |
| 508 | doc: /* Return t if the containing function was run directly by user input. | 509 | doc: /* Return t if the containing function was run directly by user input. |
| 509 | This means that the function was called with `call-interactively' | 510 | This means that the function was called with `call-interactively' |
| 510 | \(which includes being called as the binding of a key) | 511 | \(which includes being called as the binding of a key) |
| @@ -1310,7 +1311,7 @@ unwind_to_catch (struct catchtag *catch, Lisp_Object value) | |||
| 1310 | _longjmp (catch->jmp, 1); | 1311 | _longjmp (catch->jmp, 1); |
| 1311 | } | 1312 | } |
| 1312 | 1313 | ||
| 1313 | DEFUN ("throw", Fthrow, Sthrow, 2, 2, 0, | 1314 | DEFUE ("throw", Fthrow, Sthrow, 2, 2, 0, |
| 1314 | doc: /* Throw to the catch for TAG and return VALUE from it. | 1315 | doc: /* Throw to the catch for TAG and return VALUE from it. |
| 1315 | Both TAG and VALUE are evalled. */) | 1316 | Both TAG and VALUE are evalled. */) |
| 1316 | (register Lisp_Object tag, Lisp_Object value) | 1317 | (register Lisp_Object tag, Lisp_Object value) |
| @@ -1648,7 +1649,7 @@ static Lisp_Object find_handler_clause (Lisp_Object, Lisp_Object, | |||
| 1648 | static int maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, | 1649 | static int maybe_call_debugger (Lisp_Object conditions, Lisp_Object sig, |
| 1649 | Lisp_Object data); | 1650 | Lisp_Object data); |
| 1650 | 1651 | ||
| 1651 | DEFUN ("signal", Fsignal, Ssignal, 2, 2, 0, | 1652 | DEFUE ("signal", Fsignal, Ssignal, 2, 2, 0, |
| 1652 | doc: /* Signal an error. Args are ERROR-SYMBOL and associated DATA. | 1653 | doc: /* Signal an error. Args are ERROR-SYMBOL and associated DATA. |
| 1653 | This function does not return. | 1654 | This function does not return. |
| 1654 | 1655 | ||
| @@ -2032,7 +2033,7 @@ error (const char *m, ...) | |||
| 2032 | va_end (ap); | 2033 | va_end (ap); |
| 2033 | } | 2034 | } |
| 2034 | 2035 | ||
| 2035 | DEFUN ("commandp", Fcommandp, Scommandp, 1, 2, 0, | 2036 | DEFUE ("commandp", Fcommandp, Scommandp, 1, 2, 0, |
| 2036 | doc: /* Non-nil if FUNCTION makes provisions for interactive calling. | 2037 | doc: /* Non-nil if FUNCTION makes provisions for interactive calling. |
| 2037 | This means it contains a description for how to read arguments to give it. | 2038 | This means it contains a description for how to read arguments to give it. |
| 2038 | The value is nil for an invalid function or a symbol with no function | 2039 | The value is nil for an invalid function or a symbol with no function |
| @@ -2213,7 +2214,7 @@ do_autoload (Lisp_Object fundef, Lisp_Object funname) | |||
| 2213 | } | 2214 | } |
| 2214 | 2215 | ||
| 2215 | 2216 | ||
| 2216 | DEFUN ("eval", Feval, Seval, 1, 2, 0, | 2217 | DEFUE ("eval", Feval, Seval, 1, 2, 0, |
| 2217 | doc: /* Evaluate FORM and return its value. | 2218 | doc: /* Evaluate FORM and return its value. |
| 2218 | If LEXICAL is t, evaluate using lexical scoping. */) | 2219 | If LEXICAL is t, evaluate using lexical scoping. */) |
| 2219 | (Lisp_Object form, Lisp_Object lexical) | 2220 | (Lisp_Object form, Lisp_Object lexical) |
| @@ -2449,7 +2450,7 @@ eval_sub (Lisp_Object form) | |||
| 2449 | return val; | 2450 | return val; |
| 2450 | } | 2451 | } |
| 2451 | 2452 | ||
| 2452 | DEFUN ("apply", Fapply, Sapply, 2, MANY, 0, | 2453 | DEFUE ("apply", Fapply, Sapply, 2, MANY, 0, |
| 2453 | doc: /* Call FUNCTION with our remaining args, using our last arg as list of args. | 2454 | doc: /* Call FUNCTION with our remaining args, using our last arg as list of args. |
| 2454 | Then return the value FUNCTION returns. | 2455 | Then return the value FUNCTION returns. |
| 2455 | Thus, (apply '+ 1 2 '(3 4)) returns 10. | 2456 | Thus, (apply '+ 1 2 '(3 4)) returns 10. |
| @@ -2544,7 +2545,7 @@ funcall_nil (size_t nargs, Lisp_Object *args) | |||
| 2544 | return Qnil; | 2545 | return Qnil; |
| 2545 | } | 2546 | } |
| 2546 | 2547 | ||
| 2547 | DEFUN ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0, | 2548 | DEFUE ("run-hooks", Frun_hooks, Srun_hooks, 0, MANY, 0, |
| 2548 | doc: /* Run each hook in HOOKS. | 2549 | doc: /* Run each hook in HOOKS. |
| 2549 | Each argument should be a symbol, a hook variable. | 2550 | Each argument should be a symbol, a hook variable. |
| 2550 | These symbols are processed in the order specified. | 2551 | These symbols are processed in the order specified. |
| @@ -2573,7 +2574,7 @@ usage: (run-hooks &rest HOOKS) */) | |||
| 2573 | return Qnil; | 2574 | return Qnil; |
| 2574 | } | 2575 | } |
| 2575 | 2576 | ||
| 2576 | DEFUN ("run-hook-with-args", Frun_hook_with_args, | 2577 | DEFUE ("run-hook-with-args", Frun_hook_with_args, |
| 2577 | Srun_hook_with_args, 1, MANY, 0, | 2578 | Srun_hook_with_args, 1, MANY, 0, |
| 2578 | doc: /* Run HOOK with the specified arguments ARGS. | 2579 | doc: /* Run HOOK with the specified arguments ARGS. |
| 2579 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil | 2580 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil |
| @@ -2619,7 +2620,7 @@ funcall_not (size_t nargs, Lisp_Object *args) | |||
| 2619 | return NILP (Ffuncall (nargs, args)) ? Qt : Qnil; | 2620 | return NILP (Ffuncall (nargs, args)) ? Qt : Qnil; |
| 2620 | } | 2621 | } |
| 2621 | 2622 | ||
| 2622 | DEFUN ("run-hook-with-args-until-failure", Frun_hook_with_args_until_failure, | 2623 | DEFUE ("run-hook-with-args-until-failure", Frun_hook_with_args_until_failure, |
| 2623 | Srun_hook_with_args_until_failure, 1, MANY, 0, | 2624 | Srun_hook_with_args_until_failure, 1, MANY, 0, |
| 2624 | doc: /* Run HOOK with the specified arguments ARGS. | 2625 | doc: /* Run HOOK with the specified arguments ARGS. |
| 2625 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil | 2626 | HOOK should be a symbol, a hook variable. If HOOK has a non-nil |
| @@ -2906,7 +2907,7 @@ call7 (Lisp_Object fn, Lisp_Object arg1, Lisp_Object arg2, Lisp_Object arg3, | |||
| 2906 | 2907 | ||
| 2907 | /* The caller should GCPRO all the elements of ARGS. */ | 2908 | /* The caller should GCPRO all the elements of ARGS. */ |
| 2908 | 2909 | ||
| 2909 | DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, | 2910 | DEFUE ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, |
| 2910 | doc: /* Non-nil if OBJECT is a function. */) | 2911 | doc: /* Non-nil if OBJECT is a function. */) |
| 2911 | (Lisp_Object object) | 2912 | (Lisp_Object object) |
| 2912 | { | 2913 | { |
| @@ -2939,7 +2940,7 @@ DEFUN ("functionp", Ffunctionp, Sfunctionp, 1, 1, 0, | |||
| 2939 | return Qnil; | 2940 | return Qnil; |
| 2940 | } | 2941 | } |
| 2941 | 2942 | ||
| 2942 | DEFUN ("funcall", Ffuncall, Sfuncall, 1, MANY, 0, | 2943 | DEFUE ("funcall", Ffuncall, Sfuncall, 1, MANY, 0, |
| 2943 | doc: /* Call first argument as a function, passing remaining arguments to it. | 2944 | doc: /* Call first argument as a function, passing remaining arguments to it. |
| 2944 | Return the value that function returns. | 2945 | Return the value that function returns. |
| 2945 | Thus, (funcall 'cons 'x 'y) returns (x . y). | 2946 | Thus, (funcall 'cons 'x 'y) returns (x . y). |
| @@ -3647,8 +3648,6 @@ mark_backtrace (void) | |||
| 3647 | } | 3648 | } |
| 3648 | } | 3649 | } |
| 3649 | 3650 | ||
| 3650 | EXFUN (Funintern, 2); | ||
| 3651 | |||
| 3652 | void | 3651 | void |
| 3653 | syms_of_eval (void) | 3652 | syms_of_eval (void) |
| 3654 | { | 3653 | { |
diff --git a/src/fileio.c b/src/fileio.c index f9923c420a3..5ad8b0a33a1 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -143,6 +143,7 @@ Lisp_Object Qfile_name_history; | |||
| 143 | 143 | ||
| 144 | Lisp_Object Qcar_less_than_car; | 144 | Lisp_Object Qcar_less_than_car; |
| 145 | 145 | ||
| 146 | INFUN (Fmake_symbolic_link, 3); | ||
| 146 | static int a_write (int, Lisp_Object, int, int, | 147 | static int a_write (int, Lisp_Object, int, int, |
| 147 | Lisp_Object *, struct coding_system *); | 148 | Lisp_Object *, struct coding_system *); |
| 148 | static int e_write (int, Lisp_Object, int, int, struct coding_system *); | 149 | static int e_write (int, Lisp_Object, int, int, struct coding_system *); |
| @@ -239,7 +240,8 @@ Lisp_Object Qwrite_region; | |||
| 239 | Lisp_Object Qverify_visited_file_modtime; | 240 | Lisp_Object Qverify_visited_file_modtime; |
| 240 | Lisp_Object Qset_visited_file_modtime; | 241 | Lisp_Object Qset_visited_file_modtime; |
| 241 | 242 | ||
| 242 | DEFUN ("find-file-name-handler", Ffind_file_name_handler, Sfind_file_name_handler, 2, 2, 0, | 243 | DEFUE ("find-file-name-handler", Ffind_file_name_handler, |
| 244 | Sfind_file_name_handler, 2, 2, 0, | ||
| 243 | doc: /* Return FILENAME's handler function for OPERATION, if it has one. | 245 | doc: /* Return FILENAME's handler function for OPERATION, if it has one. |
| 244 | Otherwise, return nil. | 246 | Otherwise, return nil. |
| 245 | A file name is handled if one of the regular expressions in | 247 | A file name is handled if one of the regular expressions in |
| @@ -299,7 +301,7 @@ use the standard functions without calling themselves recursively. */) | |||
| 299 | return result; | 301 | return result; |
| 300 | } | 302 | } |
| 301 | 303 | ||
| 302 | DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory, | 304 | DEFUE ("file-name-directory", Ffile_name_directory, Sfile_name_directory, |
| 303 | 1, 1, 0, | 305 | 1, 1, 0, |
| 304 | doc: /* Return the directory component in file name FILENAME. | 306 | doc: /* Return the directory component in file name FILENAME. |
| 305 | Return nil if FILENAME does not include a directory. | 307 | Return nil if FILENAME does not include a directory. |
| @@ -373,7 +375,7 @@ Given a Unix syntax file name, returns a string ending in slash. */) | |||
| 373 | return make_specified_string (beg, -1, p - beg, STRING_MULTIBYTE (filename)); | 375 | return make_specified_string (beg, -1, p - beg, STRING_MULTIBYTE (filename)); |
| 374 | } | 376 | } |
| 375 | 377 | ||
| 376 | DEFUN ("file-name-nondirectory", Ffile_name_nondirectory, | 378 | DEFUE ("file-name-nondirectory", Ffile_name_nondirectory, |
| 377 | Sfile_name_nondirectory, 1, 1, 0, | 379 | Sfile_name_nondirectory, 1, 1, 0, |
| 378 | doc: /* Return file name FILENAME sans its directory. | 380 | doc: /* Return file name FILENAME sans its directory. |
| 379 | For example, in a Unix-syntax file name, | 381 | For example, in a Unix-syntax file name, |
| @@ -408,7 +410,7 @@ or the entire name if it contains no slash. */) | |||
| 408 | return make_specified_string (p, -1, end - p, STRING_MULTIBYTE (filename)); | 410 | return make_specified_string (p, -1, end - p, STRING_MULTIBYTE (filename)); |
| 409 | } | 411 | } |
| 410 | 412 | ||
| 411 | DEFUN ("unhandled-file-name-directory", Funhandled_file_name_directory, | 413 | DEFUE ("unhandled-file-name-directory", Funhandled_file_name_directory, |
| 412 | Sunhandled_file_name_directory, 1, 1, 0, | 414 | Sunhandled_file_name_directory, 1, 1, 0, |
| 413 | doc: /* Return a directly usable directory name somehow associated with FILENAME. | 415 | doc: /* Return a directly usable directory name somehow associated with FILENAME. |
| 414 | A `directly usable' directory name is one that may be used without the | 416 | A `directly usable' directory name is one that may be used without the |
| @@ -460,7 +462,7 @@ file_name_as_directory (char *out, const char *in) | |||
| 460 | return out; | 462 | return out; |
| 461 | } | 463 | } |
| 462 | 464 | ||
| 463 | DEFUN ("file-name-as-directory", Ffile_name_as_directory, | 465 | DEFUE ("file-name-as-directory", Ffile_name_as_directory, |
| 464 | Sfile_name_as_directory, 1, 1, 0, | 466 | Sfile_name_as_directory, 1, 1, 0, |
| 465 | doc: /* Return a string representing the file name FILE interpreted as a directory. | 467 | doc: /* Return a string representing the file name FILE interpreted as a directory. |
| 466 | This operation exists because a directory is also a file, but its name as | 468 | This operation exists because a directory is also a file, but its name as |
| @@ -519,7 +521,7 @@ directory_file_name (char *src, char *dst) | |||
| 519 | return 1; | 521 | return 1; |
| 520 | } | 522 | } |
| 521 | 523 | ||
| 522 | DEFUN ("directory-file-name", Fdirectory_file_name, Sdirectory_file_name, | 524 | DEFUE ("directory-file-name", Fdirectory_file_name, Sdirectory_file_name, |
| 523 | 1, 1, 0, | 525 | 1, 1, 0, |
| 524 | doc: /* Returns the file name of the directory named DIRECTORY. | 526 | doc: /* Returns the file name of the directory named DIRECTORY. |
| 525 | This is the name of the file that holds the data for the directory DIRECTORY. | 527 | This is the name of the file that holds the data for the directory DIRECTORY. |
| @@ -701,7 +703,7 @@ probably use `make-temp-file' instead, except in three circumstances: | |||
| 701 | 703 | ||
| 702 | 704 | ||
| 703 | 705 | ||
| 704 | DEFUN ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, | 706 | DEFUE ("expand-file-name", Fexpand_file_name, Sexpand_file_name, 1, 2, 0, |
| 705 | doc: /* Convert filename NAME to absolute, and canonicalize it. | 707 | doc: /* Convert filename NAME to absolute, and canonicalize it. |
| 706 | Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative | 708 | Second arg DEFAULT-DIRECTORY is directory to start with if NAME is relative |
| 707 | \(does not start with slash or tilde); if DEFAULT-DIRECTORY is nil or missing, | 709 | \(does not start with slash or tilde); if DEFAULT-DIRECTORY is nil or missing, |
| @@ -1500,7 +1502,7 @@ search_embedded_absfilename (char *nm, char *endp) | |||
| 1500 | return NULL; | 1502 | return NULL; |
| 1501 | } | 1503 | } |
| 1502 | 1504 | ||
| 1503 | DEFUN ("substitute-in-file-name", Fsubstitute_in_file_name, | 1505 | DEFUE ("substitute-in-file-name", Fsubstitute_in_file_name, |
| 1504 | Ssubstitute_in_file_name, 1, 1, 0, | 1506 | Ssubstitute_in_file_name, 1, 1, 0, |
| 1505 | doc: /* Substitute environment variables referred to in FILENAME. | 1507 | doc: /* Substitute environment variables referred to in FILENAME. |
| 1506 | `$FOO' where FOO is an environment variable name means to substitute | 1508 | `$FOO' where FOO is an environment variable name means to substitute |
| @@ -2343,7 +2345,7 @@ This happens for interactive use with M-x. */) | |||
| 2343 | } | 2345 | } |
| 2344 | 2346 | ||
| 2345 | 2347 | ||
| 2346 | DEFUN ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p, | 2348 | DEFUE ("file-name-absolute-p", Ffile_name_absolute_p, Sfile_name_absolute_p, |
| 2347 | 1, 1, 0, | 2349 | 1, 1, 0, |
| 2348 | doc: /* Return t if file FILENAME specifies an absolute file name. | 2350 | doc: /* Return t if file FILENAME specifies an absolute file name. |
| 2349 | On Unix, this is a name starting with a `/' or a `~'. */) | 2351 | On Unix, this is a name starting with a `/' or a `~'. */) |
| @@ -2399,7 +2401,7 @@ check_writable (const char *filename) | |||
| 2399 | #endif /* not MSDOS */ | 2401 | #endif /* not MSDOS */ |
| 2400 | } | 2402 | } |
| 2401 | 2403 | ||
| 2402 | DEFUN ("file-exists-p", Ffile_exists_p, Sfile_exists_p, 1, 1, 0, | 2404 | DEFUE ("file-exists-p", Ffile_exists_p, Sfile_exists_p, 1, 1, 0, |
| 2403 | doc: /* Return t if file FILENAME exists (whether or not you can read it.) | 2405 | doc: /* Return t if file FILENAME exists (whether or not you can read it.) |
| 2404 | See also `file-readable-p' and `file-attributes'. | 2406 | See also `file-readable-p' and `file-attributes'. |
| 2405 | This returns nil for a symlink to a nonexistent file. | 2407 | This returns nil for a symlink to a nonexistent file. |
| @@ -2446,7 +2448,7 @@ For a directory, this means you can access files in that directory. */) | |||
| 2446 | return (check_executable (SSDATA (absname)) ? Qt : Qnil); | 2448 | return (check_executable (SSDATA (absname)) ? Qt : Qnil); |
| 2447 | } | 2449 | } |
| 2448 | 2450 | ||
| 2449 | DEFUN ("file-readable-p", Ffile_readable_p, Sfile_readable_p, 1, 1, 0, | 2451 | DEFUE ("file-readable-p", Ffile_readable_p, Sfile_readable_p, 1, 1, 0, |
| 2450 | doc: /* Return t if file FILENAME exists and you can read it. | 2452 | doc: /* Return t if file FILENAME exists and you can read it. |
| 2451 | See also `file-exists-p' and `file-attributes'. */) | 2453 | See also `file-exists-p' and `file-attributes'. */) |
| 2452 | (Lisp_Object filename) | 2454 | (Lisp_Object filename) |
| @@ -2568,7 +2570,7 @@ If there is no error, returns nil. */) | |||
| 2568 | return Qnil; | 2570 | return Qnil; |
| 2569 | } | 2571 | } |
| 2570 | 2572 | ||
| 2571 | DEFUN ("file-symlink-p", Ffile_symlink_p, Sfile_symlink_p, 1, 1, 0, | 2573 | DEFUE ("file-symlink-p", Ffile_symlink_p, Sfile_symlink_p, 1, 1, 0, |
| 2572 | doc: /* Return non-nil if file FILENAME is the name of a symbolic link. | 2574 | doc: /* Return non-nil if file FILENAME is the name of a symbolic link. |
| 2573 | The value is the link target, as a string. | 2575 | The value is the link target, as a string. |
| 2574 | Otherwise it returns nil. | 2576 | Otherwise it returns nil. |
| @@ -2606,7 +2608,7 @@ points to a nonexistent file. */) | |||
| 2606 | return val; | 2608 | return val; |
| 2607 | } | 2609 | } |
| 2608 | 2610 | ||
| 2609 | DEFUN ("file-directory-p", Ffile_directory_p, Sfile_directory_p, 1, 1, 0, | 2611 | DEFUE ("file-directory-p", Ffile_directory_p, Sfile_directory_p, 1, 1, 0, |
| 2610 | doc: /* Return t if FILENAME names an existing directory. | 2612 | doc: /* Return t if FILENAME names an existing directory. |
| 2611 | Symbolic links to directories count as directories. | 2613 | Symbolic links to directories count as directories. |
| 2612 | See `file-symlink-p' to distinguish symlinks. */) | 2614 | See `file-symlink-p' to distinguish symlinks. */) |
| @@ -2631,7 +2633,8 @@ See `file-symlink-p' to distinguish symlinks. */) | |||
| 2631 | return S_ISDIR (st.st_mode) ? Qt : Qnil; | 2633 | return S_ISDIR (st.st_mode) ? Qt : Qnil; |
| 2632 | } | 2634 | } |
| 2633 | 2635 | ||
| 2634 | DEFUN ("file-accessible-directory-p", Ffile_accessible_directory_p, Sfile_accessible_directory_p, 1, 1, 0, | 2636 | DEFUE ("file-accessible-directory-p", Ffile_accessible_directory_p, |
| 2637 | Sfile_accessible_directory_p, 1, 1, 0, | ||
| 2635 | doc: /* Return t if file FILENAME names a directory you can open. | 2638 | doc: /* Return t if file FILENAME names a directory you can open. |
| 2636 | For the value to be t, FILENAME must specify the name of a directory as a file, | 2639 | For the value to be t, FILENAME must specify the name of a directory as a file, |
| 2637 | and the directory must allow you to open files in it. In order to use a | 2640 | and the directory must allow you to open files in it. In order to use a |
| @@ -4350,7 +4353,7 @@ choose_write_coding_system (Lisp_Object start, Lisp_Object end, Lisp_Object file | |||
| 4350 | return val; | 4353 | return val; |
| 4351 | } | 4354 | } |
| 4352 | 4355 | ||
| 4353 | DEFUN ("write-region", Fwrite_region, Swrite_region, 3, 7, | 4356 | DEFUE ("write-region", Fwrite_region, Swrite_region, 3, 7, |
| 4354 | "r\nFWrite region to file: \ni\ni\ni\np", | 4357 | "r\nFWrite region to file: \ni\ni\ni\np", |
| 4355 | doc: /* Write current region into specified file. | 4358 | doc: /* Write current region into specified file. |
| 4356 | When called from a program, requires three arguments: | 4359 | When called from a program, requires three arguments: |
| @@ -4911,7 +4914,7 @@ e_write (int desc, Lisp_Object string, int start, int end, struct coding_system | |||
| 4911 | return 0; | 4914 | return 0; |
| 4912 | } | 4915 | } |
| 4913 | 4916 | ||
| 4914 | DEFUN ("verify-visited-file-modtime", Fverify_visited_file_modtime, | 4917 | DEFUE ("verify-visited-file-modtime", Fverify_visited_file_modtime, |
| 4915 | Sverify_visited_file_modtime, 0, 1, 0, | 4918 | Sverify_visited_file_modtime, 0, 1, 0, |
| 4916 | doc: /* Return t if last mod time of BUF's visited file matches what BUF records. | 4919 | doc: /* Return t if last mod time of BUF's visited file matches what BUF records. |
| 4917 | This means that the file has not been changed since it was visited or saved. | 4920 | This means that the file has not been changed since it was visited or saved. |
| @@ -5132,7 +5135,7 @@ do_auto_save_eh (Lisp_Object ignore) | |||
| 5132 | return Qnil; | 5135 | return Qnil; |
| 5133 | } | 5136 | } |
| 5134 | 5137 | ||
| 5135 | DEFUN ("do-auto-save", Fdo_auto_save, Sdo_auto_save, 0, 2, "", | 5138 | DEFUE ("do-auto-save", Fdo_auto_save, Sdo_auto_save, 0, 2, "", |
| 5136 | doc: /* Auto-save all buffers that need it. | 5139 | doc: /* Auto-save all buffers that need it. |
| 5137 | This is all buffers that have auto-saving enabled | 5140 | This is all buffers that have auto-saving enabled |
| 5138 | and are changed since last auto-saved. | 5141 | and are changed since last auto-saved. |
diff --git a/src/filelock.c b/src/filelock.c index 13b27c72f19..c6b1617770c 100644 --- a/src/filelock.c +++ b/src/filelock.c | |||
| @@ -639,7 +639,7 @@ or else nothing is done if current buffer isn't visiting a file. */) | |||
| 639 | return Qnil; | 639 | return Qnil; |
| 640 | } | 640 | } |
| 641 | 641 | ||
| 642 | DEFUN ("unlock-buffer", Funlock_buffer, Sunlock_buffer, | 642 | DEFUE ("unlock-buffer", Funlock_buffer, Sunlock_buffer, |
| 643 | 0, 0, 0, | 643 | 0, 0, 0, |
| 644 | doc: /* Unlock the file visited in the current buffer. | 644 | doc: /* Unlock the file visited in the current buffer. |
| 645 | If the buffer is not modified, this does nothing because the file | 645 | If the buffer is not modified, this does nothing because the file |
diff --git a/src/floatfns.c b/src/floatfns.c index 1232fc0afa1..345b3b94947 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -683,7 +683,7 @@ DEFUN ("abs", Fabs, Sabs, 1, 1, 0, | |||
| 683 | return arg; | 683 | return arg; |
| 684 | } | 684 | } |
| 685 | 685 | ||
| 686 | DEFUN ("float", Ffloat, Sfloat, 1, 1, 0, | 686 | DEFUE ("float", Ffloat, Sfloat, 1, 1, 0, |
| 687 | doc: /* Return the floating point number equal to ARG. */) | 687 | doc: /* Return the floating point number equal to ARG. */) |
| 688 | (register Lisp_Object arg) | 688 | (register Lisp_Object arg) |
| 689 | { | 689 | { |
| @@ -886,7 +886,7 @@ systems, but 2 on others. */) | |||
| 886 | return rounding_driver (arg, divisor, emacs_rint, round2, "round"); | 886 | return rounding_driver (arg, divisor, emacs_rint, round2, "round"); |
| 887 | } | 887 | } |
| 888 | 888 | ||
| 889 | DEFUN ("truncate", Ftruncate, Struncate, 1, 2, 0, | 889 | DEFUE ("truncate", Ftruncate, Struncate, 1, 2, 0, |
| 890 | doc: /* Truncate a floating point number to an int. | 890 | doc: /* Truncate a floating point number to an int. |
| 891 | Rounds ARG toward zero. | 891 | Rounds ARG toward zero. |
| 892 | With optional DIVISOR, truncate ARG/DIVISOR. */) | 892 | With optional DIVISOR, truncate ARG/DIVISOR. */) |
| @@ -61,7 +61,7 @@ static int internal_equal (Lisp_Object , Lisp_Object, int, int); | |||
| 61 | extern long time (); | 61 | extern long time (); |
| 62 | #endif | 62 | #endif |
| 63 | 63 | ||
| 64 | DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0, | 64 | DEFUE ("identity", Fidentity, Sidentity, 1, 1, 0, |
| 65 | doc: /* Return the argument unchanged. */) | 65 | doc: /* Return the argument unchanged. */) |
| 66 | (Lisp_Object arg) | 66 | (Lisp_Object arg) |
| 67 | { | 67 | { |
| @@ -105,7 +105,7 @@ Other values of LIMIT are ignored. */) | |||
| 105 | 105 | ||
| 106 | /* Random data-structure functions */ | 106 | /* Random data-structure functions */ |
| 107 | 107 | ||
| 108 | DEFUN ("length", Flength, Slength, 1, 1, 0, | 108 | DEFUE ("length", Flength, Slength, 1, 1, 0, |
| 109 | doc: /* Return the length of vector, list or string SEQUENCE. | 109 | doc: /* Return the length of vector, list or string SEQUENCE. |
| 110 | A byte-code function object is also allowed. | 110 | A byte-code function object is also allowed. |
| 111 | If the string contains multibyte characters, this is not necessarily | 111 | If the string contains multibyte characters, this is not necessarily |
| @@ -190,7 +190,7 @@ If STRING is multibyte, this may be greater than the length of STRING. */) | |||
| 190 | return make_number (SBYTES (string)); | 190 | return make_number (SBYTES (string)); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | DEFUN ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, | 193 | DEFUE ("string-equal", Fstring_equal, Sstring_equal, 2, 2, 0, |
| 194 | doc: /* Return t if two strings have identical contents. | 194 | doc: /* Return t if two strings have identical contents. |
| 195 | Case is significant, but text properties are ignored. | 195 | Case is significant, but text properties are ignored. |
| 196 | Symbols are also allowed; their print names are used instead. */) | 196 | Symbols are also allowed; their print names are used instead. */) |
| @@ -210,7 +210,7 @@ Symbols are also allowed; their print names are used instead. */) | |||
| 210 | return Qt; | 210 | return Qt; |
| 211 | } | 211 | } |
| 212 | 212 | ||
| 213 | DEFUN ("compare-strings", Fcompare_strings, Scompare_strings, 6, 7, 0, | 213 | DEFUE ("compare-strings", Fcompare_strings, Scompare_strings, 6, 7, 0, |
| 214 | doc: /* Compare the contents of two strings, converting to multibyte if needed. | 214 | doc: /* Compare the contents of two strings, converting to multibyte if needed. |
| 215 | In string STR1, skip the first START1 characters and stop at END1. | 215 | In string STR1, skip the first START1 characters and stop at END1. |
| 216 | In string STR2, skip the first START2 characters and stop at END2. | 216 | In string STR2, skip the first START2 characters and stop at END2. |
| @@ -311,7 +311,7 @@ If string STR1 is greater, the value is a positive number N; | |||
| 311 | return Qt; | 311 | return Qt; |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | DEFUN ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0, | 314 | DEFUE ("string-lessp", Fstring_lessp, Sstring_lessp, 2, 2, 0, |
| 315 | doc: /* Return t if first arg string is less than second in lexicographic order. | 315 | doc: /* Return t if first arg string is less than second in lexicographic order. |
| 316 | Case is significant. | 316 | Case is significant. |
| 317 | Symbols are also allowed; their print names are used instead. */) | 317 | Symbols are also allowed; their print names are used instead. */) |
| @@ -372,7 +372,7 @@ concat3 (Lisp_Object s1, Lisp_Object s2, Lisp_Object s3) | |||
| 372 | return concat (3, args, Lisp_String, 0); | 372 | return concat (3, args, Lisp_String, 0); |
| 373 | } | 373 | } |
| 374 | 374 | ||
| 375 | DEFUN ("append", Fappend, Sappend, 0, MANY, 0, | 375 | DEFUE ("append", Fappend, Sappend, 0, MANY, 0, |
| 376 | doc: /* Concatenate all the arguments and make the result a list. | 376 | doc: /* Concatenate all the arguments and make the result a list. |
| 377 | The result is a list whose elements are the elements of all the arguments. | 377 | The result is a list whose elements are the elements of all the arguments. |
| 378 | Each argument may be a list, vector or string. | 378 | Each argument may be a list, vector or string. |
| @@ -383,7 +383,7 @@ usage: (append &rest SEQUENCES) */) | |||
| 383 | return concat (nargs, args, Lisp_Cons, 1); | 383 | return concat (nargs, args, Lisp_Cons, 1); |
| 384 | } | 384 | } |
| 385 | 385 | ||
| 386 | DEFUN ("concat", Fconcat, Sconcat, 0, MANY, 0, | 386 | DEFUE ("concat", Fconcat, Sconcat, 0, MANY, 0, |
| 387 | doc: /* Concatenate all the arguments and make the result a string. | 387 | doc: /* Concatenate all the arguments and make the result a string. |
| 388 | The result is a string whose elements are the elements of all the arguments. | 388 | The result is a string whose elements are the elements of all the arguments. |
| 389 | Each argument may be a string or a list or vector of characters (integers). | 389 | Each argument may be a string or a list or vector of characters (integers). |
| @@ -393,7 +393,7 @@ usage: (concat &rest SEQUENCES) */) | |||
| 393 | return concat (nargs, args, Lisp_String, 0); | 393 | return concat (nargs, args, Lisp_String, 0); |
| 394 | } | 394 | } |
| 395 | 395 | ||
| 396 | DEFUN ("vconcat", Fvconcat, Svconcat, 0, MANY, 0, | 396 | DEFUE ("vconcat", Fvconcat, Svconcat, 0, MANY, 0, |
| 397 | doc: /* Concatenate all the arguments and make the result a vector. | 397 | doc: /* Concatenate all the arguments and make the result a vector. |
| 398 | The result is a vector whose elements are the elements of all the arguments. | 398 | The result is a vector whose elements are the elements of all the arguments. |
| 399 | Each argument may be a list, vector or string. | 399 | Each argument may be a list, vector or string. |
| @@ -404,7 +404,7 @@ usage: (vconcat &rest SEQUENCES) */) | |||
| 404 | } | 404 | } |
| 405 | 405 | ||
| 406 | 406 | ||
| 407 | DEFUN ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0, | 407 | DEFUE ("copy-sequence", Fcopy_sequence, Scopy_sequence, 1, 1, 0, |
| 408 | doc: /* Return a copy of a list, vector, string or char-table. | 408 | doc: /* Return a copy of a list, vector, string or char-table. |
| 409 | The elements of a list or vector are not copied; they are shared | 409 | The elements of a list or vector are not copied; they are shared |
| 410 | with the original. */) | 410 | with the original. */) |
| @@ -944,7 +944,7 @@ string_make_unibyte (Lisp_Object string) | |||
| 944 | return ret; | 944 | return ret; |
| 945 | } | 945 | } |
| 946 | 946 | ||
| 947 | DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte, | 947 | DEFUE ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte, |
| 948 | 1, 1, 0, | 948 | 1, 1, 0, |
| 949 | doc: /* Return the multibyte equivalent of STRING. | 949 | doc: /* Return the multibyte equivalent of STRING. |
| 950 | If STRING is unibyte and contains non-ASCII characters, the function | 950 | If STRING is unibyte and contains non-ASCII characters, the function |
| @@ -962,7 +962,7 @@ string the same way whether it is unibyte or multibyte.) */) | |||
| 962 | return string_make_multibyte (string); | 962 | return string_make_multibyte (string); |
| 963 | } | 963 | } |
| 964 | 964 | ||
| 965 | DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, | 965 | DEFUE ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, |
| 966 | 1, 1, 0, | 966 | 1, 1, 0, |
| 967 | doc: /* Return the unibyte equivalent of STRING. | 967 | doc: /* Return the unibyte equivalent of STRING. |
| 968 | Multibyte character codes are converted to unibyte according to | 968 | Multibyte character codes are converted to unibyte according to |
| @@ -976,7 +976,7 @@ the low 8 bits of each character. */) | |||
| 976 | return string_make_unibyte (string); | 976 | return string_make_unibyte (string); |
| 977 | } | 977 | } |
| 978 | 978 | ||
| 979 | DEFUN ("string-as-unibyte", Fstring_as_unibyte, Sstring_as_unibyte, | 979 | DEFUE ("string-as-unibyte", Fstring_as_unibyte, Sstring_as_unibyte, |
| 980 | 1, 1, 0, | 980 | 1, 1, 0, |
| 981 | doc: /* Return a unibyte string with the same individual bytes as STRING. | 981 | doc: /* Return a unibyte string with the same individual bytes as STRING. |
| 982 | If STRING is unibyte, the result is STRING itself. | 982 | If STRING is unibyte, the result is STRING itself. |
| @@ -1000,7 +1000,7 @@ If STRING is multibyte and contains a character of charset | |||
| 1000 | return string; | 1000 | return string; |
| 1001 | } | 1001 | } |
| 1002 | 1002 | ||
| 1003 | DEFUN ("string-as-multibyte", Fstring_as_multibyte, Sstring_as_multibyte, | 1003 | DEFUE ("string-as-multibyte", Fstring_as_multibyte, Sstring_as_multibyte, |
| 1004 | 1, 1, 0, | 1004 | 1, 1, 0, |
| 1005 | doc: /* Return a multibyte string with the same individual bytes as STRING. | 1005 | doc: /* Return a multibyte string with the same individual bytes as STRING. |
| 1006 | If STRING is multibyte, the result is STRING itself. | 1006 | If STRING is multibyte, the result is STRING itself. |
| @@ -1038,7 +1038,7 @@ If you're not sure, whether to use `string-as-multibyte' or | |||
| 1038 | return string; | 1038 | return string; |
| 1039 | } | 1039 | } |
| 1040 | 1040 | ||
| 1041 | DEFUN ("string-to-multibyte", Fstring_to_multibyte, Sstring_to_multibyte, | 1041 | DEFUE ("string-to-multibyte", Fstring_to_multibyte, Sstring_to_multibyte, |
| 1042 | 1, 1, 0, | 1042 | 1, 1, 0, |
| 1043 | doc: /* Return a multibyte string with the same individual chars as STRING. | 1043 | doc: /* Return a multibyte string with the same individual chars as STRING. |
| 1044 | If STRING is multibyte, the result is STRING itself. | 1044 | If STRING is multibyte, the result is STRING itself. |
| @@ -1084,7 +1084,7 @@ an error is signaled. */) | |||
| 1084 | } | 1084 | } |
| 1085 | 1085 | ||
| 1086 | 1086 | ||
| 1087 | DEFUN ("copy-alist", Fcopy_alist, Scopy_alist, 1, 1, 0, | 1087 | DEFUE ("copy-alist", Fcopy_alist, Scopy_alist, 1, 1, 0, |
| 1088 | doc: /* Return a copy of ALIST. | 1088 | doc: /* Return a copy of ALIST. |
| 1089 | This is an alist which represents the same mapping from objects to objects, | 1089 | This is an alist which represents the same mapping from objects to objects, |
| 1090 | but does not share the alist structure with ALIST. | 1090 | but does not share the alist structure with ALIST. |
| @@ -1110,7 +1110,7 @@ Elements of ALIST that are not conses are also shared. */) | |||
| 1110 | return alist; | 1110 | return alist; |
| 1111 | } | 1111 | } |
| 1112 | 1112 | ||
| 1113 | DEFUN ("substring", Fsubstring, Ssubstring, 2, 3, 0, | 1113 | DEFUE ("substring", Fsubstring, Ssubstring, 2, 3, 0, |
| 1114 | doc: /* Return a new string whose contents are a substring of STRING. | 1114 | doc: /* Return a new string whose contents are a substring of STRING. |
| 1115 | The returned string consists of the characters between index FROM | 1115 | The returned string consists of the characters between index FROM |
| 1116 | \(inclusive) and index TO (exclusive) of STRING. FROM and TO are | 1116 | \(inclusive) and index TO (exclusive) of STRING. FROM and TO are |
| @@ -1269,7 +1269,7 @@ substring_both (Lisp_Object string, EMACS_INT from, EMACS_INT from_byte, | |||
| 1269 | return res; | 1269 | return res; |
| 1270 | } | 1270 | } |
| 1271 | 1271 | ||
| 1272 | DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, | 1272 | DEFUE ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, |
| 1273 | doc: /* Take cdr N times on LIST, return the result. */) | 1273 | doc: /* Take cdr N times on LIST, return the result. */) |
| 1274 | (Lisp_Object n, Lisp_Object list) | 1274 | (Lisp_Object n, Lisp_Object list) |
| 1275 | { | 1275 | { |
| @@ -1285,7 +1285,7 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, | |||
| 1285 | return list; | 1285 | return list; |
| 1286 | } | 1286 | } |
| 1287 | 1287 | ||
| 1288 | DEFUN ("nth", Fnth, Snth, 2, 2, 0, | 1288 | DEFUE ("nth", Fnth, Snth, 2, 2, 0, |
| 1289 | doc: /* Return the Nth element of LIST. | 1289 | doc: /* Return the Nth element of LIST. |
| 1290 | N counts from zero. If LIST is not that long, nil is returned. */) | 1290 | N counts from zero. If LIST is not that long, nil is returned. */) |
| 1291 | (Lisp_Object n, Lisp_Object list) | 1291 | (Lisp_Object n, Lisp_Object list) |
| @@ -1293,7 +1293,7 @@ N counts from zero. If LIST is not that long, nil is returned. */) | |||
| 1293 | return Fcar (Fnthcdr (n, list)); | 1293 | return Fcar (Fnthcdr (n, list)); |
| 1294 | } | 1294 | } |
| 1295 | 1295 | ||
| 1296 | DEFUN ("elt", Felt, Selt, 2, 2, 0, | 1296 | DEFUE ("elt", Felt, Selt, 2, 2, 0, |
| 1297 | doc: /* Return element of SEQUENCE at index N. */) | 1297 | doc: /* Return element of SEQUENCE at index N. */) |
| 1298 | (register Lisp_Object sequence, Lisp_Object n) | 1298 | (register Lisp_Object sequence, Lisp_Object n) |
| 1299 | { | 1299 | { |
| @@ -1306,7 +1306,7 @@ DEFUN ("elt", Felt, Selt, 2, 2, 0, | |||
| 1306 | return Faref (sequence, n); | 1306 | return Faref (sequence, n); |
| 1307 | } | 1307 | } |
| 1308 | 1308 | ||
| 1309 | DEFUN ("member", Fmember, Smember, 2, 2, 0, | 1309 | DEFUE ("member", Fmember, Smember, 2, 2, 0, |
| 1310 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. | 1310 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `equal'. |
| 1311 | The value is actually the tail of LIST whose car is ELT. */) | 1311 | The value is actually the tail of LIST whose car is ELT. */) |
| 1312 | (register Lisp_Object elt, Lisp_Object list) | 1312 | (register Lisp_Object elt, Lisp_Object list) |
| @@ -1324,7 +1324,7 @@ The value is actually the tail of LIST whose car is ELT. */) | |||
| 1324 | return Qnil; | 1324 | return Qnil; |
| 1325 | } | 1325 | } |
| 1326 | 1326 | ||
| 1327 | DEFUN ("memq", Fmemq, Smemq, 2, 2, 0, | 1327 | DEFUE ("memq", Fmemq, Smemq, 2, 2, 0, |
| 1328 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. | 1328 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eq'. |
| 1329 | The value is actually the tail of LIST whose car is ELT. */) | 1329 | The value is actually the tail of LIST whose car is ELT. */) |
| 1330 | (register Lisp_Object elt, Lisp_Object list) | 1330 | (register Lisp_Object elt, Lisp_Object list) |
| @@ -1372,7 +1372,7 @@ The value is actually the tail of LIST whose car is ELT. */) | |||
| 1372 | return Qnil; | 1372 | return Qnil; |
| 1373 | } | 1373 | } |
| 1374 | 1374 | ||
| 1375 | DEFUN ("assq", Fassq, Sassq, 2, 2, 0, | 1375 | DEFUE ("assq", Fassq, Sassq, 2, 2, 0, |
| 1376 | doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST. | 1376 | doc: /* Return non-nil if KEY is `eq' to the car of an element of LIST. |
| 1377 | The value is actually the first element of LIST whose car is KEY. | 1377 | The value is actually the first element of LIST whose car is KEY. |
| 1378 | Elements of LIST that are not conses are ignored. */) | 1378 | Elements of LIST that are not conses are ignored. */) |
| @@ -1418,7 +1418,7 @@ assq_no_quit (Lisp_Object key, Lisp_Object list) | |||
| 1418 | return CAR_SAFE (list); | 1418 | return CAR_SAFE (list); |
| 1419 | } | 1419 | } |
| 1420 | 1420 | ||
| 1421 | DEFUN ("assoc", Fassoc, Sassoc, 2, 2, 0, | 1421 | DEFUE ("assoc", Fassoc, Sassoc, 2, 2, 0, |
| 1422 | doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST. | 1422 | doc: /* Return non-nil if KEY is `equal' to the car of an element of LIST. |
| 1423 | The value is actually the first element of LIST whose car equals KEY. */) | 1423 | The value is actually the first element of LIST whose car equals KEY. */) |
| 1424 | (Lisp_Object key, Lisp_Object list) | 1424 | (Lisp_Object key, Lisp_Object list) |
| @@ -1469,7 +1469,7 @@ assoc_no_quit (Lisp_Object key, Lisp_Object list) | |||
| 1469 | return CONSP (list) ? XCAR (list) : Qnil; | 1469 | return CONSP (list) ? XCAR (list) : Qnil; |
| 1470 | } | 1470 | } |
| 1471 | 1471 | ||
| 1472 | DEFUN ("rassq", Frassq, Srassq, 2, 2, 0, | 1472 | DEFUE ("rassq", Frassq, Srassq, 2, 2, 0, |
| 1473 | doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST. | 1473 | doc: /* Return non-nil if KEY is `eq' to the cdr of an element of LIST. |
| 1474 | The value is actually the first element of LIST whose cdr is KEY. */) | 1474 | The value is actually the first element of LIST whose cdr is KEY. */) |
| 1475 | (register Lisp_Object key, Lisp_Object list) | 1475 | (register Lisp_Object key, Lisp_Object list) |
| @@ -1500,7 +1500,7 @@ The value is actually the first element of LIST whose cdr is KEY. */) | |||
| 1500 | return CAR (list); | 1500 | return CAR (list); |
| 1501 | } | 1501 | } |
| 1502 | 1502 | ||
| 1503 | DEFUN ("rassoc", Frassoc, Srassoc, 2, 2, 0, | 1503 | DEFUE ("rassoc", Frassoc, Srassoc, 2, 2, 0, |
| 1504 | doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST. | 1504 | doc: /* Return non-nil if KEY is `equal' to the cdr of an element of LIST. |
| 1505 | The value is actually the first element of LIST whose cdr equals KEY. */) | 1505 | The value is actually the first element of LIST whose cdr equals KEY. */) |
| 1506 | (Lisp_Object key, Lisp_Object list) | 1506 | (Lisp_Object key, Lisp_Object list) |
| @@ -1536,7 +1536,7 @@ The value is actually the first element of LIST whose cdr equals KEY. */) | |||
| 1536 | return CAR (list); | 1536 | return CAR (list); |
| 1537 | } | 1537 | } |
| 1538 | 1538 | ||
| 1539 | DEFUN ("delq", Fdelq, Sdelq, 2, 2, 0, | 1539 | DEFUE ("delq", Fdelq, Sdelq, 2, 2, 0, |
| 1540 | doc: /* Delete by side effect any occurrences of ELT as a member of LIST. | 1540 | doc: /* Delete by side effect any occurrences of ELT as a member of LIST. |
| 1541 | The modified LIST is returned. Comparison is done with `eq'. | 1541 | The modified LIST is returned. Comparison is done with `eq'. |
| 1542 | If the first member of LIST is ELT, there is no way to remove it by side effect; | 1542 | If the first member of LIST is ELT, there is no way to remove it by side effect; |
| @@ -1568,7 +1568,7 @@ to be sure of changing the value of `foo'. */) | |||
| 1568 | return list; | 1568 | return list; |
| 1569 | } | 1569 | } |
| 1570 | 1570 | ||
| 1571 | DEFUN ("delete", Fdelete, Sdelete, 2, 2, 0, | 1571 | DEFUE ("delete", Fdelete, Sdelete, 2, 2, 0, |
| 1572 | doc: /* Delete by side effect any occurrences of ELT as a member of SEQ. | 1572 | doc: /* Delete by side effect any occurrences of ELT as a member of SEQ. |
| 1573 | SEQ must be a list, a vector, or a string. | 1573 | SEQ must be a list, a vector, or a string. |
| 1574 | The modified SEQ is returned. Comparison is done with `equal'. | 1574 | The modified SEQ is returned. Comparison is done with `equal'. |
| @@ -1688,7 +1688,7 @@ to be sure of changing the value of `foo'. */) | |||
| 1688 | return seq; | 1688 | return seq; |
| 1689 | } | 1689 | } |
| 1690 | 1690 | ||
| 1691 | DEFUN ("nreverse", Fnreverse, Snreverse, 1, 1, 0, | 1691 | DEFUE ("nreverse", Fnreverse, Snreverse, 1, 1, 0, |
| 1692 | doc: /* Reverse LIST by modifying cdr pointers. | 1692 | doc: /* Reverse LIST by modifying cdr pointers. |
| 1693 | Return the reversed list. */) | 1693 | Return the reversed list. */) |
| 1694 | (Lisp_Object list) | 1694 | (Lisp_Object list) |
| @@ -1710,7 +1710,7 @@ Return the reversed list. */) | |||
| 1710 | return prev; | 1710 | return prev; |
| 1711 | } | 1711 | } |
| 1712 | 1712 | ||
| 1713 | DEFUN ("reverse", Freverse, Sreverse, 1, 1, 0, | 1713 | DEFUE ("reverse", Freverse, Sreverse, 1, 1, 0, |
| 1714 | doc: /* Reverse LIST, copying. Return the reversed list. | 1714 | doc: /* Reverse LIST, copying. Return the reversed list. |
| 1715 | See also the function `nreverse', which is used more often. */) | 1715 | See also the function `nreverse', which is used more often. */) |
| 1716 | (Lisp_Object list) | 1716 | (Lisp_Object list) |
| @@ -1728,7 +1728,7 @@ See also the function `nreverse', which is used more often. */) | |||
| 1728 | 1728 | ||
| 1729 | Lisp_Object merge (Lisp_Object org_l1, Lisp_Object org_l2, Lisp_Object pred); | 1729 | Lisp_Object merge (Lisp_Object org_l1, Lisp_Object org_l2, Lisp_Object pred); |
| 1730 | 1730 | ||
| 1731 | DEFUN ("sort", Fsort, Ssort, 2, 2, 0, | 1731 | DEFUE ("sort", Fsort, Ssort, 2, 2, 0, |
| 1732 | doc: /* Sort LIST, stably, comparing elements using PREDICATE. | 1732 | doc: /* Sort LIST, stably, comparing elements using PREDICATE. |
| 1733 | Returns the sorted list. LIST is modified by side effects. | 1733 | Returns the sorted list. LIST is modified by side effects. |
| 1734 | PREDICATE is called with two elements of LIST, and should return non-nil | 1734 | PREDICATE is called with two elements of LIST, and should return non-nil |
| @@ -1819,7 +1819,7 @@ merge (Lisp_Object org_l1, Lisp_Object org_l2, Lisp_Object pred) | |||
| 1819 | 1819 | ||
| 1820 | /* This does not check for quits. That is safe since it must terminate. */ | 1820 | /* This does not check for quits. That is safe since it must terminate. */ |
| 1821 | 1821 | ||
| 1822 | DEFUN ("plist-get", Fplist_get, Splist_get, 2, 2, 0, | 1822 | DEFUE ("plist-get", Fplist_get, Splist_get, 2, 2, 0, |
| 1823 | doc: /* Extract a value from a property list. | 1823 | doc: /* Extract a value from a property list. |
| 1824 | PLIST is a property list, which is a list of the form | 1824 | PLIST is a property list, which is a list of the form |
| 1825 | \(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value | 1825 | \(PROP1 VALUE1 PROP2 VALUE2...). This function returns the value |
| @@ -1852,7 +1852,7 @@ properties on the list. This function never signals an error. */) | |||
| 1852 | return Qnil; | 1852 | return Qnil; |
| 1853 | } | 1853 | } |
| 1854 | 1854 | ||
| 1855 | DEFUN ("get", Fget, Sget, 2, 2, 0, | 1855 | DEFUE ("get", Fget, Sget, 2, 2, 0, |
| 1856 | doc: /* Return the value of SYMBOL's PROPNAME property. | 1856 | doc: /* Return the value of SYMBOL's PROPNAME property. |
| 1857 | This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */) | 1857 | This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */) |
| 1858 | (Lisp_Object symbol, Lisp_Object propname) | 1858 | (Lisp_Object symbol, Lisp_Object propname) |
| @@ -1861,7 +1861,7 @@ This is the last value stored with `(put SYMBOL PROPNAME VALUE)'. */) | |||
| 1861 | return Fplist_get (XSYMBOL (symbol)->plist, propname); | 1861 | return Fplist_get (XSYMBOL (symbol)->plist, propname); |
| 1862 | } | 1862 | } |
| 1863 | 1863 | ||
| 1864 | DEFUN ("plist-put", Fplist_put, Splist_put, 3, 3, 0, | 1864 | DEFUE ("plist-put", Fplist_put, Splist_put, 3, 3, 0, |
| 1865 | doc: /* Change value in PLIST of PROP to VAL. | 1865 | doc: /* Change value in PLIST of PROP to VAL. |
| 1866 | PLIST is a property list, which is a list of the form | 1866 | PLIST is a property list, which is a list of the form |
| 1867 | \(PROP1 VALUE1 PROP2 VALUE2 ...). PROP is a symbol and VAL is any object. | 1867 | \(PROP1 VALUE1 PROP2 VALUE2 ...). PROP is a symbol and VAL is any object. |
| @@ -1894,7 +1894,7 @@ The PLIST is modified by side effects. */) | |||
| 1894 | return plist; | 1894 | return plist; |
| 1895 | } | 1895 | } |
| 1896 | 1896 | ||
| 1897 | DEFUN ("put", Fput, Sput, 3, 3, 0, | 1897 | DEFUE ("put", Fput, Sput, 3, 3, 0, |
| 1898 | doc: /* Store SYMBOL's PROPNAME property with value VALUE. | 1898 | doc: /* Store SYMBOL's PROPNAME property with value VALUE. |
| 1899 | It can be retrieved with `(get SYMBOL PROPNAME)'. */) | 1899 | It can be retrieved with `(get SYMBOL PROPNAME)'. */) |
| 1900 | (Lisp_Object symbol, Lisp_Object propname, Lisp_Object value) | 1900 | (Lisp_Object symbol, Lisp_Object propname, Lisp_Object value) |
| @@ -1974,7 +1974,7 @@ Floating-point numbers of equal value are `eql', but they may not be `eq'. */) | |||
| 1974 | return EQ (obj1, obj2) ? Qt : Qnil; | 1974 | return EQ (obj1, obj2) ? Qt : Qnil; |
| 1975 | } | 1975 | } |
| 1976 | 1976 | ||
| 1977 | DEFUN ("equal", Fequal, Sequal, 2, 2, 0, | 1977 | DEFUE ("equal", Fequal, Sequal, 2, 2, 0, |
| 1978 | doc: /* Return t if two Lisp objects have similar structure and contents. | 1978 | doc: /* Return t if two Lisp objects have similar structure and contents. |
| 1979 | They must have the same data type. | 1979 | They must have the same data type. |
| 1980 | Conses are compared by comparing the cars and the cdrs. | 1980 | Conses are compared by comparing the cars and the cdrs. |
| @@ -2222,7 +2222,7 @@ nconc2 (Lisp_Object s1, Lisp_Object s2) | |||
| 2222 | return Fnconc (2, args); | 2222 | return Fnconc (2, args); |
| 2223 | } | 2223 | } |
| 2224 | 2224 | ||
| 2225 | DEFUN ("nconc", Fnconc, Snconc, 0, MANY, 0, | 2225 | DEFUE ("nconc", Fnconc, Snconc, 0, MANY, 0, |
| 2226 | doc: /* Concatenate any number of lists by altering them. | 2226 | doc: /* Concatenate any number of lists by altering them. |
| 2227 | Only the last argument is not altered, and need not be a list. | 2227 | Only the last argument is not altered, and need not be a list. |
| 2228 | usage: (nconc &rest LISTS) */) | 2228 | usage: (nconc &rest LISTS) */) |
| @@ -2342,7 +2342,7 @@ mapcar1 (EMACS_INT leni, Lisp_Object *vals, Lisp_Object fn, Lisp_Object seq) | |||
| 2342 | UNGCPRO; | 2342 | UNGCPRO; |
| 2343 | } | 2343 | } |
| 2344 | 2344 | ||
| 2345 | DEFUN ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0, | 2345 | DEFUE ("mapconcat", Fmapconcat, Smapconcat, 3, 3, 0, |
| 2346 | doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. | 2346 | doc: /* Apply FUNCTION to each element of SEQUENCE, and concat the results as strings. |
| 2347 | In between each pair of results, stick in SEPARATOR. Thus, " " as | 2347 | In between each pair of results, stick in SEPARATOR. Thus, " " as |
| 2348 | SEPARATOR results in spaces between the values returned by FUNCTION. | 2348 | SEPARATOR results in spaces between the values returned by FUNCTION. |
| @@ -2383,7 +2383,7 @@ SEQUENCE may be a list, a vector, a bool-vector, or a string. */) | |||
| 2383 | return ret; | 2383 | return ret; |
| 2384 | } | 2384 | } |
| 2385 | 2385 | ||
| 2386 | DEFUN ("mapcar", Fmapcar, Smapcar, 2, 2, 0, | 2386 | DEFUE ("mapcar", Fmapcar, Smapcar, 2, 2, 0, |
| 2387 | doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results. | 2387 | doc: /* Apply FUNCTION to each element of SEQUENCE, and make a list of the results. |
| 2388 | The result is a list just as long as SEQUENCE. | 2388 | The result is a list just as long as SEQUENCE. |
| 2389 | SEQUENCE may be a list, a vector, a bool-vector, or a string. */) | 2389 | SEQUENCE may be a list, a vector, a bool-vector, or a string. */) |
| @@ -2561,7 +2561,7 @@ SUBFEATURE can be used to check a specific subfeature of FEATURE. */) | |||
| 2561 | return (NILP (tem)) ? Qnil : Qt; | 2561 | return (NILP (tem)) ? Qnil : Qt; |
| 2562 | } | 2562 | } |
| 2563 | 2563 | ||
| 2564 | DEFUN ("provide", Fprovide, Sprovide, 1, 2, 0, | 2564 | DEFUE ("provide", Fprovide, Sprovide, 1, 2, 0, |
| 2565 | doc: /* Announce that FEATURE is a feature of the current Emacs. | 2565 | doc: /* Announce that FEATURE is a feature of the current Emacs. |
| 2566 | The optional argument SUBFEATURES should be a list of symbols listing | 2566 | The optional argument SUBFEATURES should be a list of symbols listing |
| 2567 | particular subfeatures supported in this version of FEATURE. */) | 2567 | particular subfeatures supported in this version of FEATURE. */) |
| @@ -2699,7 +2699,7 @@ The normal messages at start and end of loading FILENAME are suppressed. */) | |||
| 2699 | bottleneck of Widget operation. Here is their translation to C, | 2699 | bottleneck of Widget operation. Here is their translation to C, |
| 2700 | for the sole reason of efficiency. */ | 2700 | for the sole reason of efficiency. */ |
| 2701 | 2701 | ||
| 2702 | DEFUN ("plist-member", Fplist_member, Splist_member, 2, 2, 0, | 2702 | DEFUE ("plist-member", Fplist_member, Splist_member, 2, 2, 0, |
| 2703 | doc: /* Return non-nil if PLIST has the property PROP. | 2703 | doc: /* Return non-nil if PLIST has the property PROP. |
| 2704 | PLIST is a property list, which is a list of the form | 2704 | PLIST is a property list, which is a list of the form |
| 2705 | \(PROP1 VALUE1 PROP2 VALUE2 ...\). PROP is a symbol. | 2705 | \(PROP1 VALUE1 PROP2 VALUE2 ...\). PROP is a symbol. |
| @@ -4248,7 +4248,7 @@ DEFUN ("sxhash", Fsxhash, Ssxhash, 1, 1, 0, | |||
| 4248 | } | 4248 | } |
| 4249 | 4249 | ||
| 4250 | 4250 | ||
| 4251 | DEFUN ("make-hash-table", Fmake_hash_table, Smake_hash_table, 0, MANY, 0, | 4251 | DEFUE ("make-hash-table", Fmake_hash_table, Smake_hash_table, 0, MANY, 0, |
| 4252 | doc: /* Create and return a new hash table. | 4252 | doc: /* Create and return a new hash table. |
| 4253 | 4253 | ||
| 4254 | Arguments are specified as keyword/argument pairs. The following | 4254 | Arguments are specified as keyword/argument pairs. The following |
| @@ -4436,7 +4436,7 @@ DEFUN ("clrhash", Fclrhash, Sclrhash, 1, 1, 0, | |||
| 4436 | } | 4436 | } |
| 4437 | 4437 | ||
| 4438 | 4438 | ||
| 4439 | DEFUN ("gethash", Fgethash, Sgethash, 2, 3, 0, | 4439 | DEFUE ("gethash", Fgethash, Sgethash, 2, 3, 0, |
| 4440 | doc: /* Look up KEY in TABLE and return its associated value. | 4440 | doc: /* Look up KEY in TABLE and return its associated value. |
| 4441 | If KEY is not found, return DFLT which defaults to nil. */) | 4441 | If KEY is not found, return DFLT which defaults to nil. */) |
| 4442 | (Lisp_Object key, Lisp_Object table, Lisp_Object dflt) | 4442 | (Lisp_Object key, Lisp_Object table, Lisp_Object dflt) |
| @@ -4447,7 +4447,7 @@ If KEY is not found, return DFLT which defaults to nil. */) | |||
| 4447 | } | 4447 | } |
| 4448 | 4448 | ||
| 4449 | 4449 | ||
| 4450 | DEFUN ("puthash", Fputhash, Sputhash, 3, 3, 0, | 4450 | DEFUE ("puthash", Fputhash, Sputhash, 3, 3, 0, |
| 4451 | doc: /* Associate KEY with VALUE in hash table TABLE. | 4451 | doc: /* Associate KEY with VALUE in hash table TABLE. |
| 4452 | If KEY is already present in table, replace its current value with | 4452 | If KEY is already present in table, replace its current value with |
| 4453 | VALUE. */) | 4453 | VALUE. */) |
| @@ -4467,7 +4467,7 @@ VALUE. */) | |||
| 4467 | } | 4467 | } |
| 4468 | 4468 | ||
| 4469 | 4469 | ||
| 4470 | DEFUN ("remhash", Fremhash, Sremhash, 2, 2, 0, | 4470 | DEFUE ("remhash", Fremhash, Sremhash, 2, 2, 0, |
| 4471 | doc: /* Remove KEY from TABLE. */) | 4471 | doc: /* Remove KEY from TABLE. */) |
| 4472 | (Lisp_Object key, Lisp_Object table) | 4472 | (Lisp_Object key, Lisp_Object table) |
| 4473 | { | 4473 | { |
diff --git a/src/font.c b/src/font.c index e01f67a95f6..a31a418e641 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -3762,7 +3762,7 @@ which kind of font it is. It must be one of `font-spec', `font-entity', | |||
| 3762 | wrong_type_argument (intern ("font-extra-type"), extra_type); | 3762 | wrong_type_argument (intern ("font-extra-type"), extra_type); |
| 3763 | } | 3763 | } |
| 3764 | 3764 | ||
| 3765 | DEFUN ("font-spec", Ffont_spec, Sfont_spec, 0, MANY, 0, | 3765 | DEFUE ("font-spec", Ffont_spec, Sfont_spec, 0, MANY, 0, |
| 3766 | doc: /* Return a newly created font-spec with arguments as properties. | 3766 | doc: /* Return a newly created font-spec with arguments as properties. |
| 3767 | 3767 | ||
| 3768 | ARGS must come in pairs KEY VALUE of font properties. KEY must be a | 3768 | ARGS must come in pairs KEY VALUE of font properties. KEY must be a |
| @@ -3866,7 +3866,7 @@ usage: (font-spec ARGS...) */) | |||
| 3866 | return spec; | 3866 | return spec; |
| 3867 | } | 3867 | } |
| 3868 | 3868 | ||
| 3869 | DEFUN ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0, | 3869 | DEFUE ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0, |
| 3870 | doc: /* Return a copy of FONT as a font-spec. */) | 3870 | doc: /* Return a copy of FONT as a font-spec. */) |
| 3871 | (Lisp_Object font) | 3871 | (Lisp_Object font) |
| 3872 | { | 3872 | { |
| @@ -3892,7 +3892,7 @@ DEFUN ("copy-font-spec", Fcopy_font_spec, Scopy_font_spec, 1, 1, 0, | |||
| 3892 | return new_spec; | 3892 | return new_spec; |
| 3893 | } | 3893 | } |
| 3894 | 3894 | ||
| 3895 | DEFUN ("merge-font-spec", Fmerge_font_spec, Smerge_font_spec, 2, 2, 0, | 3895 | DEFUE ("merge-font-spec", Fmerge_font_spec, Smerge_font_spec, 2, 2, 0, |
| 3896 | doc: /* Merge font-specs FROM and TO, and return a new font-spec. | 3896 | doc: /* Merge font-specs FROM and TO, and return a new font-spec. |
| 3897 | Every specified properties in FROM override the corresponding | 3897 | Every specified properties in FROM override the corresponding |
| 3898 | properties in TO. */) | 3898 | properties in TO. */) |
| @@ -3921,7 +3921,7 @@ properties in TO. */) | |||
| 3921 | return to; | 3921 | return to; |
| 3922 | } | 3922 | } |
| 3923 | 3923 | ||
| 3924 | DEFUN ("font-get", Ffont_get, Sfont_get, 2, 2, 0, | 3924 | DEFUE ("font-get", Ffont_get, Sfont_get, 2, 2, 0, |
| 3925 | doc: /* Return the value of FONT's property KEY. | 3925 | doc: /* Return the value of FONT's property KEY. |
| 3926 | FONT is a font-spec, a font-entity, or a font-object. | 3926 | FONT is a font-spec, a font-entity, or a font-object. |
| 3927 | KEY is any symbol, but these are reserved for specific meanings: | 3927 | KEY is any symbol, but these are reserved for specific meanings: |
| @@ -4053,7 +4053,7 @@ are to be displayed on. If omitted, the selected frame is used. */) | |||
| 4053 | 4053 | ||
| 4054 | #endif | 4054 | #endif |
| 4055 | 4055 | ||
| 4056 | DEFUN ("font-put", Ffont_put, Sfont_put, 3, 3, 0, | 4056 | DEFUE ("font-put", Ffont_put, Sfont_put, 3, 3, 0, |
| 4057 | doc: /* Set one property of FONT: give property KEY value VAL. | 4057 | doc: /* Set one property of FONT: give property KEY value VAL. |
| 4058 | FONT is a font-spec, a font-entity, or a font-object. | 4058 | FONT is a font-spec, a font-entity, or a font-object. |
| 4059 | 4059 | ||
| @@ -4087,7 +4087,7 @@ accepted by `font-spec'. */) | |||
| 4087 | return val; | 4087 | return val; |
| 4088 | } | 4088 | } |
| 4089 | 4089 | ||
| 4090 | DEFUN ("list-fonts", Flist_fonts, Slist_fonts, 1, 4, 0, | 4090 | DEFUE ("list-fonts", Flist_fonts, Slist_fonts, 1, 4, 0, |
| 4091 | doc: /* List available fonts matching FONT-SPEC on the current frame. | 4091 | doc: /* List available fonts matching FONT-SPEC on the current frame. |
| 4092 | Optional 2nd argument FRAME specifies the target frame. | 4092 | Optional 2nd argument FRAME specifies the target frame. |
| 4093 | Optional 3rd argument NUM, if non-nil, limits the number of returned fonts. | 4093 | Optional 3rd argument NUM, if non-nil, limits the number of returned fonts. |
| @@ -4181,7 +4181,7 @@ Optional 2nd argument FRAME, if non-nil, specifies the target frame. */) | |||
| 4181 | return val; | 4181 | return val; |
| 4182 | } | 4182 | } |
| 4183 | 4183 | ||
| 4184 | DEFUN ("font-xlfd-name", Ffont_xlfd_name, Sfont_xlfd_name, 1, 2, 0, | 4184 | DEFUE ("font-xlfd-name", Ffont_xlfd_name, Sfont_xlfd_name, 1, 2, 0, |
| 4185 | doc: /* Return XLFD name of FONT. | 4185 | doc: /* Return XLFD name of FONT. |
| 4186 | FONT is a font-spec, font-entity, or font-object. | 4186 | FONT is a font-spec, font-entity, or font-object. |
| 4187 | If the name is too long for XLFD (maximum 255 chars), return nil. | 4187 | If the name is too long for XLFD (maximum 255 chars), return nil. |
| @@ -4403,7 +4403,7 @@ where | |||
| 4403 | 4403 | ||
| 4404 | #if 0 | 4404 | #if 0 |
| 4405 | 4405 | ||
| 4406 | DEFUN ("font-drive-otf", Ffont_drive_otf, Sfont_drive_otf, 6, 6, 0, | 4406 | DEFUE ("font-drive-otf", Ffont_drive_otf, Sfont_drive_otf, 6, 6, 0, |
| 4407 | doc: /* Apply OpenType features on glyph-string GSTRING-IN. | 4407 | doc: /* Apply OpenType features on glyph-string GSTRING-IN. |
| 4408 | OTF-FEATURES specifies which features to apply in this format: | 4408 | OTF-FEATURES specifies which features to apply in this format: |
| 4409 | (SCRIPT LANGSYS GSUB GPOS) | 4409 | (SCRIPT LANGSYS GSUB GPOS) |
| @@ -4473,7 +4473,7 @@ glyph-string. */) | |||
| 4473 | return make_number (num); | 4473 | return make_number (num); |
| 4474 | } | 4474 | } |
| 4475 | 4475 | ||
| 4476 | DEFUN ("font-otf-alternates", Ffont_otf_alternates, Sfont_otf_alternates, | 4476 | DEFUE ("font-otf-alternates", Ffont_otf_alternates, Sfont_otf_alternates, |
| 4477 | 3, 3, 0, | 4477 | 3, 3, 0, |
| 4478 | doc: /* Return a list of alternate glyphs of CHARACTER in FONT-OBJECT. | 4478 | doc: /* Return a list of alternate glyphs of CHARACTER in FONT-OBJECT. |
| 4479 | OTF-FEATURES specifies which features of the font FONT-OBJECT to apply | 4479 | OTF-FEATURES specifies which features of the font FONT-OBJECT to apply |
diff --git a/src/fontset.c b/src/fontset.c index eea65535c78..4a9cc9393bf 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1172,7 +1172,7 @@ fs_query_fontset (Lisp_Object name, int name_pattern) | |||
| 1172 | } | 1172 | } |
| 1173 | 1173 | ||
| 1174 | 1174 | ||
| 1175 | DEFUN ("query-fontset", Fquery_fontset, Squery_fontset, 1, 2, 0, | 1175 | DEFUE ("query-fontset", Fquery_fontset, Squery_fontset, 1, 2, 0, |
| 1176 | doc: /* Return the name of a fontset that matches PATTERN. | 1176 | doc: /* Return the name of a fontset that matches PATTERN. |
| 1177 | The value is nil if there is no matching fontset. | 1177 | The value is nil if there is no matching fontset. |
| 1178 | PATTERN can contain `*' or `?' as a wildcard | 1178 | PATTERN can contain `*' or `?' as a wildcard |
| @@ -2138,7 +2138,7 @@ dump_fontset (Lisp_Object fontset) | |||
| 2138 | return vec; | 2138 | return vec; |
| 2139 | } | 2139 | } |
| 2140 | 2140 | ||
| 2141 | DEFUN ("fontset-list-all", Ffontset_list_all, Sfontset_list_all, 0, 0, 0, | 2141 | DEFUE ("fontset-list-all", Ffontset_list_all, Sfontset_list_all, 0, 0, 0, |
| 2142 | doc: /* Return a brief summary of all fontsets for debug use. */) | 2142 | doc: /* Return a brief summary of all fontsets for debug use. */) |
| 2143 | (void) | 2143 | (void) |
| 2144 | { | 2144 | { |
diff --git a/src/frame.c b/src/frame.c index 1b6d36092ae..6e0e9c4ffc0 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -225,7 +225,7 @@ return values. */) | |||
| 225 | : Qnil); | 225 | : Qnil); |
| 226 | } | 226 | } |
| 227 | 227 | ||
| 228 | DEFUN ("window-system", Fwindow_system, Swindow_system, 0, 1, 0, | 228 | DEFUE ("window-system", Fwindow_system, Swindow_system, 0, 1, 0, |
| 229 | doc: /* The name of the window system that FRAME is displaying through. | 229 | doc: /* The name of the window system that FRAME is displaying through. |
| 230 | The value is a symbol: | 230 | The value is a symbol: |
| 231 | nil for a termcap frame (a character-only terminal), | 231 | nil for a termcap frame (a character-only terminal), |
| @@ -856,7 +856,7 @@ do_switch_frame (Lisp_Object frame, int track, int for_deletion, Lisp_Object nor | |||
| 856 | return frame; | 856 | return frame; |
| 857 | } | 857 | } |
| 858 | 858 | ||
| 859 | DEFUN ("select-frame", Fselect_frame, Sselect_frame, 1, 2, "e", | 859 | DEFUE ("select-frame", Fselect_frame, Sselect_frame, 1, 2, "e", |
| 860 | doc: /* Select FRAME. | 860 | doc: /* Select FRAME. |
| 861 | Subsequent editing commands apply to its selected window. | 861 | Subsequent editing commands apply to its selected window. |
| 862 | Optional argument NORECORD means to neither change the order of | 862 | Optional argument NORECORD means to neither change the order of |
| @@ -894,14 +894,14 @@ to that frame. */) | |||
| 894 | return do_switch_frame (event, 0, 0, Qnil); | 894 | return do_switch_frame (event, 0, 0, Qnil); |
| 895 | } | 895 | } |
| 896 | 896 | ||
| 897 | DEFUN ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, | 897 | DEFUE ("selected-frame", Fselected_frame, Sselected_frame, 0, 0, 0, |
| 898 | doc: /* Return the frame that is now selected. */) | 898 | doc: /* Return the frame that is now selected. */) |
| 899 | (void) | 899 | (void) |
| 900 | { | 900 | { |
| 901 | return selected_frame; | 901 | return selected_frame; |
| 902 | } | 902 | } |
| 903 | 903 | ||
| 904 | DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, | 904 | DEFUE ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, |
| 905 | doc: /* Return the frame object that window WINDOW is on. */) | 905 | doc: /* Return the frame object that window WINDOW is on. */) |
| 906 | (Lisp_Object window) | 906 | (Lisp_Object window) |
| 907 | { | 907 | { |
| @@ -909,7 +909,7 @@ DEFUN ("window-frame", Fwindow_frame, Swindow_frame, 1, 1, 0, | |||
| 909 | return XWINDOW (window)->frame; | 909 | return XWINDOW (window)->frame; |
| 910 | } | 910 | } |
| 911 | 911 | ||
| 912 | DEFUN ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, | 912 | DEFUE ("frame-first-window", Fframe_first_window, Sframe_first_window, 0, 1, 0, |
| 913 | doc: /* Returns the topmost, leftmost window of FRAME. | 913 | doc: /* Returns the topmost, leftmost window of FRAME. |
| 914 | If omitted, FRAME defaults to the currently selected frame. */) | 914 | If omitted, FRAME defaults to the currently selected frame. */) |
| 915 | (Lisp_Object frame) | 915 | (Lisp_Object frame) |
| @@ -943,7 +943,7 @@ DEFUN ("active-minibuffer-window", Factive_minibuffer_window, | |||
| 943 | return minibuf_level ? minibuf_window : Qnil; | 943 | return minibuf_level ? minibuf_window : Qnil; |
| 944 | } | 944 | } |
| 945 | 945 | ||
| 946 | DEFUN ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0, | 946 | DEFUE ("frame-root-window", Fframe_root_window, Sframe_root_window, 0, 1, 0, |
| 947 | doc: /* Returns the root-window of FRAME. | 947 | doc: /* Returns the root-window of FRAME. |
| 948 | If omitted, FRAME defaults to the currently selected frame. */) | 948 | If omitted, FRAME defaults to the currently selected frame. */) |
| 949 | (Lisp_Object frame) | 949 | (Lisp_Object frame) |
| @@ -980,7 +980,7 @@ FRAME defaults to the currently selected frame. */) | |||
| 980 | return window; | 980 | return window; |
| 981 | } | 981 | } |
| 982 | 982 | ||
| 983 | DEFUN ("set-frame-selected-window", Fset_frame_selected_window, | 983 | DEFUE ("set-frame-selected-window", Fset_frame_selected_window, |
| 984 | Sset_frame_selected_window, 2, 3, 0, | 984 | Sset_frame_selected_window, 2, 3, 0, |
| 985 | doc: /* Set selected window of FRAME to WINDOW. | 985 | doc: /* Set selected window of FRAME to WINDOW. |
| 986 | If FRAME is nil, use the selected frame. If FRAME is the | 986 | If FRAME is nil, use the selected frame. If FRAME is the |
| @@ -1776,7 +1776,7 @@ before calling this function on it, like this. | |||
| 1776 | 1776 | ||
| 1777 | static void make_frame_visible_1 (Lisp_Object); | 1777 | static void make_frame_visible_1 (Lisp_Object); |
| 1778 | 1778 | ||
| 1779 | DEFUN ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible, | 1779 | DEFUE ("make-frame-visible", Fmake_frame_visible, Smake_frame_visible, |
| 1780 | 0, 1, "", | 1780 | 0, 1, "", |
| 1781 | doc: /* Make the frame FRAME visible (assuming it is an X window). | 1781 | doc: /* Make the frame FRAME visible (assuming it is an X window). |
| 1782 | If omitted, FRAME defaults to the currently selected frame. */) | 1782 | If omitted, FRAME defaults to the currently selected frame. */) |
| @@ -1876,7 +1876,7 @@ displayed in the terminal. */) | |||
| 1876 | return Qnil; | 1876 | return Qnil; |
| 1877 | } | 1877 | } |
| 1878 | 1878 | ||
| 1879 | DEFUN ("iconify-frame", Ficonify_frame, Siconify_frame, | 1879 | DEFUE ("iconify-frame", Ficonify_frame, Siconify_frame, |
| 1880 | 0, 1, "", | 1880 | 0, 1, "", |
| 1881 | doc: /* Make the frame FRAME into an icon. | 1881 | doc: /* Make the frame FRAME into an icon. |
| 1882 | If omitted, FRAME defaults to the currently selected frame. */) | 1882 | If omitted, FRAME defaults to the currently selected frame. */) |
| @@ -1961,7 +1961,7 @@ DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list, | |||
| 1961 | } | 1961 | } |
| 1962 | 1962 | ||
| 1963 | 1963 | ||
| 1964 | DEFUN ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "", | 1964 | DEFUE ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "", |
| 1965 | doc: /* Bring FRAME to the front, so it occludes any frames it overlaps. | 1965 | doc: /* Bring FRAME to the front, so it occludes any frames it overlaps. |
| 1966 | If FRAME is invisible or iconified, make it visible. | 1966 | If FRAME is invisible or iconified, make it visible. |
| 1967 | If you don't specify a frame, the selected frame is used. | 1967 | If you don't specify a frame, the selected frame is used. |
| @@ -2014,7 +2014,7 @@ doesn't support multiple overlapping frames, this function does nothing. */) | |||
| 2014 | } | 2014 | } |
| 2015 | 2015 | ||
| 2016 | 2016 | ||
| 2017 | DEFUN ("redirect-frame-focus", Fredirect_frame_focus, Sredirect_frame_focus, | 2017 | DEFUE ("redirect-frame-focus", Fredirect_frame_focus, Sredirect_frame_focus, |
| 2018 | 1, 2, 0, | 2018 | 1, 2, 0, |
| 2019 | doc: /* Arrange for keystrokes typed at FRAME to be sent to FOCUS-FRAME. | 2019 | doc: /* Arrange for keystrokes typed at FRAME to be sent to FOCUS-FRAME. |
| 2020 | In other words, switch-frame events caused by events in FRAME will | 2020 | In other words, switch-frame events caused by events in FRAME will |
| @@ -2392,7 +2392,7 @@ If FRAME is omitted, return information on the currently selected frame. */) | |||
| 2392 | } | 2392 | } |
| 2393 | 2393 | ||
| 2394 | 2394 | ||
| 2395 | DEFUN ("frame-parameter", Fframe_parameter, Sframe_parameter, 2, 2, 0, | 2395 | DEFUE ("frame-parameter", Fframe_parameter, Sframe_parameter, 2, 2, 0, |
| 2396 | doc: /* Return FRAME's value for parameter PARAMETER. | 2396 | doc: /* Return FRAME's value for parameter PARAMETER. |
| 2397 | If FRAME is nil, describe the currently selected frame. */) | 2397 | If FRAME is nil, describe the currently selected frame. */) |
| 2398 | (Lisp_Object frame, Lisp_Object parameter) | 2398 | (Lisp_Object frame, Lisp_Object parameter) |
| @@ -2470,7 +2470,7 @@ If FRAME is nil, describe the currently selected frame. */) | |||
| 2470 | } | 2470 | } |
| 2471 | 2471 | ||
| 2472 | 2472 | ||
| 2473 | DEFUN ("modify-frame-parameters", Fmodify_frame_parameters, | 2473 | DEFUE ("modify-frame-parameters", Fmodify_frame_parameters, |
| 2474 | Smodify_frame_parameters, 2, 2, 0, | 2474 | Smodify_frame_parameters, 2, 2, 0, |
| 2475 | doc: /* Modify the parameters of frame FRAME according to ALIST. | 2475 | doc: /* Modify the parameters of frame FRAME according to ALIST. |
| 2476 | If FRAME is nil, it defaults to the selected frame. | 2476 | If FRAME is nil, it defaults to the selected frame. |
diff --git a/src/image.c b/src/image.c index b3d2be88b96..20ca3cf1d6b 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -137,6 +137,7 @@ static void free_color_table (void); | |||
| 137 | static unsigned long *colors_in_color_table (int *n); | 137 | static unsigned long *colors_in_color_table (int *n); |
| 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); | 138 | static unsigned long lookup_pixel_color (struct frame *f, unsigned long p); |
| 139 | #endif | 139 | #endif |
| 140 | INFUN (Finit_image_library, 2); | ||
| 140 | 141 | ||
| 141 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap | 142 | /* Code to deal with bitmaps. Bitmaps are referenced by their bitmap |
| 142 | id, which is just an int that this section returns. Bitmaps are | 143 | id, which is just an int that this section returns. Bitmaps are |
| @@ -7869,7 +7870,7 @@ static struct image_type imagemagick_type = | |||
| 7869 | }; | 7870 | }; |
| 7870 | 7871 | ||
| 7871 | 7872 | ||
| 7872 | DEFUN ("imagemagick-types", Fimagemagick_types, Simagemagick_types, 0, 0, 0, | 7873 | DEFUE ("imagemagick-types", Fimagemagick_types, Simagemagick_types, 0, 0, 0, |
| 7873 | doc: /* Return the image types supported by ImageMagick. | 7874 | doc: /* Return the image types supported by ImageMagick. |
| 7874 | Note that ImageMagick recognizes many file-types that Emacs does not recognize | 7875 | Note that ImageMagick recognizes many file-types that Emacs does not recognize |
| 7875 | as images, such as .c. */) | 7876 | as images, such as .c. */) |
| @@ -8580,7 +8581,7 @@ x_kill_gs_process (Pixmap pixmap, struct frame *f) | |||
| 8580 | 8581 | ||
| 8581 | #if GLYPH_DEBUG | 8582 | #if GLYPH_DEBUG |
| 8582 | 8583 | ||
| 8583 | DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0, | 8584 | DEFUE ("imagep", Fimagep, Simagep, 1, 1, 0, |
| 8584 | doc: /* Value is non-nil if SPEC is a valid image specification. */) | 8585 | doc: /* Value is non-nil if SPEC is a valid image specification. */) |
| 8585 | (Lisp_Object spec) | 8586 | (Lisp_Object spec) |
| 8586 | { | 8587 | { |
| @@ -8588,7 +8589,7 @@ DEFUN ("imagep", Fimagep, Simagep, 1, 1, 0, | |||
| 8588 | } | 8589 | } |
| 8589 | 8590 | ||
| 8590 | 8591 | ||
| 8591 | DEFUN ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "") | 8592 | DEFUE ("lookup-image", Flookup_image, Slookup_image, 1, 1, 0, "") |
| 8592 | (Lisp_Object spec) | 8593 | (Lisp_Object spec) |
| 8593 | { | 8594 | { |
| 8594 | int id = -1; | 8595 | int id = -1; |
diff --git a/src/indent.c b/src/indent.c index 8732b2ca5cc..84476e7bbdb 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -796,7 +796,7 @@ string_display_width (string, beg, end) | |||
| 796 | #endif /* 0 */ | 796 | #endif /* 0 */ |
| 797 | 797 | ||
| 798 | 798 | ||
| 799 | DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", | 799 | DEFUE ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", |
| 800 | doc: /* Indent from point with tabs and spaces until COLUMN is reached. | 800 | doc: /* Indent from point with tabs and spaces until COLUMN is reached. |
| 801 | Optional second argument MINIMUM says always do at least MINIMUM spaces | 801 | Optional second argument MINIMUM says always do at least MINIMUM spaces |
| 802 | even if that goes past COLUMN; by default, MINIMUM is zero. | 802 | even if that goes past COLUMN; by default, MINIMUM is zero. |
| @@ -967,7 +967,7 @@ indented_beyond_p (EMACS_INT pos, EMACS_INT pos_byte, EMACS_INT column) | |||
| 967 | return val >= column; | 967 | return val >= column; |
| 968 | } | 968 | } |
| 969 | 969 | ||
| 970 | DEFUN ("move-to-column", Fmove_to_column, Smove_to_column, 1, 2, "p", | 970 | DEFUE ("move-to-column", Fmove_to_column, Smove_to_column, 1, 2, "p", |
| 971 | doc: /* Move point to column COLUMN in the current line. | 971 | doc: /* Move point to column COLUMN in the current line. |
| 972 | Interactively, COLUMN is the value of prefix numeric argument. | 972 | Interactively, COLUMN is the value of prefix numeric argument. |
| 973 | The column of a character is calculated by adding together the widths | 973 | The column of a character is calculated by adding together the widths |
| @@ -1959,7 +1959,7 @@ vmotion (register EMACS_INT from, register EMACS_INT vtarget, struct window *w) | |||
| 1959 | w); | 1959 | w); |
| 1960 | } | 1960 | } |
| 1961 | 1961 | ||
| 1962 | DEFUN ("vertical-motion", Fvertical_motion, Svertical_motion, 1, 2, 0, | 1962 | DEFUE ("vertical-motion", Fvertical_motion, Svertical_motion, 1, 2, 0, |
| 1963 | doc: /* Move point to start of the screen line LINES lines down. | 1963 | doc: /* Move point to start of the screen line LINES lines down. |
| 1964 | If LINES is negative, this means moving up. | 1964 | If LINES is negative, this means moving up. |
| 1965 | 1965 | ||
diff --git a/src/insdel.c b/src/insdel.c index 4bdcb4bc0b7..dd7e3c14335 100644 --- a/src/insdel.c +++ b/src/insdel.c | |||
| @@ -48,7 +48,7 @@ static void adjust_markers_for_replace (EMACS_INT, EMACS_INT, EMACS_INT, | |||
| 48 | EMACS_INT, EMACS_INT, EMACS_INT); | 48 | EMACS_INT, EMACS_INT, EMACS_INT); |
| 49 | static void adjust_point (EMACS_INT nchars, EMACS_INT nbytes); | 49 | static void adjust_point (EMACS_INT nchars, EMACS_INT nbytes); |
| 50 | 50 | ||
| 51 | Lisp_Object Fcombine_after_change_execute (void); | 51 | INFUN (Fcombine_after_change_execute, 0); |
| 52 | 52 | ||
| 53 | /* List of elements of the form (BEG-UNCHANGED END-UNCHANGED CHANGE-AMOUNT) | 53 | /* List of elements of the form (BEG-UNCHANGED END-UNCHANGED CHANGE-AMOUNT) |
| 54 | describing changes which happened while combine_after_change_calls | 54 | describing changes which happened while combine_after_change_calls |
diff --git a/src/intervals.h b/src/intervals.h index d7c34012e1f..b2d755036ba 100644 --- a/src/intervals.h +++ b/src/intervals.h | |||
| @@ -315,10 +315,10 @@ EXFUN (Fget_char_property, 3); | |||
| 315 | EXFUN (Fget_text_property, 3); | 315 | EXFUN (Fget_text_property, 3); |
| 316 | EXFUN (Ftext_properties_at, 2); | 316 | EXFUN (Ftext_properties_at, 2); |
| 317 | EXFUN (Fnext_property_change, 3); | 317 | EXFUN (Fnext_property_change, 3); |
| 318 | EXFUN (Fprevious_property_change, 3); | ||
| 319 | EXFUN (Fadd_text_properties, 4); | 318 | EXFUN (Fadd_text_properties, 4); |
| 320 | EXFUN (Fset_text_properties, 4); | 319 | EXFUN (Fset_text_properties, 4); |
| 321 | EXFUN (Fremove_text_properties, 4); | 320 | EXFUN (Fremove_text_properties, 4); |
| 321 | EXFUN (Fremove_list_of_text_properties, 4); | ||
| 322 | EXFUN (Ftext_property_any, 5); | 322 | EXFUN (Ftext_property_any, 5); |
| 323 | EXFUN (Fprevious_single_char_property_change, 4); | 323 | EXFUN (Fprevious_single_char_property_change, 4); |
| 324 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, | 324 | extern Lisp_Object copy_text_properties (Lisp_Object, Lisp_Object, |
diff --git a/src/keyboard.c b/src/keyboard.c index 5df4f1b1ff4..97989fc1c15 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -350,7 +350,6 @@ Lisp_Object Qvertical_scroll_bar; | |||
| 350 | Lisp_Object Qmenu_bar; | 350 | Lisp_Object Qmenu_bar; |
| 351 | 351 | ||
| 352 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); | 352 | Lisp_Object recursive_edit_unwind (Lisp_Object buffer), command_loop (void); |
| 353 | Lisp_Object Fthis_command_keys (void); | ||
| 354 | Lisp_Object Qextended_command_history; | 353 | Lisp_Object Qextended_command_history; |
| 355 | EMACS_TIME timer_check (void); | 354 | EMACS_TIME timer_check (void); |
| 356 | 355 | ||
| @@ -439,6 +438,7 @@ static void interrupt_signal (int signalnum); | |||
| 439 | #ifdef SIGIO | 438 | #ifdef SIGIO |
| 440 | static void input_available_signal (int signo); | 439 | static void input_available_signal (int signo); |
| 441 | #endif | 440 | #endif |
| 441 | INFUN (Fcommand_execute, 4); | ||
| 442 | static void handle_interrupt (void); | 442 | static void handle_interrupt (void); |
| 443 | static void timer_start_idle (void); | 443 | static void timer_start_idle (void); |
| 444 | static void timer_stop_idle (void); | 444 | static void timer_stop_idle (void); |
| @@ -758,7 +758,7 @@ force_auto_save_soon (void) | |||
| 758 | record_asynch_buffer_change (); | 758 | record_asynch_buffer_change (); |
| 759 | } | 759 | } |
| 760 | 760 | ||
| 761 | DEFUN ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "", | 761 | DEFUE ("recursive-edit", Frecursive_edit, Srecursive_edit, 0, 0, "", |
| 762 | doc: /* Invoke the editor command loop recursively. | 762 | doc: /* Invoke the editor command loop recursively. |
| 763 | To get out of the recursive edit, a command can do `(throw 'exit nil)'; | 763 | To get out of the recursive edit, a command can do `(throw 'exit nil)'; |
| 764 | that tells this function to return. | 764 | that tells this function to return. |
| @@ -1152,7 +1152,7 @@ top_level_1 (Lisp_Object ignore) | |||
| 1152 | return Qnil; | 1152 | return Qnil; |
| 1153 | } | 1153 | } |
| 1154 | 1154 | ||
| 1155 | DEFUN ("top-level", Ftop_level, Stop_level, 0, 0, "", | 1155 | DEFUE ("top-level", Ftop_level, Stop_level, 0, 0, "", |
| 1156 | doc: /* Exit all recursive editing levels. | 1156 | doc: /* Exit all recursive editing levels. |
| 1157 | This also exits all active minibuffers. */) | 1157 | This also exits all active minibuffers. */) |
| 1158 | (void) | 1158 | (void) |
| @@ -1170,7 +1170,7 @@ This also exits all active minibuffers. */) | |||
| 1170 | Fthrow (Qtop_level, Qnil); | 1170 | Fthrow (Qtop_level, Qnil); |
| 1171 | } | 1171 | } |
| 1172 | 1172 | ||
| 1173 | Lisp_Object Fexit_recursive_edit (void) NO_RETURN; | 1173 | INFUN (Fexit_recursive_edit, 0) NO_RETURN; |
| 1174 | DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", | 1174 | DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, "", |
| 1175 | doc: /* Exit from the innermost recursive edit or minibuffer. */) | 1175 | doc: /* Exit from the innermost recursive edit or minibuffer. */) |
| 1176 | (void) | 1176 | (void) |
| @@ -1181,7 +1181,7 @@ DEFUN ("exit-recursive-edit", Fexit_recursive_edit, Sexit_recursive_edit, 0, 0, | |||
| 1181 | error ("No recursive edit is in progress"); | 1181 | error ("No recursive edit is in progress"); |
| 1182 | } | 1182 | } |
| 1183 | 1183 | ||
| 1184 | Lisp_Object Fabort_recursive_edit (void) NO_RETURN; | 1184 | INFUN (Fabort_recursive_edit, 0) NO_RETURN; |
| 1185 | DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "", | 1185 | DEFUN ("abort-recursive-edit", Fabort_recursive_edit, Sabort_recursive_edit, 0, 0, "", |
| 1186 | doc: /* Abort the command that requested this recursive edit or minibuffer input. */) | 1186 | doc: /* Abort the command that requested this recursive edit or minibuffer input. */) |
| 1187 | (void) | 1187 | (void) |
| @@ -6470,7 +6470,7 @@ modify_event_symbol (EMACS_INT symbol_num, unsigned int modifiers, Lisp_Object s | |||
| 6470 | such as (ctrl meta backspace), into the usual representation of that | 6470 | such as (ctrl meta backspace), into the usual representation of that |
| 6471 | event type as a number or a symbol. */ | 6471 | event type as a number or a symbol. */ |
| 6472 | 6472 | ||
| 6473 | DEFUN ("event-convert-list", Fevent_convert_list, Sevent_convert_list, 1, 1, 0, | 6473 | DEFUE ("event-convert-list", Fevent_convert_list, Sevent_convert_list, 1, 1, 0, |
| 6474 | doc: /* Convert the event description list EVENT-DESC to an event type. | 6474 | doc: /* Convert the event description list EVENT-DESC to an event type. |
| 6475 | EVENT-DESC should contain one base event type (a character or symbol) | 6475 | EVENT-DESC should contain one base event type (a character or symbol) |
| 6476 | and zero or more modifier names (control, meta, hyper, super, shift, alt, | 6476 | and zero or more modifier names (control, meta, hyper, super, shift, alt, |
| @@ -9981,7 +9981,7 @@ read_key_sequence (Lisp_Object *keybuf, size_t bufsize, Lisp_Object prompt, | |||
| 9981 | return t; | 9981 | return t; |
| 9982 | } | 9982 | } |
| 9983 | 9983 | ||
| 9984 | DEFUN ("read-key-sequence", Fread_key_sequence, Sread_key_sequence, 1, 5, 0, | 9984 | DEFUE ("read-key-sequence", Fread_key_sequence, Sread_key_sequence, 1, 5, 0, |
| 9985 | doc: /* Read a sequence of keystrokes and return as a string or vector. | 9985 | doc: /* Read a sequence of keystrokes and return as a string or vector. |
| 9986 | The sequence is sufficient to specify a non-prefix command in the | 9986 | The sequence is sufficient to specify a non-prefix command in the |
| 9987 | current local and global maps. | 9987 | current local and global maps. |
| @@ -10609,7 +10609,7 @@ If FILE is nil, close any open dribble file. */) | |||
| 10609 | return Qnil; | 10609 | return Qnil; |
| 10610 | } | 10610 | } |
| 10611 | 10611 | ||
| 10612 | DEFUN ("discard-input", Fdiscard_input, Sdiscard_input, 0, 0, 0, | 10612 | DEFUE ("discard-input", Fdiscard_input, Sdiscard_input, 0, 0, 0, |
| 10613 | doc: /* Discard the contents of the terminal input buffer. | 10613 | doc: /* Discard the contents of the terminal input buffer. |
| 10614 | Also end any kbd macro being defined. */) | 10614 | Also end any kbd macro being defined. */) |
| 10615 | (void) | 10615 | (void) |
| @@ -10962,7 +10962,8 @@ quit_throw_to_read_char (void) | |||
| 10962 | _longjmp (getcjmp, 1); | 10962 | _longjmp (getcjmp, 1); |
| 10963 | } | 10963 | } |
| 10964 | 10964 | ||
| 10965 | DEFUN ("set-input-interrupt-mode", Fset_input_interrupt_mode, Sset_input_interrupt_mode, 1, 1, 0, | 10965 | DEFUE ("set-input-interrupt-mode", Fset_input_interrupt_mode, |
| 10966 | Sset_input_interrupt_mode, 1, 1, 0, | ||
| 10966 | doc: /* Set interrupt mode of reading keyboard input. | 10967 | doc: /* Set interrupt mode of reading keyboard input. |
| 10967 | If INTERRUPT is non-nil, Emacs will use input interrupts; | 10968 | If INTERRUPT is non-nil, Emacs will use input interrupts; |
| 10968 | otherwise Emacs uses CBREAK mode. | 10969 | otherwise Emacs uses CBREAK mode. |
| @@ -11127,7 +11128,7 @@ See also `current-input-mode'. */) | |||
| 11127 | return Qnil; | 11128 | return Qnil; |
| 11128 | } | 11129 | } |
| 11129 | 11130 | ||
| 11130 | DEFUN ("set-input-mode", Fset_input_mode, Sset_input_mode, 3, 4, 0, | 11131 | DEFUE ("set-input-mode", Fset_input_mode, Sset_input_mode, 3, 4, 0, |
| 11131 | doc: /* Set mode of reading keyboard input. | 11132 | doc: /* Set mode of reading keyboard input. |
| 11132 | First arg INTERRUPT non-nil means use input interrupts; | 11133 | First arg INTERRUPT non-nil means use input interrupts; |
| 11133 | nil means use CBREAK mode. | 11134 | nil means use CBREAK mode. |
diff --git a/src/keymap.c b/src/keymap.c index 10000b935aa..9adf2898736 100644 --- a/src/keymap.c +++ b/src/keymap.c | |||
| @@ -70,6 +70,7 @@ static Lisp_Object where_is_cache; | |||
| 70 | /* Which keymaps are reverse-stored in the cache. */ | 70 | /* Which keymaps are reverse-stored in the cache. */ |
| 71 | static Lisp_Object where_is_cache_keymaps; | 71 | static Lisp_Object where_is_cache_keymaps; |
| 72 | 72 | ||
| 73 | INFUN (Flookup_key, 3); | ||
| 73 | static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); | 74 | static Lisp_Object store_in_keymap (Lisp_Object, Lisp_Object, Lisp_Object); |
| 74 | static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); | 75 | static void fix_submap_inheritance (Lisp_Object, Lisp_Object, Lisp_Object); |
| 75 | 76 | ||
| @@ -108,7 +109,7 @@ in case you use it as a menu with `x-popup-menu'. */) | |||
| 108 | Fcons (Fmake_char_table (Qkeymap, Qnil), tail)); | 109 | Fcons (Fmake_char_table (Qkeymap, Qnil), tail)); |
| 109 | } | 110 | } |
| 110 | 111 | ||
| 111 | DEFUN ("make-sparse-keymap", Fmake_sparse_keymap, Smake_sparse_keymap, 0, 1, 0, | 112 | DEFUE ("make-sparse-keymap", Fmake_sparse_keymap, Smake_sparse_keymap, 0, 1, 0, |
| 112 | doc: /* Construct and return a new sparse keymap. | 113 | doc: /* Construct and return a new sparse keymap. |
| 113 | Its car is `keymap' and its cdr is an alist of (CHAR . DEFINITION), | 114 | Its car is `keymap' and its cdr is an alist of (CHAR . DEFINITION), |
| 114 | which binds the character CHAR to DEFINITION, or (SYMBOL . DEFINITION), | 115 | which binds the character CHAR to DEFINITION, or (SYMBOL . DEFINITION), |
| @@ -160,7 +161,7 @@ is also allowed as an element. */) | |||
| 160 | return (KEYMAPP (object) ? Qt : Qnil); | 161 | return (KEYMAPP (object) ? Qt : Qnil); |
| 161 | } | 162 | } |
| 162 | 163 | ||
| 163 | DEFUN ("keymap-prompt", Fkeymap_prompt, Skeymap_prompt, 1, 1, 0, | 164 | DEFUE ("keymap-prompt", Fkeymap_prompt, Skeymap_prompt, 1, 1, 0, |
| 164 | doc: /* Return the prompt-string of a keymap MAP. | 165 | doc: /* Return the prompt-string of a keymap MAP. |
| 165 | If non-nil, the prompt is shown in the echo-area | 166 | If non-nil, the prompt is shown in the echo-area |
| 166 | when reading a key-sequence to be looked-up in this keymap. */) | 167 | when reading a key-sequence to be looked-up in this keymap. */) |
| @@ -291,7 +292,7 @@ keymap_memberp (Lisp_Object map, Lisp_Object maps) | |||
| 291 | 292 | ||
| 292 | /* Set the parent keymap of MAP to PARENT. */ | 293 | /* Set the parent keymap of MAP to PARENT. */ |
| 293 | 294 | ||
| 294 | DEFUN ("set-keymap-parent", Fset_keymap_parent, Sset_keymap_parent, 2, 2, 0, | 295 | DEFUE ("set-keymap-parent", Fset_keymap_parent, Sset_keymap_parent, 2, 2, 0, |
| 295 | doc: /* Modify KEYMAP to set its parent map to PARENT. | 296 | doc: /* Modify KEYMAP to set its parent map to PARENT. |
| 296 | Return PARENT. PARENT should be nil or another keymap. */) | 297 | Return PARENT. PARENT should be nil or another keymap. */) |
| 297 | (Lisp_Object keymap, Lisp_Object parent) | 298 | (Lisp_Object keymap, Lisp_Object parent) |
| @@ -955,7 +956,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx, Lisp_Object def) | |||
| 955 | return def; | 956 | return def; |
| 956 | } | 957 | } |
| 957 | 958 | ||
| 958 | EXFUN (Fcopy_keymap, 1); | 959 | INFUN (Fcopy_keymap, 1); |
| 959 | 960 | ||
| 960 | static Lisp_Object | 961 | static Lisp_Object |
| 961 | copy_keymap_item (Lisp_Object elt) | 962 | copy_keymap_item (Lisp_Object elt) |
| @@ -1079,7 +1080,7 @@ is not copied. */) | |||
| 1079 | 1080 | ||
| 1080 | /* GC is possible in this function if it autoloads a keymap. */ | 1081 | /* GC is possible in this function if it autoloads a keymap. */ |
| 1081 | 1082 | ||
| 1082 | DEFUN ("define-key", Fdefine_key, Sdefine_key, 3, 3, 0, | 1083 | DEFUE ("define-key", Fdefine_key, Sdefine_key, 3, 3, 0, |
| 1083 | doc: /* In KEYMAP, define key sequence KEY as DEF. | 1084 | doc: /* In KEYMAP, define key sequence KEY as DEF. |
| 1084 | KEYMAP is a keymap. | 1085 | KEYMAP is a keymap. |
| 1085 | 1086 | ||
| @@ -1210,7 +1211,7 @@ binding KEY to DEF is added at the front of KEYMAP. */) | |||
| 1210 | 1211 | ||
| 1211 | /* This function may GC (it calls Fkey_binding). */ | 1212 | /* This function may GC (it calls Fkey_binding). */ |
| 1212 | 1213 | ||
| 1213 | DEFUN ("command-remapping", Fcommand_remapping, Scommand_remapping, 1, 3, 0, | 1214 | DEFUE ("command-remapping", Fcommand_remapping, Scommand_remapping, 1, 3, 0, |
| 1214 | doc: /* Return the remapping for command COMMAND. | 1215 | doc: /* Return the remapping for command COMMAND. |
| 1215 | Returns nil if COMMAND is not remapped (or not a symbol). | 1216 | Returns nil if COMMAND is not remapped (or not a symbol). |
| 1216 | 1217 | ||
| @@ -1518,7 +1519,7 @@ current_minor_maps (Lisp_Object **modeptr, Lisp_Object **mapptr) | |||
| 1518 | return i; | 1519 | return i; |
| 1519 | } | 1520 | } |
| 1520 | 1521 | ||
| 1521 | DEFUN ("current-active-maps", Fcurrent_active_maps, Scurrent_active_maps, | 1522 | DEFUE ("current-active-maps", Fcurrent_active_maps, Scurrent_active_maps, |
| 1522 | 0, 2, 0, | 1523 | 0, 2, 0, |
| 1523 | doc: /* Return a list of the currently active keymaps. | 1524 | doc: /* Return a list of the currently active keymaps. |
| 1524 | OLP if non-nil indicates that we should obey `overriding-local-map' and | 1525 | OLP if non-nil indicates that we should obey `overriding-local-map' and |
| @@ -1661,7 +1662,7 @@ like in the respective argument of `key-binding'. */) | |||
| 1661 | 1662 | ||
| 1662 | /* GC is possible in this function if it autoloads a keymap. */ | 1663 | /* GC is possible in this function if it autoloads a keymap. */ |
| 1663 | 1664 | ||
| 1664 | DEFUN ("key-binding", Fkey_binding, Skey_binding, 1, 4, 0, | 1665 | DEFUE ("key-binding", Fkey_binding, Skey_binding, 1, 4, 0, |
| 1665 | doc: /* Return the binding for command KEY in current keymaps. | 1666 | doc: /* Return the binding for command KEY in current keymaps. |
| 1666 | KEY is a string or vector, a sequence of keystrokes. | 1667 | KEY is a string or vector, a sequence of keystrokes. |
| 1667 | The binding is probably a symbol with a function definition. | 1668 | The binding is probably a symbol with a function definition. |
| @@ -2178,7 +2179,7 @@ Lisp_Object Qsingle_key_description, Qkey_description; | |||
| 2178 | 2179 | ||
| 2179 | /* This function cannot GC. */ | 2180 | /* This function cannot GC. */ |
| 2180 | 2181 | ||
| 2181 | DEFUN ("key-description", Fkey_description, Skey_description, 1, 2, 0, | 2182 | DEFUE ("key-description", Fkey_description, Skey_description, 1, 2, 0, |
| 2182 | doc: /* Return a pretty description of key-sequence KEYS. | 2183 | doc: /* Return a pretty description of key-sequence KEYS. |
| 2183 | Optional arg PREFIX is the sequence of keys leading up to KEYS. | 2184 | Optional arg PREFIX is the sequence of keys leading up to KEYS. |
| 2184 | Control characters turn into "C-foo" sequences, meta into "M-foo", | 2185 | Control characters turn into "C-foo" sequences, meta into "M-foo", |
| @@ -2397,7 +2398,7 @@ push_key_description (register unsigned int c, register char *p, int force_multi | |||
| 2397 | 2398 | ||
| 2398 | /* This function cannot GC. */ | 2399 | /* This function cannot GC. */ |
| 2399 | 2400 | ||
| 2400 | DEFUN ("single-key-description", Fsingle_key_description, | 2401 | DEFUE ("single-key-description", Fsingle_key_description, |
| 2401 | Ssingle_key_description, 1, 2, 0, | 2402 | Ssingle_key_description, 1, 2, 0, |
| 2402 | doc: /* Return a pretty description of command character KEY. | 2403 | doc: /* Return a pretty description of command character KEY. |
| 2403 | Control characters turn into C-whatever, etc. | 2404 | Control characters turn into C-whatever, etc. |
| @@ -2675,7 +2676,7 @@ where_is_internal (Lisp_Object definition, Lisp_Object keymaps, | |||
| 2675 | 2676 | ||
| 2676 | /* This function can GC if Flookup_key autoloads any keymaps. */ | 2677 | /* This function can GC if Flookup_key autoloads any keymaps. */ |
| 2677 | 2678 | ||
| 2678 | DEFUN ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, | 2679 | DEFUE ("where-is-internal", Fwhere_is_internal, Swhere_is_internal, 1, 5, 0, |
| 2679 | doc: /* Return list of keys that invoke DEFINITION. | 2680 | doc: /* Return list of keys that invoke DEFINITION. |
| 2680 | If KEYMAP is a keymap, search only KEYMAP and the global keymap. | 2681 | If KEYMAP is a keymap, search only KEYMAP and the global keymap. |
| 2681 | If KEYMAP is nil, search all the currently active keymaps. | 2682 | If KEYMAP is nil, search all the currently active keymaps. |
diff --git a/src/keymap.h b/src/keymap.h index 38c6e986784..2b9d58b39dc 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -27,7 +27,6 @@ extern Lisp_Object current_global_map; | |||
| 27 | EXFUN (Fmake_sparse_keymap, 1); | 27 | EXFUN (Fmake_sparse_keymap, 1); |
| 28 | EXFUN (Fkeymap_prompt, 1); | 28 | EXFUN (Fkeymap_prompt, 1); |
| 29 | EXFUN (Fdefine_key, 3); | 29 | EXFUN (Fdefine_key, 3); |
| 30 | EXFUN (Flookup_key, 3); | ||
| 31 | EXFUN (Fcommand_remapping, 3); | 30 | EXFUN (Fcommand_remapping, 3); |
| 32 | EXFUN (Fkey_binding, 4); | 31 | EXFUN (Fkey_binding, 4); |
| 33 | EXFUN (Fkey_description, 2); | 32 | EXFUN (Fkey_description, 2); |
| @@ -53,4 +52,3 @@ extern void map_keymap_canonical (Lisp_Object map, | |||
| 53 | Lisp_Object args, void *data); | 52 | Lisp_Object args, void *data); |
| 54 | 53 | ||
| 55 | #endif | 54 | #endif |
| 56 | |||
diff --git a/src/lisp.h b/src/lisp.h index 4859862c88f..6a28a0f81b3 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1804,8 +1804,12 @@ typedef struct { | |||
| 1804 | `doc' is documentation for the user. */ | 1804 | `doc' is documentation for the user. */ |
| 1805 | 1805 | ||
| 1806 | /* This version of DEFUN declares a function prototype with the right | 1806 | /* This version of DEFUN declares a function prototype with the right |
| 1807 | arguments, so we can catch errors with maxargs at compile-time. */ | 1807 | arguments, so we can catch errors with maxargs at compile-time. |
| 1808 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ | 1808 | DEFUN defines an internal function, and DEFUE is similar but defines a |
| 1809 | external function, which can be used in other C-language modules. */ | ||
| 1810 | #define DEFUN static DEFINE_FUNC | ||
| 1811 | #define DEFUE extern DEFINE_FUNC | ||
| 1812 | #define DEFINE_FUNC(lname, fnname, sname, minargs, maxargs, intspec, doc) \ | ||
| 1809 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ | 1813 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ |
| 1810 | DECL_ALIGN (struct Lisp_Subr, sname) = \ | 1814 | DECL_ALIGN (struct Lisp_Subr, sname) = \ |
| 1811 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ | 1815 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ |
| @@ -2279,6 +2283,8 @@ void staticpro (Lisp_Object *); | |||
| 2279 | appropriate prototype. */ | 2283 | appropriate prototype. */ |
| 2280 | #define EXFUN(fnname, maxargs) \ | 2284 | #define EXFUN(fnname, maxargs) \ |
| 2281 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs | 2285 | extern Lisp_Object fnname DEFUN_ARGS_ ## maxargs |
| 2286 | #define INFUN(fnname, maxargs) \ | ||
| 2287 | static Lisp_Object fnname DEFUN_ARGS_ ## maxargs | ||
| 2282 | 2288 | ||
| 2283 | /* Forward declarations for prototypes. */ | 2289 | /* Forward declarations for prototypes. */ |
| 2284 | struct window; | 2290 | struct window; |
| @@ -2404,7 +2410,6 @@ extern void init_coding_once (void); | |||
| 2404 | extern void syms_of_coding (void); | 2410 | extern void syms_of_coding (void); |
| 2405 | 2411 | ||
| 2406 | /* Defined in character.c */ | 2412 | /* Defined in character.c */ |
| 2407 | EXFUN (Funibyte_char_to_multibyte, 1); | ||
| 2408 | EXFUN (Fchar_width, 1); | 2413 | EXFUN (Fchar_width, 1); |
| 2409 | EXFUN (Fstring, MANY); | 2414 | EXFUN (Fstring, MANY); |
| 2410 | extern EMACS_INT chars_in_text (const unsigned char *, EMACS_INT); | 2415 | extern EMACS_INT chars_in_text (const unsigned char *, EMACS_INT); |
| @@ -2428,7 +2433,6 @@ extern void syms_of_composite (void); | |||
| 2428 | EXFUN (Fforward_word, 1); | 2433 | EXFUN (Fforward_word, 1); |
| 2429 | EXFUN (Fskip_chars_forward, 2); | 2434 | EXFUN (Fskip_chars_forward, 2); |
| 2430 | EXFUN (Fskip_chars_backward, 2); | 2435 | EXFUN (Fskip_chars_backward, 2); |
| 2431 | EXFUN (Fsyntax_table_p, 1); | ||
| 2432 | extern void init_syntax_once (void); | 2436 | extern void init_syntax_once (void); |
| 2433 | extern void syms_of_syntax (void); | 2437 | extern void syms_of_syntax (void); |
| 2434 | 2438 | ||
| @@ -2529,7 +2533,6 @@ extern void init_fringe_once (void); | |||
| 2529 | extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; | 2533 | extern Lisp_Object QCascent, QCmargin, QCrelief, Qcount, Qextension_data; |
| 2530 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; | 2534 | extern Lisp_Object QCconversion, QCcolor_symbols, QCheuristic_mask; |
| 2531 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; | 2535 | extern Lisp_Object QCindex, QCmatrix, QCcolor_adjustment, QCmask; |
| 2532 | EXFUN (Finit_image_library, 2); | ||
| 2533 | extern int x_bitmap_mask (struct frame *, int); | 2536 | extern int x_bitmap_mask (struct frame *, int); |
| 2534 | extern void syms_of_image (void); | 2537 | extern void syms_of_image (void); |
| 2535 | extern void init_image (void); | 2538 | extern void init_image (void); |
| @@ -2790,11 +2793,11 @@ EXFUN (Fread, 1); | |||
| 2790 | EXFUN (Fread_from_string, 3); | 2793 | EXFUN (Fread_from_string, 3); |
| 2791 | EXFUN (Fintern, 2); | 2794 | EXFUN (Fintern, 2); |
| 2792 | EXFUN (Fintern_soft, 2); | 2795 | EXFUN (Fintern_soft, 2); |
| 2796 | EXFUN (Funintern, 2); | ||
| 2793 | EXFUN (Fload, 5); | 2797 | EXFUN (Fload, 5); |
| 2794 | EXFUN (Fget_load_suffixes, 0); | 2798 | EXFUN (Fget_load_suffixes, 0); |
| 2795 | EXFUN (Fread_char, 3); | 2799 | EXFUN (Fread_char, 3); |
| 2796 | EXFUN (Fread_event, 3); | 2800 | EXFUN (Fread_event, 3); |
| 2797 | EXFUN (Feval_region, 4); | ||
| 2798 | extern Lisp_Object check_obarray (Lisp_Object); | 2801 | extern Lisp_Object check_obarray (Lisp_Object); |
| 2799 | extern Lisp_Object intern (const char *); | 2802 | extern Lisp_Object intern (const char *); |
| 2800 | extern Lisp_Object intern_c_string (const char *); | 2803 | extern Lisp_Object intern_c_string (const char *); |
| @@ -2852,7 +2855,6 @@ EXFUN (Feval, 2); | |||
| 2852 | extern Lisp_Object eval_sub (Lisp_Object form); | 2855 | extern Lisp_Object eval_sub (Lisp_Object form); |
| 2853 | EXFUN (Fapply, MANY); | 2856 | EXFUN (Fapply, MANY); |
| 2854 | EXFUN (Ffuncall, MANY); | 2857 | EXFUN (Ffuncall, MANY); |
| 2855 | EXFUN (Fbacktrace, 0); | ||
| 2856 | extern Lisp_Object apply1 (Lisp_Object, Lisp_Object); | 2858 | extern Lisp_Object apply1 (Lisp_Object, Lisp_Object); |
| 2857 | extern Lisp_Object call0 (Lisp_Object); | 2859 | extern Lisp_Object call0 (Lisp_Object); |
| 2858 | extern Lisp_Object call1 (Lisp_Object, Lisp_Object); | 2860 | extern Lisp_Object call1 (Lisp_Object, Lisp_Object); |
| @@ -2877,7 +2879,6 @@ extern void verror (const char *, va_list) | |||
| 2877 | NO_RETURN ATTRIBUTE_FORMAT_PRINTF (1, 0); | 2879 | NO_RETURN ATTRIBUTE_FORMAT_PRINTF (1, 0); |
| 2878 | extern void do_autoload (Lisp_Object, Lisp_Object); | 2880 | extern void do_autoload (Lisp_Object, Lisp_Object); |
| 2879 | extern Lisp_Object un_autoload (Lisp_Object); | 2881 | extern Lisp_Object un_autoload (Lisp_Object); |
| 2880 | EXFUN (Ffetch_bytecode, 1); | ||
| 2881 | extern void init_eval_once (void); | 2882 | extern void init_eval_once (void); |
| 2882 | extern Lisp_Object safe_call (size_t, Lisp_Object *); | 2883 | extern Lisp_Object safe_call (size_t, Lisp_Object *); |
| 2883 | extern Lisp_Object safe_call1 (Lisp_Object, Lisp_Object); | 2884 | extern Lisp_Object safe_call1 (Lisp_Object, Lisp_Object); |
| @@ -2921,6 +2922,7 @@ EXFUN (Fwiden, 0); | |||
| 2921 | EXFUN (Fuser_login_name, 1); | 2922 | EXFUN (Fuser_login_name, 1); |
| 2922 | EXFUN (Fsystem_name, 0); | 2923 | EXFUN (Fsystem_name, 0); |
| 2923 | EXFUN (Fcurrent_time, 0); | 2924 | EXFUN (Fcurrent_time, 0); |
| 2925 | EXFUN (Fget_internal_run_time, 0); | ||
| 2924 | extern EMACS_INT clip_to_bounds (EMACS_INT, EMACS_INT, EMACS_INT); | 2926 | extern EMACS_INT clip_to_bounds (EMACS_INT, EMACS_INT, EMACS_INT); |
| 2925 | extern Lisp_Object make_buffer_string (EMACS_INT, EMACS_INT, int); | 2927 | extern Lisp_Object make_buffer_string (EMACS_INT, EMACS_INT, int); |
| 2926 | extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT, | 2928 | extern Lisp_Object make_buffer_string_both (EMACS_INT, EMACS_INT, EMACS_INT, |
| @@ -2953,7 +2955,6 @@ EXFUN (Fset_buffer, 1); | |||
| 2953 | extern Lisp_Object set_buffer_if_live (Lisp_Object); | 2955 | extern Lisp_Object set_buffer_if_live (Lisp_Object); |
| 2954 | EXFUN (Fbarf_if_buffer_read_only, 0); | 2956 | EXFUN (Fbarf_if_buffer_read_only, 0); |
| 2955 | EXFUN (Fcurrent_buffer, 0); | 2957 | EXFUN (Fcurrent_buffer, 0); |
| 2956 | EXFUN (Fswitch_to_buffer, 2); | ||
| 2957 | EXFUN (Fother_buffer, 3); | 2958 | EXFUN (Fother_buffer, 3); |
| 2958 | EXFUN (Foverlay_get, 2); | 2959 | EXFUN (Foverlay_get, 2); |
| 2959 | EXFUN (Fbuffer_modified_p, 1); | 2960 | EXFUN (Fbuffer_modified_p, 1); |
| @@ -3018,7 +3019,6 @@ EXFUN (Funhandled_file_name_directory, 1); | |||
| 3018 | EXFUN (Ffile_directory_p, 1); | 3019 | EXFUN (Ffile_directory_p, 1); |
| 3019 | EXFUN (Fwrite_region, 7); | 3020 | EXFUN (Fwrite_region, 7); |
| 3020 | EXFUN (Ffile_readable_p, 1); | 3021 | EXFUN (Ffile_readable_p, 1); |
| 3021 | EXFUN (Ffile_executable_p, 1); | ||
| 3022 | EXFUN (Fread_file_name, 6); | 3022 | EXFUN (Fread_file_name, 6); |
| 3023 | extern Lisp_Object close_file_unwind (Lisp_Object); | 3023 | extern Lisp_Object close_file_unwind (Lisp_Object); |
| 3024 | extern Lisp_Object restore_point_unwind (Lisp_Object); | 3024 | extern Lisp_Object restore_point_unwind (Lisp_Object); |
| @@ -3026,7 +3026,6 @@ extern void report_file_error (const char *, Lisp_Object) NO_RETURN; | |||
| 3026 | extern int internal_delete_file (Lisp_Object); | 3026 | extern int internal_delete_file (Lisp_Object); |
| 3027 | extern void syms_of_fileio (void); | 3027 | extern void syms_of_fileio (void); |
| 3028 | extern Lisp_Object make_temp_name (Lisp_Object, int); | 3028 | extern Lisp_Object make_temp_name (Lisp_Object, int); |
| 3029 | EXFUN (Fmake_symbolic_link, 3); | ||
| 3030 | extern Lisp_Object Qdelete_file; | 3029 | extern Lisp_Object Qdelete_file; |
| 3031 | 3030 | ||
| 3032 | /* Defined in abbrev.c */ | 3031 | /* Defined in abbrev.c */ |
| @@ -3119,7 +3118,6 @@ extern int input_pending; | |||
| 3119 | EXFUN (Fdiscard_input, 0); | 3118 | EXFUN (Fdiscard_input, 0); |
| 3120 | EXFUN (Frecursive_edit, 0); | 3119 | EXFUN (Frecursive_edit, 0); |
| 3121 | EXFUN (Ftop_level, 0) NO_RETURN; | 3120 | EXFUN (Ftop_level, 0) NO_RETURN; |
| 3122 | EXFUN (Fcommand_execute, 4); | ||
| 3123 | extern Lisp_Object menu_bar_items (Lisp_Object); | 3121 | extern Lisp_Object menu_bar_items (Lisp_Object); |
| 3124 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); | 3122 | extern Lisp_Object tool_bar_items (Lisp_Object, int *); |
| 3125 | extern Lisp_Object Qvertical_scroll_bar; | 3123 | extern Lisp_Object Qvertical_scroll_bar; |
| @@ -3221,7 +3219,6 @@ extern int running_asynch_code; | |||
| 3221 | 3219 | ||
| 3222 | /* Defined in process.c */ | 3220 | /* Defined in process.c */ |
| 3223 | extern Lisp_Object QCtype, Qlocal; | 3221 | extern Lisp_Object QCtype, Qlocal; |
| 3224 | EXFUN (Fget_process, 1); | ||
| 3225 | EXFUN (Fget_buffer_process, 1); | 3222 | EXFUN (Fget_buffer_process, 1); |
| 3226 | EXFUN (Fprocess_status, 1); | 3223 | EXFUN (Fprocess_status, 1); |
| 3227 | EXFUN (Fkill_process, 2); | 3224 | EXFUN (Fkill_process, 2); |
| @@ -3255,7 +3252,6 @@ extern void syms_of_callproc (void); | |||
| 3255 | /* Defined in doc.c */ | 3252 | /* Defined in doc.c */ |
| 3256 | extern Lisp_Object Qfunction_documentation; | 3253 | extern Lisp_Object Qfunction_documentation; |
| 3257 | EXFUN (Fsubstitute_command_keys, 1); | 3254 | EXFUN (Fsubstitute_command_keys, 1); |
| 3258 | EXFUN (Fdocumentation_property, 3); | ||
| 3259 | extern Lisp_Object read_doc_string (Lisp_Object); | 3255 | extern Lisp_Object read_doc_string (Lisp_Object); |
| 3260 | extern Lisp_Object get_doc_string (Lisp_Object, int, int); | 3256 | extern Lisp_Object get_doc_string (Lisp_Object, int, int); |
| 3261 | extern void syms_of_doc (void); | 3257 | extern void syms_of_doc (void); |
| @@ -3263,7 +3259,6 @@ extern int read_bytecode_char (int); | |||
| 3263 | 3259 | ||
| 3264 | /* Defined in bytecode.c */ | 3260 | /* Defined in bytecode.c */ |
| 3265 | extern Lisp_Object Qbytecode; | 3261 | extern Lisp_Object Qbytecode; |
| 3266 | EXFUN (Fbyte_code, 3); | ||
| 3267 | extern void syms_of_bytecode (void); | 3262 | extern void syms_of_bytecode (void); |
| 3268 | extern struct byte_stack *byte_stack_list; | 3263 | extern struct byte_stack *byte_stack_list; |
| 3269 | #ifdef BYTE_MARK_STACK | 3264 | #ifdef BYTE_MARK_STACK |
| @@ -3384,7 +3379,6 @@ extern void syms_of_category (void); | |||
| 3384 | extern void syms_of_ccl (void); | 3379 | extern void syms_of_ccl (void); |
| 3385 | 3380 | ||
| 3386 | /* Defined in dired.c */ | 3381 | /* Defined in dired.c */ |
| 3387 | EXFUN (Ffile_attributes, 2); | ||
| 3388 | extern void syms_of_dired (void); | 3382 | extern void syms_of_dired (void); |
| 3389 | extern Lisp_Object directory_files_internal (Lisp_Object, Lisp_Object, | 3383 | extern Lisp_Object directory_files_internal (Lisp_Object, Lisp_Object, |
| 3390 | Lisp_Object, Lisp_Object, | 3384 | Lisp_Object, Lisp_Object, |
diff --git a/src/lread.c b/src/lread.c index 8777bc34545..7d12f5a85d3 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -681,7 +681,7 @@ read_filtered_event (int no_switch_frame, int ascii_required, | |||
| 681 | return val; | 681 | return val; |
| 682 | } | 682 | } |
| 683 | 683 | ||
| 684 | DEFUN ("read-char", Fread_char, Sread_char, 0, 3, 0, | 684 | DEFUE ("read-char", Fread_char, Sread_char, 0, 3, 0, |
| 685 | doc: /* Read a character from the command input (keyboard or macro). | 685 | doc: /* Read a character from the command input (keyboard or macro). |
| 686 | It is returned as a number. | 686 | It is returned as a number. |
| 687 | If the character has modifiers, they are resolved and reflected to the | 687 | If the character has modifiers, they are resolved and reflected to the |
| @@ -714,7 +714,7 @@ floating-point value. */) | |||
| 714 | : make_number (char_resolve_modifier_mask (XINT (val)))); | 714 | : make_number (char_resolve_modifier_mask (XINT (val)))); |
| 715 | } | 715 | } |
| 716 | 716 | ||
| 717 | DEFUN ("read-event", Fread_event, Sread_event, 0, 3, 0, | 717 | DEFUE ("read-event", Fread_event, Sread_event, 0, 3, 0, |
| 718 | doc: /* Read an event object from the input stream. | 718 | doc: /* Read an event object from the input stream. |
| 719 | If the optional argument PROMPT is non-nil, display that as a prompt. | 719 | If the optional argument PROMPT is non-nil, display that as a prompt. |
| 720 | If the optional argument INHERIT-INPUT-METHOD is non-nil and some | 720 | If the optional argument INHERIT-INPUT-METHOD is non-nil and some |
| @@ -950,7 +950,7 @@ load_warn_old_style_backquotes (Lisp_Object file) | |||
| 950 | return Qnil; | 950 | return Qnil; |
| 951 | } | 951 | } |
| 952 | 952 | ||
| 953 | DEFUN ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0, | 953 | DEFUE ("get-load-suffixes", Fget_load_suffixes, Sget_load_suffixes, 0, 0, 0, |
| 954 | doc: /* Return the suffixes that `load' should try if a suffix is \ | 954 | doc: /* Return the suffixes that `load' should try if a suffix is \ |
| 955 | required. | 955 | required. |
| 956 | This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */) | 956 | This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */) |
| @@ -972,7 +972,7 @@ This uses the variables `load-suffixes' and `load-file-rep-suffixes'. */) | |||
| 972 | return Fnreverse (lst); | 972 | return Fnreverse (lst); |
| 973 | } | 973 | } |
| 974 | 974 | ||
| 975 | DEFUN ("load", Fload, Sload, 1, 5, 0, | 975 | DEFUE ("load", Fload, Sload, 1, 5, 0, |
| 976 | doc: /* Execute a file of Lisp code named FILE. | 976 | doc: /* Execute a file of Lisp code named FILE. |
| 977 | First try FILE with `.elc' appended, then try with `.el', | 977 | First try FILE with `.elc' appended, then try with `.el', |
| 978 | then try FILE unmodified (the exact suffixes in the exact order are | 978 | then try FILE unmodified (the exact suffixes in the exact order are |
| @@ -1906,7 +1906,7 @@ This function does not move point. */) | |||
| 1906 | } | 1906 | } |
| 1907 | 1907 | ||
| 1908 | 1908 | ||
| 1909 | DEFUN ("read", Fread, Sread, 0, 1, 0, | 1909 | DEFUE ("read", Fread, Sread, 0, 1, 0, |
| 1910 | doc: /* Read one Lisp expression as text from STREAM, return as Lisp object. | 1910 | doc: /* Read one Lisp expression as text from STREAM, return as Lisp object. |
| 1911 | If STREAM is nil, use the value of `standard-input' (which see). | 1911 | If STREAM is nil, use the value of `standard-input' (which see). |
| 1912 | STREAM or the value of `standard-input' may be: | 1912 | STREAM or the value of `standard-input' may be: |
| @@ -1929,7 +1929,7 @@ STREAM or the value of `standard-input' may be: | |||
| 1929 | return read_internal_start (stream, Qnil, Qnil); | 1929 | return read_internal_start (stream, Qnil, Qnil); |
| 1930 | } | 1930 | } |
| 1931 | 1931 | ||
| 1932 | DEFUN ("read-from-string", Fread_from_string, Sread_from_string, 1, 3, 0, | 1932 | DEFUE ("read-from-string", Fread_from_string, Sread_from_string, 1, 3, 0, |
| 1933 | doc: /* Read one Lisp expression which is represented as text by STRING. | 1933 | doc: /* Read one Lisp expression which is represented as text by STRING. |
| 1934 | Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX). | 1934 | Returns a cons: (OBJECT-READ . FINAL-STRING-INDEX). |
| 1935 | START and END optionally delimit a substring of STRING from which to read; | 1935 | START and END optionally delimit a substring of STRING from which to read; |
| @@ -3654,7 +3654,7 @@ make_symbol (const char *str) | |||
| 3654 | : make_string (str, len)); | 3654 | : make_string (str, len)); |
| 3655 | } | 3655 | } |
| 3656 | 3656 | ||
| 3657 | DEFUN ("intern", Fintern, Sintern, 1, 2, 0, | 3657 | DEFUE ("intern", Fintern, Sintern, 1, 2, 0, |
| 3658 | doc: /* Return the canonical symbol whose name is STRING. | 3658 | doc: /* Return the canonical symbol whose name is STRING. |
| 3659 | If there is none, one is created by this function and returned. | 3659 | If there is none, one is created by this function and returned. |
| 3660 | A second optional argument specifies the obarray to use; | 3660 | A second optional argument specifies the obarray to use; |
| @@ -3700,7 +3700,7 @@ it defaults to the value of `obarray'. */) | |||
| 3700 | return sym; | 3700 | return sym; |
| 3701 | } | 3701 | } |
| 3702 | 3702 | ||
| 3703 | DEFUN ("intern-soft", Fintern_soft, Sintern_soft, 1, 2, 0, | 3703 | DEFUE ("intern-soft", Fintern_soft, Sintern_soft, 1, 2, 0, |
| 3704 | doc: /* Return the canonical symbol named NAME, or nil if none exists. | 3704 | doc: /* Return the canonical symbol named NAME, or nil if none exists. |
| 3705 | NAME may be a string or a symbol. If it is a symbol, that exact | 3705 | NAME may be a string or a symbol. If it is a symbol, that exact |
| 3706 | symbol is searched for. | 3706 | symbol is searched for. |
| @@ -3728,7 +3728,7 @@ it defaults to the value of `obarray'. */) | |||
| 3728 | return tem; | 3728 | return tem; |
| 3729 | } | 3729 | } |
| 3730 | 3730 | ||
| 3731 | DEFUN ("unintern", Funintern, Sunintern, 1, 2, 0, | 3731 | DEFUE ("unintern", Funintern, Sunintern, 1, 2, 0, |
| 3732 | doc: /* Delete the symbol named NAME, if any, from OBARRAY. | 3732 | doc: /* Delete the symbol named NAME, if any, from OBARRAY. |
| 3733 | The value is t if a symbol was found and deleted, nil otherwise. | 3733 | The value is t if a symbol was found and deleted, nil otherwise. |
| 3734 | NAME may be a string or a symbol. If it is a symbol, that symbol | 3734 | NAME may be a string or a symbol. If it is a symbol, that symbol |
diff --git a/src/macros.c b/src/macros.c index d90b31b503f..fd771b52dee 100644 --- a/src/macros.c +++ b/src/macros.c | |||
| @@ -215,7 +215,7 @@ finalize_kbd_macro_chars (void) | |||
| 215 | current_kboard->kbd_macro_end = current_kboard->kbd_macro_ptr; | 215 | current_kboard->kbd_macro_end = current_kboard->kbd_macro_ptr; |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events, | 218 | DEFUE ("cancel-kbd-macro-events", Fcancel_kbd_macro_events, |
| 219 | Scancel_kbd_macro_events, 0, 0, 0, | 219 | Scancel_kbd_macro_events, 0, 0, 0, |
| 220 | doc: /* Cancel the events added to a keyboard macro for this command. */) | 220 | doc: /* Cancel the events added to a keyboard macro for this command. */) |
| 221 | (void) | 221 | (void) |
| @@ -282,7 +282,7 @@ pop_kbd_macro (Lisp_Object info) | |||
| 282 | return Qnil; | 282 | return Qnil; |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | DEFUN ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 3, 0, | 285 | DEFUE ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 3, 0, |
| 286 | doc: /* Execute MACRO as string of editor command characters. | 286 | doc: /* Execute MACRO as string of editor command characters. |
| 287 | If MACRO is a symbol, its function definition is used. | 287 | If MACRO is a symbol, its function definition is used. |
| 288 | COUNT is a repeat count, or nil for once, or 0 for infinite loop. | 288 | COUNT is a repeat count, or nil for once, or 0 for infinite loop. |
| @@ -391,4 +391,3 @@ This is nil when not executing a keyboard macro. */); | |||
| 391 | DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro, | 391 | DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro, |
| 392 | doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */); | 392 | doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */); |
| 393 | } | 393 | } |
| 394 | |||
diff --git a/src/marker.c b/src/marker.c index 7d461099140..b8567c2810f 100644 --- a/src/marker.c +++ b/src/marker.c | |||
| @@ -420,7 +420,7 @@ buf_bytepos_to_charpos (struct buffer *b, EMACS_INT bytepos) | |||
| 420 | 420 | ||
| 421 | /* Operations on markers. */ | 421 | /* Operations on markers. */ |
| 422 | 422 | ||
| 423 | DEFUN ("marker-buffer", Fmarker_buffer, Smarker_buffer, 1, 1, 0, | 423 | DEFUE ("marker-buffer", Fmarker_buffer, Smarker_buffer, 1, 1, 0, |
| 424 | doc: /* Return the buffer that MARKER points into, or nil if none. | 424 | doc: /* Return the buffer that MARKER points into, or nil if none. |
| 425 | Returns nil if MARKER points into a dead buffer. */) | 425 | Returns nil if MARKER points into a dead buffer. */) |
| 426 | (register Lisp_Object marker) | 426 | (register Lisp_Object marker) |
| @@ -440,7 +440,7 @@ Returns nil if MARKER points into a dead buffer. */) | |||
| 440 | return Qnil; | 440 | return Qnil; |
| 441 | } | 441 | } |
| 442 | 442 | ||
| 443 | DEFUN ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0, | 443 | DEFUE ("marker-position", Fmarker_position, Smarker_position, 1, 1, 0, |
| 444 | doc: /* Return the position MARKER points at, as a character number. | 444 | doc: /* Return the position MARKER points at, as a character number. |
| 445 | Returns nil if MARKER points nowhere. */) | 445 | Returns nil if MARKER points nowhere. */) |
| 446 | (Lisp_Object marker) | 446 | (Lisp_Object marker) |
| @@ -452,7 +452,7 @@ Returns nil if MARKER points nowhere. */) | |||
| 452 | return Qnil; | 452 | return Qnil; |
| 453 | } | 453 | } |
| 454 | 454 | ||
| 455 | DEFUN ("set-marker", Fset_marker, Sset_marker, 2, 3, 0, | 455 | DEFUE ("set-marker", Fset_marker, Sset_marker, 2, 3, 0, |
| 456 | doc: /* Position MARKER before character number POSITION in BUFFER. | 456 | doc: /* Position MARKER before character number POSITION in BUFFER. |
| 457 | BUFFER defaults to the current buffer. | 457 | BUFFER defaults to the current buffer. |
| 458 | If POSITION is nil, makes marker point nowhere. | 458 | If POSITION is nil, makes marker point nowhere. |
| @@ -796,7 +796,7 @@ marker_byte_position (Lisp_Object marker) | |||
| 796 | return i; | 796 | return i; |
| 797 | } | 797 | } |
| 798 | 798 | ||
| 799 | DEFUN ("copy-marker", Fcopy_marker, Scopy_marker, 0, 2, 0, | 799 | DEFUE ("copy-marker", Fcopy_marker, Scopy_marker, 0, 2, 0, |
| 800 | doc: /* Return a new marker pointing at the same place as MARKER. | 800 | doc: /* Return a new marker pointing at the same place as MARKER. |
| 801 | If argument is a number, makes a new marker pointing | 801 | If argument is a number, makes a new marker pointing |
| 802 | at that position in the current buffer. | 802 | at that position in the current buffer. |
diff --git a/src/menu.c b/src/menu.c index 3bfb74863ae..bf6bb6486bd 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1017,7 +1017,7 @@ find_and_return_menu_selection (FRAME_PTR f, int keymaps, void *client_data) | |||
| 1017 | } | 1017 | } |
| 1018 | #endif /* HAVE_NS */ | 1018 | #endif /* HAVE_NS */ |
| 1019 | 1019 | ||
| 1020 | DEFUN ("x-popup-menu", Fx_popup_menu, Sx_popup_menu, 2, 2, 0, | 1020 | DEFUE ("x-popup-menu", Fx_popup_menu, Sx_popup_menu, 2, 2, 0, |
| 1021 | doc: /* Pop up a deck-of-cards menu and return user's selection. | 1021 | doc: /* Pop up a deck-of-cards menu and return user's selection. |
| 1022 | POSITION is a position specification. This is either a mouse button event | 1022 | POSITION is a position specification. This is either a mouse button event |
| 1023 | or a list ((XOFFSET YOFFSET) WINDOW) | 1023 | or a list ((XOFFSET YOFFSET) WINDOW) |
diff --git a/src/minibuf.c b/src/minibuf.c index 54cb9c1acd7..3e8fc0c2424 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -872,7 +872,8 @@ read_minibuf_unwind (Lisp_Object data) | |||
| 872 | } | 872 | } |
| 873 | 873 | ||
| 874 | 874 | ||
| 875 | DEFUN ("read-from-minibuffer", Fread_from_minibuffer, Sread_from_minibuffer, 1, 7, 0, | 875 | DEFUE ("read-from-minibuffer", Fread_from_minibuffer, |
| 876 | Sread_from_minibuffer, 1, 7, 0, | ||
| 876 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. | 877 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. |
| 877 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to | 878 | The optional second arg INITIAL-CONTENTS is an obsolete alternative to |
| 878 | DEFAULT-VALUE. It normally should be nil in new code, except when | 879 | DEFAULT-VALUE. It normally should be nil in new code, except when |
| @@ -949,7 +950,7 @@ and some related functions, which use zero-indexing for POSITION. */) | |||
| 949 | return val; | 950 | return val; |
| 950 | } | 951 | } |
| 951 | 952 | ||
| 952 | DEFUN ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0, | 953 | DEFUE ("read-minibuffer", Fread_minibuffer, Sread_minibuffer, 1, 2, 0, |
| 953 | doc: /* Return a Lisp object read using the minibuffer, unevaluated. | 954 | doc: /* Return a Lisp object read using the minibuffer, unevaluated. |
| 954 | Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS | 955 | Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS |
| 955 | is a string to insert in the minibuffer before reading. | 956 | is a string to insert in the minibuffer before reading. |
| @@ -963,7 +964,7 @@ Such arguments are used as in `read-from-minibuffer'.) */) | |||
| 963 | make_number (0), Qnil, 0, 0); | 964 | make_number (0), Qnil, 0, 0); |
| 964 | } | 965 | } |
| 965 | 966 | ||
| 966 | DEFUN ("eval-minibuffer", Feval_minibuffer, Seval_minibuffer, 1, 2, 0, | 967 | DEFUE ("eval-minibuffer", Feval_minibuffer, Seval_minibuffer, 1, 2, 0, |
| 967 | doc: /* Return value of Lisp expression read using the minibuffer. | 968 | doc: /* Return value of Lisp expression read using the minibuffer. |
| 968 | Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS | 969 | Prompt with PROMPT. If non-nil, optional second arg INITIAL-CONTENTS |
| 969 | is a string to insert in the minibuffer before reading. | 970 | is a string to insert in the minibuffer before reading. |
| @@ -979,7 +980,7 @@ Such arguments are used as in `read-from-minibuffer'.) */) | |||
| 979 | 980 | ||
| 980 | /* Functions that use the minibuffer to read various things. */ | 981 | /* Functions that use the minibuffer to read various things. */ |
| 981 | 982 | ||
| 982 | DEFUN ("read-string", Fread_string, Sread_string, 1, 5, 0, | 983 | DEFUE ("read-string", Fread_string, Sread_string, 1, 5, 0, |
| 983 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. | 984 | doc: /* Read a string from the minibuffer, prompting with string PROMPT. |
| 984 | If non-nil, second arg INITIAL-INPUT is a string to insert before reading. | 985 | If non-nil, second arg INITIAL-INPUT is a string to insert before reading. |
| 985 | This argument has been superseded by DEFAULT-VALUE and should normally | 986 | This argument has been superseded by DEFAULT-VALUE and should normally |
| @@ -1056,7 +1057,7 @@ Prompt with PROMPT. */) | |||
| 1056 | } | 1057 | } |
| 1057 | #endif /* NOTDEF */ | 1058 | #endif /* NOTDEF */ |
| 1058 | 1059 | ||
| 1059 | DEFUN ("read-variable", Fread_variable, Sread_variable, 1, 2, 0, | 1060 | DEFUE ("read-variable", Fread_variable, Sread_variable, 1, 2, 0, |
| 1060 | doc: /* Read the name of a user variable and return it as a symbol. | 1061 | doc: /* Read the name of a user variable and return it as a symbol. |
| 1061 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element | 1062 | Prompt with PROMPT. By default, return DEFAULT-VALUE or its first element |
| 1062 | if it is a list. | 1063 | if it is a list. |
| @@ -1080,7 +1081,7 @@ A user variable is one for which `user-variable-p' returns non-nil. */) | |||
| 1080 | return Fintern (name, Qnil); | 1081 | return Fintern (name, Qnil); |
| 1081 | } | 1082 | } |
| 1082 | 1083 | ||
| 1083 | DEFUN ("read-buffer", Fread_buffer, Sread_buffer, 1, 3, 0, | 1084 | DEFUE ("read-buffer", Fread_buffer, Sread_buffer, 1, 3, 0, |
| 1084 | doc: /* Read the name of a buffer and return as a string. | 1085 | doc: /* Read the name of a buffer and return as a string. |
| 1085 | Prompt with PROMPT. | 1086 | Prompt with PROMPT. |
| 1086 | Optional second arg DEF is value to return if user enters an empty line. | 1087 | Optional second arg DEF is value to return if user enters an empty line. |
| @@ -1616,7 +1617,7 @@ with a space are ignored unless STRING itself starts with a space. */) | |||
| 1616 | return Fnreverse (allmatches); | 1617 | return Fnreverse (allmatches); |
| 1617 | } | 1618 | } |
| 1618 | 1619 | ||
| 1619 | DEFUN ("completing-read", Fcompleting_read, Scompleting_read, 2, 8, 0, | 1620 | DEFUE ("completing-read", Fcompleting_read, Scompleting_read, 2, 8, 0, |
| 1620 | doc: /* Read a string in the minibuffer, with completion. | 1621 | doc: /* Read a string in the minibuffer, with completion. |
| 1621 | PROMPT is a string to prompt with; normally it ends in a colon and a space. | 1622 | PROMPT is a string to prompt with; normally it ends in a colon and a space. |
| 1622 | COLLECTION can be a list of strings, an alist, an obarray or a hash table. | 1623 | COLLECTION can be a list of strings, an alist, an obarray or a hash table. |
| @@ -1917,7 +1918,7 @@ The arguments STRING and PREDICATE are as in `try-completion', | |||
| 1917 | 1918 | ||
| 1918 | /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ | 1919 | /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ |
| 1919 | 1920 | ||
| 1920 | DEFUN ("assoc-string", Fassoc_string, Sassoc_string, 2, 3, 0, | 1921 | DEFUE ("assoc-string", Fassoc_string, Sassoc_string, 2, 3, 0, |
| 1921 | doc: /* Like `assoc' but specifically for strings (and symbols). | 1922 | doc: /* Like `assoc' but specifically for strings (and symbols). |
| 1922 | 1923 | ||
| 1923 | This returns the first element of LIST whose car matches the string or | 1924 | This returns the first element of LIST whose car matches the string or |
diff --git a/src/print.c b/src/print.c index f68f04ac5fa..f039b40aa60 100644 --- a/src/print.c +++ b/src/print.c | |||
| @@ -526,7 +526,7 @@ static void print_preprocess (Lisp_Object obj); | |||
| 526 | static void print_preprocess_string (INTERVAL interval, Lisp_Object arg); | 526 | static void print_preprocess_string (INTERVAL interval, Lisp_Object arg); |
| 527 | static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag); | 527 | static void print_object (Lisp_Object obj, register Lisp_Object printcharfun, int escapeflag); |
| 528 | 528 | ||
| 529 | DEFUN ("terpri", Fterpri, Sterpri, 0, 1, 0, | 529 | DEFUE ("terpri", Fterpri, Sterpri, 0, 1, 0, |
| 530 | doc: /* Output a newline to stream PRINTCHARFUN. | 530 | doc: /* Output a newline to stream PRINTCHARFUN. |
| 531 | If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) | 531 | If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) |
| 532 | (Lisp_Object printcharfun) | 532 | (Lisp_Object printcharfun) |
| @@ -541,7 +541,7 @@ If PRINTCHARFUN is omitted or nil, the value of `standard-output' is used. */) | |||
| 541 | return Qt; | 541 | return Qt; |
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | DEFUN ("prin1", Fprin1, Sprin1, 1, 2, 0, | 544 | DEFUE ("prin1", Fprin1, Sprin1, 1, 2, 0, |
| 545 | doc: /* Output the printed representation of OBJECT, any Lisp object. | 545 | doc: /* Output the printed representation of OBJECT, any Lisp object. |
| 546 | Quoting characters are printed when needed to make output that `read' | 546 | Quoting characters are printed when needed to make output that `read' |
| 547 | can handle, whenever this is possible. For complex objects, the behavior | 547 | can handle, whenever this is possible. For complex objects, the behavior |
| @@ -579,7 +579,7 @@ is used instead. */) | |||
| 579 | /* a buffer which is used to hold output being built by prin1-to-string */ | 579 | /* a buffer which is used to hold output being built by prin1-to-string */ |
| 580 | Lisp_Object Vprin1_to_string_buffer; | 580 | Lisp_Object Vprin1_to_string_buffer; |
| 581 | 581 | ||
| 582 | DEFUN ("prin1-to-string", Fprin1_to_string, Sprin1_to_string, 1, 2, 0, | 582 | DEFUE ("prin1-to-string", Fprin1_to_string, Sprin1_to_string, 1, 2, 0, |
| 583 | doc: /* Return a string containing the printed representation of OBJECT. | 583 | doc: /* Return a string containing the printed representation of OBJECT. |
| 584 | OBJECT can be any Lisp object. This function outputs quoting characters | 584 | OBJECT can be any Lisp object. This function outputs quoting characters |
| 585 | when necessary to make output that `read' can handle, whenever possible, | 585 | when necessary to make output that `read' can handle, whenever possible, |
| @@ -636,7 +636,7 @@ A printed representation of an object is text which describes that object. */) | |||
| 636 | return unbind_to (count, object); | 636 | return unbind_to (count, object); |
| 637 | } | 637 | } |
| 638 | 638 | ||
| 639 | DEFUN ("princ", Fprinc, Sprinc, 1, 2, 0, | 639 | DEFUE ("princ", Fprinc, Sprinc, 1, 2, 0, |
| 640 | doc: /* Output the printed representation of OBJECT, any Lisp object. | 640 | doc: /* Output the printed representation of OBJECT, any Lisp object. |
| 641 | No quoting characters are used; no delimiters are printed around | 641 | No quoting characters are used; no delimiters are printed around |
| 642 | the contents of strings. | 642 | the contents of strings. |
| @@ -670,7 +670,7 @@ is used instead. */) | |||
| 670 | return object; | 670 | return object; |
| 671 | } | 671 | } |
| 672 | 672 | ||
| 673 | DEFUN ("print", Fprint, Sprint, 1, 2, 0, | 673 | DEFUE ("print", Fprint, Sprint, 1, 2, 0, |
| 674 | doc: /* Output the printed representation of OBJECT, with newlines around it. | 674 | doc: /* Output the printed representation of OBJECT, with newlines around it. |
| 675 | Quoting characters are printed when needed to make output that `read' | 675 | Quoting characters are printed when needed to make output that `read' |
| 676 | can handle, whenever this is possible. For complex objects, the behavior | 676 | can handle, whenever this is possible. For complex objects, the behavior |
| @@ -813,7 +813,7 @@ safe_debug_print (Lisp_Object arg) | |||
| 813 | } | 813 | } |
| 814 | 814 | ||
| 815 | 815 | ||
| 816 | DEFUN ("error-message-string", Ferror_message_string, Serror_message_string, | 816 | DEFUE ("error-message-string", Ferror_message_string, Serror_message_string, |
| 817 | 1, 1, 0, | 817 | 1, 1, 0, |
| 818 | doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message. | 818 | doc: /* Convert an error value (ERROR-SYMBOL . DATA) to an error message. |
| 819 | See Info anchor `(elisp)Definition of signal' for some details on how this | 819 | See Info anchor `(elisp)Definition of signal' for some details on how this |
diff --git a/src/process.c b/src/process.c index 624610069d8..ec96c1aa67e 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -235,6 +235,7 @@ static int process_output_skip; | |||
| 235 | #define process_output_delay_count 0 | 235 | #define process_output_delay_count 0 |
| 236 | #endif | 236 | #endif |
| 237 | 237 | ||
| 238 | INFUN (Fget_process, 1); | ||
| 238 | static int keyboard_bit_set (SELECT_TYPE *); | 239 | static int keyboard_bit_set (SELECT_TYPE *); |
| 239 | static void deactivate_process (Lisp_Object); | 240 | static void deactivate_process (Lisp_Object); |
| 240 | static void status_notify (struct Lisp_Process *); | 241 | static void status_notify (struct Lisp_Process *); |
| @@ -782,7 +783,7 @@ nil, indicating the current buffer's process. */) | |||
| 782 | return Qnil; | 783 | return Qnil; |
| 783 | } | 784 | } |
| 784 | 785 | ||
| 785 | DEFUN ("process-status", Fprocess_status, Sprocess_status, 1, 1, 0, | 786 | DEFUE ("process-status", Fprocess_status, Sprocess_status, 1, 1, 0, |
| 786 | doc: /* Return the status of PROCESS. | 787 | doc: /* Return the status of PROCESS. |
| 787 | The returned value is one of the following symbols: | 788 | The returned value is one of the following symbols: |
| 788 | run -- for a process that is running. | 789 | run -- for a process that is running. |
| @@ -1083,7 +1084,7 @@ DEFUN ("process-query-on-exit-flag", | |||
| 1083 | } | 1084 | } |
| 1084 | 1085 | ||
| 1085 | #ifdef DATAGRAM_SOCKETS | 1086 | #ifdef DATAGRAM_SOCKETS |
| 1086 | Lisp_Object Fprocess_datagram_address (Lisp_Object process); | 1087 | INFUN (Fprocess_datagram_address, 1); |
| 1087 | #endif | 1088 | #endif |
| 1088 | 1089 | ||
| 1089 | DEFUN ("process-contact", Fprocess_contact, Sprocess_contact, | 1090 | DEFUN ("process-contact", Fprocess_contact, Sprocess_contact, |
| @@ -5775,7 +5776,7 @@ don't send the signal. */) | |||
| 5775 | return process; | 5776 | return process; |
| 5776 | } | 5777 | } |
| 5777 | 5778 | ||
| 5778 | DEFUN ("kill-process", Fkill_process, Skill_process, 0, 2, 0, | 5779 | DEFUE ("kill-process", Fkill_process, Skill_process, 0, 2, 0, |
| 5779 | doc: /* Kill process PROCESS. May be process or name of one. | 5780 | doc: /* Kill process PROCESS. May be process or name of one. |
| 5780 | See function `interrupt-process' for more details on usage. */) | 5781 | See function `interrupt-process' for more details on usage. */) |
| 5781 | (Lisp_Object process, Lisp_Object current_group) | 5782 | (Lisp_Object process, Lisp_Object current_group) |
| @@ -6915,7 +6916,7 @@ close_process_descs (void) | |||
| 6915 | #endif | 6916 | #endif |
| 6916 | } | 6917 | } |
| 6917 | 6918 | ||
| 6918 | DEFUN ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, | 6919 | DEFUE ("get-buffer-process", Fget_buffer_process, Sget_buffer_process, 1, 1, 0, |
| 6919 | doc: /* Return the (or a) process associated with BUFFER. | 6920 | doc: /* Return the (or a) process associated with BUFFER. |
| 6920 | BUFFER may be a buffer or the name of one. */) | 6921 | BUFFER may be a buffer or the name of one. */) |
| 6921 | (register Lisp_Object buffer) | 6922 | (register Lisp_Object buffer) |
| @@ -6982,8 +6983,8 @@ kill_buffer_processes (Lisp_Object buffer) | |||
| 6982 | #endif /* subprocesses */ | 6983 | #endif /* subprocesses */ |
| 6983 | } | 6984 | } |
| 6984 | 6985 | ||
| 6985 | DEFUN ("waiting-for-user-input-p", Fwaiting_for_user_input_p, Swaiting_for_user_input_p, | 6986 | DEFUE ("waiting-for-user-input-p", Fwaiting_for_user_input_p, |
| 6986 | 0, 0, 0, | 6987 | Swaiting_for_user_input_p, 0, 0, 0, |
| 6987 | doc: /* Returns non-nil if Emacs is waiting for input from the user. | 6988 | doc: /* Returns non-nil if Emacs is waiting for input from the user. |
| 6988 | This is intended for use by asynchronous process output filters and sentinels. */) | 6989 | This is intended for use by asynchronous process output filters and sentinels. */) |
| 6989 | (void) | 6990 | (void) |
diff --git a/src/search.c b/src/search.c index d9be8ca0105..34f02e6cd65 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -436,7 +436,7 @@ string_match_1 (Lisp_Object regexp, Lisp_Object string, Lisp_Object start, int p | |||
| 436 | return make_number (string_byte_to_char (string, val)); | 436 | return make_number (string_byte_to_char (string, val)); |
| 437 | } | 437 | } |
| 438 | 438 | ||
| 439 | DEFUN ("string-match", Fstring_match, Sstring_match, 2, 3, 0, | 439 | DEFUE ("string-match", Fstring_match, Sstring_match, 2, 3, 0, |
| 440 | doc: /* Return index of start of first match for REGEXP in STRING, or nil. | 440 | doc: /* Return index of start of first match for REGEXP in STRING, or nil. |
| 441 | Matching ignores case if `case-fold-search' is non-nil. | 441 | Matching ignores case if `case-fold-search' is non-nil. |
| 442 | If third arg START is non-nil, start search at that index in STRING. | 442 | If third arg START is non-nil, start search at that index in STRING. |
| @@ -2811,7 +2811,7 @@ match_limit (Lisp_Object num, int beginningp) | |||
| 2811 | : search_regs.end[n])); | 2811 | : search_regs.end[n])); |
| 2812 | } | 2812 | } |
| 2813 | 2813 | ||
| 2814 | DEFUN ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0, | 2814 | DEFUE ("match-beginning", Fmatch_beginning, Smatch_beginning, 1, 1, 0, |
| 2815 | doc: /* Return position of start of text matched by last search. | 2815 | doc: /* Return position of start of text matched by last search. |
| 2816 | SUBEXP, a number, specifies which parenthesized expression in the last | 2816 | SUBEXP, a number, specifies which parenthesized expression in the last |
| 2817 | regexp. | 2817 | regexp. |
| @@ -2823,7 +2823,7 @@ Zero means the entire text matched by the whole regexp or whole string. */) | |||
| 2823 | return match_limit (subexp, 1); | 2823 | return match_limit (subexp, 1); |
| 2824 | } | 2824 | } |
| 2825 | 2825 | ||
| 2826 | DEFUN ("match-end", Fmatch_end, Smatch_end, 1, 1, 0, | 2826 | DEFUE ("match-end", Fmatch_end, Smatch_end, 1, 1, 0, |
| 2827 | doc: /* Return position of end of text matched by last search. | 2827 | doc: /* Return position of end of text matched by last search. |
| 2828 | SUBEXP, a number, specifies which parenthesized expression in the last | 2828 | SUBEXP, a number, specifies which parenthesized expression in the last |
| 2829 | regexp. | 2829 | regexp. |
| @@ -2835,7 +2835,7 @@ Zero means the entire text matched by the whole regexp or whole string. */) | |||
| 2835 | return match_limit (subexp, 0); | 2835 | return match_limit (subexp, 0); |
| 2836 | } | 2836 | } |
| 2837 | 2837 | ||
| 2838 | DEFUN ("match-data", Fmatch_data, Smatch_data, 0, 3, 0, | 2838 | DEFUE ("match-data", Fmatch_data, Smatch_data, 0, 3, 0, |
| 2839 | doc: /* Return a list containing all info on what the last search matched. | 2839 | doc: /* Return a list containing all info on what the last search matched. |
| 2840 | Element 2N is `(match-beginning N)'; element 2N + 1 is `(match-end N)'. | 2840 | Element 2N is `(match-beginning N)'; element 2N + 1 is `(match-end N)'. |
| 2841 | All the elements are markers or nil (nil if the Nth pair didn't match) | 2841 | All the elements are markers or nil (nil if the Nth pair didn't match) |
| @@ -2950,7 +2950,7 @@ Return value is undefined if the last search failed. */) | |||
| 2950 | But it was ill-conceived: those supposedly-internal markers get exposed via | 2950 | But it was ill-conceived: those supposedly-internal markers get exposed via |
| 2951 | the undo-list, so freeing them here is unsafe. */ | 2951 | the undo-list, so freeing them here is unsafe. */ |
| 2952 | 2952 | ||
| 2953 | DEFUN ("set-match-data", Fset_match_data, Sset_match_data, 1, 2, 0, | 2953 | DEFUE ("set-match-data", Fset_match_data, Sset_match_data, 1, 2, 0, |
| 2954 | doc: /* Set internal data on last search match from elements of LIST. | 2954 | doc: /* Set internal data on last search match from elements of LIST. |
| 2955 | LIST should have been created by calling `match-data' previously. | 2955 | LIST should have been created by calling `match-data' previously. |
| 2956 | 2956 | ||
diff --git a/src/syntax.c b/src/syntax.c index 1301c0689ad..819a7542a7b 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -138,6 +138,7 @@ static EMACS_INT find_start_begv; | |||
| 138 | static int find_start_modiff; | 138 | static int find_start_modiff; |
| 139 | 139 | ||
| 140 | 140 | ||
| 141 | INFUN (Fsyntax_table_p, 1); | ||
| 141 | static Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); | 142 | static Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); |
| 142 | static Lisp_Object skip_syntaxes (int, Lisp_Object, Lisp_Object); | 143 | static Lisp_Object skip_syntaxes (int, Lisp_Object, Lisp_Object); |
| 143 | static Lisp_Object scan_lists (EMACS_INT, EMACS_INT, EMACS_INT, int); | 144 | static Lisp_Object scan_lists (EMACS_INT, EMACS_INT, EMACS_INT, int); |
| @@ -1337,7 +1338,7 @@ scan_words (register EMACS_INT from, register EMACS_INT count) | |||
| 1337 | return from; | 1338 | return from; |
| 1338 | } | 1339 | } |
| 1339 | 1340 | ||
| 1340 | DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", | 1341 | DEFUE ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p", |
| 1341 | doc: /* Move point forward ARG words (backward if ARG is negative). | 1342 | doc: /* Move point forward ARG words (backward if ARG is negative). |
| 1342 | Normally returns t. | 1343 | Normally returns t. |
| 1343 | If an edge of the buffer or a field boundary is reached, point is left there | 1344 | If an edge of the buffer or a field boundary is reached, point is left there |
| @@ -1366,9 +1367,7 @@ and the function returns nil. Field boundaries are not noticed if | |||
| 1366 | return val == orig_val ? Qt : Qnil; | 1367 | return val == orig_val ? Qt : Qnil; |
| 1367 | } | 1368 | } |
| 1368 | 1369 | ||
| 1369 | Lisp_Object skip_chars (int, Lisp_Object, Lisp_Object, int); | 1370 | DEFUE ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0, |
| 1370 | |||
| 1371 | DEFUN ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0, | ||
| 1372 | doc: /* Move point forward, stopping before a char not in STRING, or at pos LIM. | 1371 | doc: /* Move point forward, stopping before a char not in STRING, or at pos LIM. |
| 1373 | STRING is like the inside of a `[...]' in a regular expression | 1372 | STRING is like the inside of a `[...]' in a regular expression |
| 1374 | except that `]' is never special and `\\' quotes `^', `-' or `\\' | 1373 | except that `]' is never special and `\\' quotes `^', `-' or `\\' |
| @@ -1383,7 +1382,7 @@ Returns the distance traveled, either zero or positive. */) | |||
| 1383 | return skip_chars (1, string, lim, 1); | 1382 | return skip_chars (1, string, lim, 1); |
| 1384 | } | 1383 | } |
| 1385 | 1384 | ||
| 1386 | DEFUN ("skip-chars-backward", Fskip_chars_backward, Sskip_chars_backward, 1, 2, 0, | 1385 | DEFUE ("skip-chars-backward", Fskip_chars_backward, Sskip_chars_backward, 1, 2, 0, |
| 1387 | doc: /* Move point backward, stopping after a char not in STRING, or at pos LIM. | 1386 | doc: /* Move point backward, stopping after a char not in STRING, or at pos LIM. |
| 1388 | See `skip-chars-forward' for details. | 1387 | See `skip-chars-forward' for details. |
| 1389 | Returns the distance traveled, either zero or negative. */) | 1388 | Returns the distance traveled, either zero or negative. */) |
diff --git a/src/term.c b/src/term.c index ea856543a7d..3547b9a2ddd 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2411,7 +2411,7 @@ get_named_tty (const char *name) | |||
| 2411 | } | 2411 | } |
| 2412 | 2412 | ||
| 2413 | 2413 | ||
| 2414 | DEFUN ("tty-type", Ftty_type, Stty_type, 0, 1, 0, | 2414 | DEFUE ("tty-type", Ftty_type, Stty_type, 0, 1, 0, |
| 2415 | doc: /* Return the type of the tty device that TERMINAL uses. | 2415 | doc: /* Return the type of the tty device that TERMINAL uses. |
| 2416 | Returns nil if TERMINAL is not on a tty device. | 2416 | Returns nil if TERMINAL is not on a tty device. |
| 2417 | 2417 | ||
diff --git a/src/terminal.c b/src/terminal.c index c5185601fb6..7382622182f 100644 --- a/src/terminal.c +++ b/src/terminal.c | |||
| @@ -305,7 +305,7 @@ delete_terminal (struct terminal *terminal) | |||
| 305 | 305 | ||
| 306 | Lisp_Object Qrun_hook_with_args; | 306 | Lisp_Object Qrun_hook_with_args; |
| 307 | static Lisp_Object Qdelete_terminal_functions; | 307 | static Lisp_Object Qdelete_terminal_functions; |
| 308 | DEFUN ("delete-terminal", Fdelete_terminal, Sdelete_terminal, 0, 2, 0, | 308 | DEFUE ("delete-terminal", Fdelete_terminal, Sdelete_terminal, 0, 2, 0, |
| 309 | doc: /* Delete TERMINAL by deleting all frames on it and closing the terminal. | 309 | doc: /* Delete TERMINAL by deleting all frames on it and closing the terminal. |
| 310 | TERMINAL may be a terminal object, a frame, or nil (meaning the | 310 | TERMINAL may be a terminal object, a frame, or nil (meaning the |
| 311 | selected frame's terminal). | 311 | selected frame's terminal). |
| @@ -348,7 +348,7 @@ but if the second argument FORCE is non-nil, you may do so. */) | |||
| 348 | } | 348 | } |
| 349 | 349 | ||
| 350 | 350 | ||
| 351 | DEFUN ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0, | 351 | DEFUE ("frame-terminal", Fframe_terminal, Sframe_terminal, 0, 1, 0, |
| 352 | doc: /* Return the terminal that FRAME is displayed on. | 352 | doc: /* Return the terminal that FRAME is displayed on. |
| 353 | If FRAME is nil, the selected frame is used. | 353 | If FRAME is nil, the selected frame is used. |
| 354 | 354 | ||
diff --git a/src/textprop.c b/src/textprop.c index 53f92ec936b..8cd9d580c4c 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -73,6 +73,7 @@ Lisp_Object interval_insert_behind_hooks; | |||
| 73 | Lisp_Object interval_insert_in_front_hooks; | 73 | Lisp_Object interval_insert_in_front_hooks; |
| 74 | 74 | ||
| 75 | static void text_read_only (Lisp_Object) NO_RETURN; | 75 | static void text_read_only (Lisp_Object) NO_RETURN; |
| 76 | INFUN (Fprevious_property_change, 3); | ||
| 76 | 77 | ||
| 77 | 78 | ||
| 78 | /* Signal a `text-read-only' error. This function makes it easier | 79 | /* Signal a `text-read-only' error. This function makes it easier |
| @@ -544,7 +545,7 @@ interval_of (int position, Lisp_Object object) | |||
| 544 | return find_interval (i, position); | 545 | return find_interval (i, position); |
| 545 | } | 546 | } |
| 546 | 547 | ||
| 547 | DEFUN ("text-properties-at", Ftext_properties_at, | 548 | DEFUE ("text-properties-at", Ftext_properties_at, |
| 548 | Stext_properties_at, 1, 2, 0, | 549 | Stext_properties_at, 1, 2, 0, |
| 549 | doc: /* Return the list of properties of the character at POSITION in OBJECT. | 550 | doc: /* Return the list of properties of the character at POSITION in OBJECT. |
| 550 | If the optional second argument OBJECT is a buffer (or nil, which means | 551 | If the optional second argument OBJECT is a buffer (or nil, which means |
| @@ -571,7 +572,7 @@ If POSITION is at the end of OBJECT, the value is nil. */) | |||
| 571 | return i->plist; | 572 | return i->plist; |
| 572 | } | 573 | } |
| 573 | 574 | ||
| 574 | DEFUN ("get-text-property", Fget_text_property, Sget_text_property, 2, 3, 0, | 575 | DEFUE ("get-text-property", Fget_text_property, Sget_text_property, 2, 3, 0, |
| 575 | doc: /* Return the value of POSITION's property PROP, in OBJECT. | 576 | doc: /* Return the value of POSITION's property PROP, in OBJECT. |
| 576 | OBJECT is optional and defaults to the current buffer. | 577 | OBJECT is optional and defaults to the current buffer. |
| 577 | If POSITION is at the end of OBJECT, the value is nil. */) | 578 | If POSITION is at the end of OBJECT, the value is nil. */) |
| @@ -646,7 +647,7 @@ get_char_property_and_overlay (Lisp_Object position, register Lisp_Object prop, | |||
| 646 | return Fget_text_property (position, prop, object); | 647 | return Fget_text_property (position, prop, object); |
| 647 | } | 648 | } |
| 648 | 649 | ||
| 649 | DEFUN ("get-char-property", Fget_char_property, Sget_char_property, 2, 3, 0, | 650 | DEFUE ("get-char-property", Fget_char_property, Sget_char_property, 2, 3, 0, |
| 650 | doc: /* Return the value of POSITION's property PROP, in OBJECT. | 651 | doc: /* Return the value of POSITION's property PROP, in OBJECT. |
| 651 | Both overlay properties and text properties are checked. | 652 | Both overlay properties and text properties are checked. |
| 652 | OBJECT is optional and defaults to the current buffer. | 653 | OBJECT is optional and defaults to the current buffer. |
| @@ -683,7 +684,7 @@ POSITION is at the end of OBJECT, both car and cdr are nil. */) | |||
| 683 | } | 684 | } |
| 684 | 685 | ||
| 685 | 686 | ||
| 686 | DEFUN ("next-char-property-change", Fnext_char_property_change, | 687 | DEFUE ("next-char-property-change", Fnext_char_property_change, |
| 687 | Snext_char_property_change, 1, 2, 0, | 688 | Snext_char_property_change, 1, 2, 0, |
| 688 | doc: /* Return the position of next text property or overlay change. | 689 | doc: /* Return the position of next text property or overlay change. |
| 689 | This scans characters forward in the current buffer from POSITION till | 690 | This scans characters forward in the current buffer from POSITION till |
| @@ -708,7 +709,7 @@ LIMIT is a no-op if it is greater than (point-max). */) | |||
| 708 | return Fnext_property_change (position, Qnil, temp); | 709 | return Fnext_property_change (position, Qnil, temp); |
| 709 | } | 710 | } |
| 710 | 711 | ||
| 711 | DEFUN ("previous-char-property-change", Fprevious_char_property_change, | 712 | DEFUE ("previous-char-property-change", Fprevious_char_property_change, |
| 712 | Sprevious_char_property_change, 1, 2, 0, | 713 | Sprevious_char_property_change, 1, 2, 0, |
| 713 | doc: /* Return the position of previous text property or overlay change. | 714 | doc: /* Return the position of previous text property or overlay change. |
| 714 | Scans characters backward in the current buffer from POSITION till it | 715 | Scans characters backward in the current buffer from POSITION till it |
| @@ -734,7 +735,7 @@ LIMIT is a no-op if it is less than (point-min). */) | |||
| 734 | } | 735 | } |
| 735 | 736 | ||
| 736 | 737 | ||
| 737 | DEFUN ("next-single-char-property-change", Fnext_single_char_property_change, | 738 | DEFUE ("next-single-char-property-change", Fnext_single_char_property_change, |
| 738 | Snext_single_char_property_change, 2, 4, 0, | 739 | Snext_single_char_property_change, 2, 4, 0, |
| 739 | doc: /* Return the position of next text property or overlay change for a specific property. | 740 | doc: /* Return the position of next text property or overlay change for a specific property. |
| 740 | Scans characters forward from POSITION till it finds | 741 | Scans characters forward from POSITION till it finds |
| @@ -817,7 +818,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 817 | return position; | 818 | return position; |
| 818 | } | 819 | } |
| 819 | 820 | ||
| 820 | DEFUN ("previous-single-char-property-change", | 821 | DEFUE ("previous-single-char-property-change", |
| 821 | Fprevious_single_char_property_change, | 822 | Fprevious_single_char_property_change, |
| 822 | Sprevious_single_char_property_change, 2, 4, 0, | 823 | Sprevious_single_char_property_change, 2, 4, 0, |
| 823 | doc: /* Return the position of previous text property or overlay change for a specific property. | 824 | doc: /* Return the position of previous text property or overlay change for a specific property. |
| @@ -910,7 +911,7 @@ back past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 910 | return position; | 911 | return position; |
| 911 | } | 912 | } |
| 912 | 913 | ||
| 913 | DEFUN ("next-property-change", Fnext_property_change, | 914 | DEFUE ("next-property-change", Fnext_property_change, |
| 914 | Snext_property_change, 1, 3, 0, | 915 | Snext_property_change, 1, 3, 0, |
| 915 | doc: /* Return the position of next property change. | 916 | doc: /* Return the position of next property change. |
| 916 | Scans characters forward from POSITION in OBJECT till it finds | 917 | Scans characters forward from POSITION in OBJECT till it finds |
| @@ -974,7 +975,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 974 | return make_number (next->position); | 975 | return make_number (next->position); |
| 975 | } | 976 | } |
| 976 | 977 | ||
| 977 | DEFUN ("next-single-property-change", Fnext_single_property_change, | 978 | DEFUE ("next-single-property-change", Fnext_single_property_change, |
| 978 | Snext_single_property_change, 2, 4, 0, | 979 | Snext_single_property_change, 2, 4, 0, |
| 979 | doc: /* Return the position of next property change for a specific property. | 980 | doc: /* Return the position of next property change for a specific property. |
| 980 | Scans characters forward from POSITION till it finds | 981 | Scans characters forward from POSITION till it finds |
| @@ -1022,7 +1023,7 @@ past position LIMIT; return LIMIT if nothing is found before LIMIT. */) | |||
| 1022 | return make_number (next->position); | 1023 | return make_number (next->position); |
| 1023 | } | 1024 | } |
| 1024 | 1025 | ||
| 1025 | DEFUN ("previous-property-change", Fprevious_property_change, | 1026 | DEFUE ("previous-property-change", Fprevious_property_change, |
| 1026 | Sprevious_property_change, 1, 3, 0, | 1027 | Sprevious_property_change, 1, 3, 0, |
| 1027 | doc: /* Return the position of previous property change. | 1028 | doc: /* Return the position of previous property change. |
| 1028 | Scans characters backwards from POSITION in OBJECT till it finds | 1029 | Scans characters backwards from POSITION in OBJECT till it finds |
| @@ -1069,7 +1070,7 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) | |||
| 1069 | return make_number (previous->position + LENGTH (previous)); | 1070 | return make_number (previous->position + LENGTH (previous)); |
| 1070 | } | 1071 | } |
| 1071 | 1072 | ||
| 1072 | DEFUN ("previous-single-property-change", Fprevious_single_property_change, | 1073 | DEFUE ("previous-single-property-change", Fprevious_single_property_change, |
| 1073 | Sprevious_single_property_change, 2, 4, 0, | 1074 | Sprevious_single_property_change, 2, 4, 0, |
| 1074 | doc: /* Return the position of previous property change for a specific property. | 1075 | doc: /* Return the position of previous property change for a specific property. |
| 1075 | Scans characters backward from POSITION till it finds | 1076 | Scans characters backward from POSITION till it finds |
| @@ -1123,7 +1124,7 @@ back past position LIMIT; return LIMIT if nothing is found until LIMIT. */) | |||
| 1123 | 1124 | ||
| 1124 | /* Callers note, this can GC when OBJECT is a buffer (or nil). */ | 1125 | /* Callers note, this can GC when OBJECT is a buffer (or nil). */ |
| 1125 | 1126 | ||
| 1126 | DEFUN ("add-text-properties", Fadd_text_properties, | 1127 | DEFUE ("add-text-properties", Fadd_text_properties, |
| 1127 | Sadd_text_properties, 3, 4, 0, | 1128 | Sadd_text_properties, 3, 4, 0, |
| 1128 | doc: /* Add properties to the text from START to END. | 1129 | doc: /* Add properties to the text from START to END. |
| 1129 | The third argument PROPERTIES is a property list | 1130 | The third argument PROPERTIES is a property list |
| @@ -1232,7 +1233,7 @@ Return t if any property value actually changed, nil otherwise. */) | |||
| 1232 | 1233 | ||
| 1233 | /* Callers note, this can GC when OBJECT is a buffer (or nil). */ | 1234 | /* Callers note, this can GC when OBJECT is a buffer (or nil). */ |
| 1234 | 1235 | ||
| 1235 | DEFUN ("put-text-property", Fput_text_property, | 1236 | DEFUE ("put-text-property", Fput_text_property, |
| 1236 | Sput_text_property, 4, 5, 0, | 1237 | Sput_text_property, 4, 5, 0, |
| 1237 | doc: /* Set one property of the text from START to END. | 1238 | doc: /* Set one property of the text from START to END. |
| 1238 | The third and fourth arguments PROPERTY and VALUE | 1239 | The third and fourth arguments PROPERTY and VALUE |
| @@ -1248,7 +1249,7 @@ markers). If OBJECT is a string, START and END are 0-based indices into it. */ | |||
| 1248 | return Qnil; | 1249 | return Qnil; |
| 1249 | } | 1250 | } |
| 1250 | 1251 | ||
| 1251 | DEFUN ("set-text-properties", Fset_text_properties, | 1252 | DEFUE ("set-text-properties", Fset_text_properties, |
| 1252 | Sset_text_properties, 3, 4, 0, | 1253 | Sset_text_properties, 3, 4, 0, |
| 1253 | doc: /* Completely replace properties of text from START to END. | 1254 | doc: /* Completely replace properties of text from START to END. |
| 1254 | The third argument PROPERTIES is the new property list. | 1255 | The third argument PROPERTIES is the new property list. |
| @@ -1415,7 +1416,7 @@ set_text_properties_1 (Lisp_Object start, Lisp_Object end, Lisp_Object propertie | |||
| 1415 | while (len > 0); | 1416 | while (len > 0); |
| 1416 | } | 1417 | } |
| 1417 | 1418 | ||
| 1418 | DEFUN ("remove-text-properties", Fremove_text_properties, | 1419 | DEFUE ("remove-text-properties", Fremove_text_properties, |
| 1419 | Sremove_text_properties, 3, 4, 0, | 1420 | Sremove_text_properties, 3, 4, 0, |
| 1420 | doc: /* Remove some properties from text from START to END. | 1421 | doc: /* Remove some properties from text from START to END. |
| 1421 | The third argument PROPERTIES is a property list | 1422 | The third argument PROPERTIES is a property list |
| @@ -1505,7 +1506,7 @@ Use `set-text-properties' if you want to remove all text properties. */) | |||
| 1505 | } | 1506 | } |
| 1506 | } | 1507 | } |
| 1507 | 1508 | ||
| 1508 | DEFUN ("remove-list-of-text-properties", Fremove_list_of_text_properties, | 1509 | DEFUE ("remove-list-of-text-properties", Fremove_list_of_text_properties, |
| 1509 | Sremove_list_of_text_properties, 3, 4, 0, | 1510 | Sremove_list_of_text_properties, 3, 4, 0, |
| 1510 | doc: /* Remove some properties from text from START to END. | 1511 | doc: /* Remove some properties from text from START to END. |
| 1511 | The third argument LIST-OF-PROPERTIES is a list of property names to remove. | 1512 | The third argument LIST-OF-PROPERTIES is a list of property names to remove. |
| @@ -1615,7 +1616,7 @@ Return t if any property was actually removed, nil otherwise. */) | |||
| 1615 | } | 1616 | } |
| 1616 | } | 1617 | } |
| 1617 | 1618 | ||
| 1618 | DEFUN ("text-property-any", Ftext_property_any, | 1619 | DEFUE ("text-property-any", Ftext_property_any, |
| 1619 | Stext_property_any, 4, 5, 0, | 1620 | Stext_property_any, 4, 5, 0, |
| 1620 | doc: /* Check text from START to END for property PROPERTY equalling VALUE. | 1621 | doc: /* Check text from START to END for property PROPERTY equalling VALUE. |
| 1621 | If so, return the position of the first character whose property PROPERTY | 1622 | If so, return the position of the first character whose property PROPERTY |
diff --git a/src/undo.c b/src/undo.c index d11cd6f5570..b310133900c 100644 --- a/src/undo.c +++ b/src/undo.c | |||
| @@ -270,7 +270,7 @@ record_property_change (EMACS_INT beg, EMACS_INT length, | |||
| 270 | current_buffer = obuf; | 270 | current_buffer = obuf; |
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | DEFUN ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0, | 273 | DEFUE ("undo-boundary", Fundo_boundary, Sundo_boundary, 0, 0, 0, |
| 274 | doc: /* Mark a boundary between units of undo. | 274 | doc: /* Mark a boundary between units of undo. |
| 275 | An undo command will stop at this point, | 275 | An undo command will stop at this point, |
| 276 | but another undo command will undo to the previous boundary. */) | 276 | but another undo command will undo to the previous boundary. */) |
| @@ -711,4 +711,3 @@ so it must make sure not to do a lot of consing. */); | |||
| 711 | doc: /* Non-nil means do not record `point' in `buffer-undo-list'. */); | 711 | doc: /* Non-nil means do not record `point' in `buffer-undo-list'. */); |
| 712 | undo_inhibit_record_point = 0; | 712 | undo_inhibit_record_point = 0; |
| 713 | } | 713 | } |
| 714 | |||
diff --git a/src/window.c b/src/window.c index a8a6fceaaee..72ab2a3ea10 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -216,7 +216,7 @@ make_window (void) | |||
| 216 | return val; | 216 | return val; |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | DEFUN ("selected-window", Fselected_window, Sselected_window, 0, 0, 0, | 219 | DEFUE ("selected-window", Fselected_window, Sselected_window, 0, 0, 0, |
| 220 | doc: /* Return the window that the cursor now appears in and commands apply to. */) | 220 | doc: /* Return the window that the cursor now appears in and commands apply to. */) |
| 221 | (void) | 221 | (void) |
| 222 | { | 222 | { |
| @@ -235,7 +235,8 @@ used by that frame. */) | |||
| 235 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); | 235 | return FRAME_MINIBUF_WINDOW (XFRAME (frame)); |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | DEFUN ("window-minibuffer-p", Fwindow_minibuffer_p, Swindow_minibuffer_p, 0, 1, 0, | 238 | DEFUE ("window-minibuffer-p", Fwindow_minibuffer_p, |
| 239 | Swindow_minibuffer_p, 0, 1, 0, | ||
| 239 | doc: /* Return non-nil if WINDOW is a minibuffer window. | 240 | doc: /* Return non-nil if WINDOW is a minibuffer window. |
| 240 | WINDOW defaults to the selected window. */) | 241 | WINDOW defaults to the selected window. */) |
| 241 | (Lisp_Object window) | 242 | (Lisp_Object window) |
| @@ -245,7 +246,7 @@ WINDOW defaults to the selected window. */) | |||
| 245 | } | 246 | } |
| 246 | 247 | ||
| 247 | 248 | ||
| 248 | DEFUN ("pos-visible-in-window-p", Fpos_visible_in_window_p, | 249 | DEFUE ("pos-visible-in-window-p", Fpos_visible_in_window_p, |
| 249 | Spos_visible_in_window_p, 0, 3, 0, | 250 | Spos_visible_in_window_p, 0, 3, 0, |
| 250 | doc: /* Return non-nil if position POS is currently on the frame in WINDOW. | 251 | doc: /* Return non-nil if position POS is currently on the frame in WINDOW. |
| 251 | Return nil if that position is scrolled vertically out of view. | 252 | Return nil if that position is scrolled vertically out of view. |
| @@ -442,7 +443,7 @@ decode_any_window (register Lisp_Object window) | |||
| 442 | return XWINDOW (window); | 443 | return XWINDOW (window); |
| 443 | } | 444 | } |
| 444 | 445 | ||
| 445 | DEFUN ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, | 446 | DEFUE ("window-buffer", Fwindow_buffer, Swindow_buffer, 0, 1, 0, |
| 446 | doc: /* Return the buffer that WINDOW is displaying. | 447 | doc: /* Return the buffer that WINDOW is displaying. |
| 447 | WINDOW defaults to the selected window. */) | 448 | WINDOW defaults to the selected window. */) |
| 448 | (Lisp_Object window) | 449 | (Lisp_Object window) |
| @@ -1196,7 +1197,7 @@ if it isn't already recorded. */) | |||
| 1196 | return value; | 1197 | return value; |
| 1197 | } | 1198 | } |
| 1198 | 1199 | ||
| 1199 | DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, | 1200 | DEFUE ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, |
| 1200 | doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer. | 1201 | doc: /* Make point value in WINDOW be at position POS in WINDOW's buffer. |
| 1201 | Return POS. */) | 1202 | Return POS. */) |
| 1202 | (Lisp_Object window, Lisp_Object pos) | 1203 | (Lisp_Object window, Lisp_Object pos) |
| @@ -1243,7 +1244,7 @@ overriding motion of point in order to display at this exact start. */) | |||
| 1243 | } | 1244 | } |
| 1244 | 1245 | ||
| 1245 | 1246 | ||
| 1246 | DEFUN ("window-dedicated-p", Fwindow_dedicated_p, Swindow_dedicated_p, | 1247 | DEFUE ("window-dedicated-p", Fwindow_dedicated_p, Swindow_dedicated_p, |
| 1247 | 0, 1, 0, | 1248 | 0, 1, 0, |
| 1248 | doc: /* Return non-nil when WINDOW is dedicated to its buffer. | 1249 | doc: /* Return non-nil when WINDOW is dedicated to its buffer. |
| 1249 | More precisely, return the value assigned by the last call of | 1250 | More precisely, return the value assigned by the last call of |
| @@ -1484,7 +1485,7 @@ and so is its new parent, we should make replacement's | |||
| 1484 | children be children of that parent instead. ***/ | 1485 | children be children of that parent instead. ***/ |
| 1485 | } | 1486 | } |
| 1486 | 1487 | ||
| 1487 | DEFUN ("delete-window", Fdelete_window, Sdelete_window, 0, 1, "", | 1488 | DEFUE ("delete-window", Fdelete_window, Sdelete_window, 0, 1, "", |
| 1488 | doc: /* Remove WINDOW from its frame. | 1489 | doc: /* Remove WINDOW from its frame. |
| 1489 | WINDOW defaults to the selected window. Return nil. | 1490 | WINDOW defaults to the selected window. Return nil. |
| 1490 | Signal an error when WINDOW is the only window on its frame. */) | 1491 | Signal an error when WINDOW is the only window on its frame. */) |
| @@ -1945,7 +1946,7 @@ next_window (Lisp_Object window, Lisp_Object minibuf, Lisp_Object all_frames, in | |||
| 1945 | } | 1946 | } |
| 1946 | 1947 | ||
| 1947 | 1948 | ||
| 1948 | DEFUN ("next-window", Fnext_window, Snext_window, 0, 3, 0, | 1949 | DEFUE ("next-window", Fnext_window, Snext_window, 0, 3, 0, |
| 1949 | doc: /* Return window following WINDOW in cyclic ordering of windows. | 1950 | doc: /* Return window following WINDOW in cyclic ordering of windows. |
| 1950 | WINDOW defaults to the selected window. The optional arguments | 1951 | WINDOW defaults to the selected window. The optional arguments |
| 1951 | MINIBUF and ALL-FRAMES specify the set of windows to consider. | 1952 | MINIBUF and ALL-FRAMES specify the set of windows to consider. |
| @@ -2396,7 +2397,7 @@ If FRAME is a frame, search only that frame. */) | |||
| 2396 | frame); | 2397 | frame); |
| 2397 | } | 2398 | } |
| 2398 | 2399 | ||
| 2399 | DEFUN ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 0, 2, 0, | 2400 | DEFUE ("get-buffer-window", Fget_buffer_window, Sget_buffer_window, 0, 2, 0, |
| 2400 | doc: /* Return a window currently displaying BUFFER-OR-NAME, or nil if none. | 2401 | doc: /* Return a window currently displaying BUFFER-OR-NAME, or nil if none. |
| 2401 | BUFFER-OR-NAME may be a buffer or a buffer name and defaults to the | 2402 | BUFFER-OR-NAME may be a buffer or a buffer name and defaults to the |
| 2402 | current buffer. | 2403 | current buffer. |
| @@ -3275,8 +3276,10 @@ change_window_heights (Lisp_Object window, int n) | |||
| 3275 | 3276 | ||
| 3276 | int window_select_count; | 3277 | int window_select_count; |
| 3277 | 3278 | ||
| 3278 | EXFUN (Fset_window_fringes, 4); | 3279 | INFUN (Fset_window_margins, 3); |
| 3279 | EXFUN (Fset_window_scroll_bars, 4); | 3280 | INFUN (Fset_window_fringes, 4); |
| 3281 | INFUN (Fset_window_scroll_bars, 4); | ||
| 3282 | INFUN (Fset_window_vscroll, 3); | ||
| 3280 | 3283 | ||
| 3281 | static void | 3284 | static void |
| 3282 | run_funs (Lisp_Object funs) | 3285 | run_funs (Lisp_Object funs) |
| @@ -3441,7 +3444,7 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer, int run_hooks_p, int | |||
| 3441 | } | 3444 | } |
| 3442 | 3445 | ||
| 3443 | 3446 | ||
| 3444 | DEFUN ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0, | 3447 | DEFUE ("set-window-buffer", Fset_window_buffer, Sset_window_buffer, 2, 3, 0, |
| 3445 | doc: /* Make WINDOW display BUFFER-OR-NAME as its contents. | 3448 | doc: /* Make WINDOW display BUFFER-OR-NAME as its contents. |
| 3446 | WINDOW defaults to the selected window. BUFFER-OR-NAME must be a buffer | 3449 | WINDOW defaults to the selected window. BUFFER-OR-NAME must be a buffer |
| 3447 | or the name of an existing buffer. Optional third argument KEEP-MARGINS | 3450 | or the name of an existing buffer. Optional third argument KEEP-MARGINS |
| @@ -3571,7 +3574,7 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap) | |||
| 3571 | /* Note that selected_window can be nil when this is called from | 3574 | /* Note that selected_window can be nil when this is called from |
| 3572 | Fset_window_configuration. */ | 3575 | Fset_window_configuration. */ |
| 3573 | 3576 | ||
| 3574 | DEFUN ("select-window", Fselect_window, Sselect_window, 1, 2, 0, | 3577 | DEFUE ("select-window", Fselect_window, Sselect_window, 1, 2, 0, |
| 3575 | doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. | 3578 | doc: /* Select WINDOW. Most editing will apply to WINDOW's buffer. |
| 3576 | If WINDOW is not already selected, make WINDOW's buffer current | 3579 | If WINDOW is not already selected, make WINDOW's buffer current |
| 3577 | and make WINDOW the frame's selected window. Return WINDOW. | 3580 | and make WINDOW the frame's selected window. Return WINDOW. |
| @@ -5499,7 +5502,7 @@ displayed_window_lines (struct window *w) | |||
| 5499 | } | 5502 | } |
| 5500 | 5503 | ||
| 5501 | 5504 | ||
| 5502 | DEFUN ("recenter", Frecenter, Srecenter, 0, 1, "P", | 5505 | DEFUE ("recenter", Frecenter, Srecenter, 0, 1, "P", |
| 5503 | doc: /* Center point in selected window and maybe redisplay frame. | 5506 | doc: /* Center point in selected window and maybe redisplay frame. |
| 5504 | With prefix argument ARG, recenter putting point on screen line ARG | 5507 | With prefix argument ARG, recenter putting point on screen line ARG |
| 5505 | relative to the selected window. If ARG is negative, it counts up from the | 5508 | relative to the selected window. If ARG is negative, it counts up from the |
| @@ -5852,7 +5855,7 @@ DEFUN ("window-configuration-frame", Fwindow_configuration_frame, Swindow_config | |||
| 5852 | return XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame; | 5855 | return XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame; |
| 5853 | } | 5856 | } |
| 5854 | 5857 | ||
| 5855 | DEFUN ("set-window-configuration", Fset_window_configuration, | 5858 | DEFUE ("set-window-configuration", Fset_window_configuration, |
| 5856 | Sset_window_configuration, 1, 1, 0, | 5859 | Sset_window_configuration, 1, 1, 0, |
| 5857 | doc: /* Set the configuration of windows and buffers as specified by CONFIGURATION. | 5860 | doc: /* Set the configuration of windows and buffers as specified by CONFIGURATION. |
| 5858 | CONFIGURATION must be a value previously returned | 5861 | CONFIGURATION must be a value previously returned |
| @@ -6349,7 +6352,7 @@ save_window_save (Lisp_Object window, struct Lisp_Vector *vector, int i) | |||
| 6349 | return i; | 6352 | return i; |
| 6350 | } | 6353 | } |
| 6351 | 6354 | ||
| 6352 | DEFUN ("current-window-configuration", Fcurrent_window_configuration, | 6355 | DEFUE ("current-window-configuration", Fcurrent_window_configuration, |
| 6353 | Scurrent_window_configuration, 0, 1, 0, | 6356 | Scurrent_window_configuration, 0, 1, 0, |
| 6354 | doc: /* Return an object representing the current window configuration of FRAME. | 6357 | doc: /* Return an object representing the current window configuration of FRAME. |
| 6355 | If FRAME is nil or omitted, use the selected frame. | 6358 | If FRAME is nil or omitted, use the selected frame. |
| @@ -6541,7 +6544,7 @@ as nil. */) | |||
| 6541 | Fringes | 6544 | Fringes |
| 6542 | ***********************************************************************/ | 6545 | ***********************************************************************/ |
| 6543 | 6546 | ||
| 6544 | DEFUN ("set-window-fringes", Fset_window_fringes, Sset_window_fringes, | 6547 | DEFUE ("set-window-fringes", Fset_window_fringes, Sset_window_fringes, |
| 6545 | 2, 4, 0, | 6548 | 2, 4, 0, |
| 6546 | doc: /* Set the fringe widths of window WINDOW. | 6549 | doc: /* Set the fringe widths of window WINDOW. |
| 6547 | If WINDOW is nil, set the fringe widths of the currently selected | 6550 | If WINDOW is nil, set the fringe widths of the currently selected |
| @@ -6607,8 +6610,8 @@ Value is a list of the form (LEFT-WIDTH RIGHT-WIDTH OUTSIDE-MARGINS). */) | |||
| 6607 | Scroll bars | 6610 | Scroll bars |
| 6608 | ***********************************************************************/ | 6611 | ***********************************************************************/ |
| 6609 | 6612 | ||
| 6610 | DEFUN ("set-window-scroll-bars", Fset_window_scroll_bars, Sset_window_scroll_bars, | 6613 | DEFUE ("set-window-scroll-bars", Fset_window_scroll_bars, |
| 6611 | 2, 4, 0, | 6614 | Sset_window_scroll_bars, 2, 4, 0, |
| 6612 | doc: /* Set width and type of scroll bars of window WINDOW. | 6615 | doc: /* Set width and type of scroll bars of window WINDOW. |
| 6613 | If window is nil, set scroll bars of the currently selected window. | 6616 | If window is nil, set scroll bars of the currently selected window. |
| 6614 | Second parameter WIDTH specifies the pixel width for the scroll bar; | 6617 | Second parameter WIDTH specifies the pixel width for the scroll bar; |
diff --git a/src/window.h b/src/window.h index ad627aca340..e2e7a7f691f 100644 --- a/src/window.h +++ b/src/window.h | |||
| @@ -763,8 +763,6 @@ extern Lisp_Object Vmouse_event; | |||
| 763 | EXFUN (Fnext_window, 3); | 763 | EXFUN (Fnext_window, 3); |
| 764 | EXFUN (Fselect_window, 2); | 764 | EXFUN (Fselect_window, 2); |
| 765 | EXFUN (Fset_window_buffer, 3); | 765 | EXFUN (Fset_window_buffer, 3); |
| 766 | EXFUN (Fset_window_vscroll, 3); | ||
| 767 | EXFUN (Fset_window_margins, 3); | ||
| 768 | EXFUN (Fset_window_point, 2); | 766 | EXFUN (Fset_window_point, 2); |
| 769 | extern Lisp_Object make_window (void); | 767 | extern Lisp_Object make_window (void); |
| 770 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, | 768 | extern Lisp_Object window_from_coordinates (struct frame *, int, int, |
diff --git a/src/xdisp.c b/src/xdisp.c index 6fd3945511b..7553841f51b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -16377,7 +16377,7 @@ dump_glyph_row (row, vpos, glyphs) | |||
| 16377 | } | 16377 | } |
| 16378 | 16378 | ||
| 16379 | 16379 | ||
| 16380 | DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix, | 16380 | DEFUE ("dump-glyph-matrix", Fdump_glyph_matrix, |
| 16381 | Sdump_glyph_matrix, 0, 1, "p", | 16381 | Sdump_glyph_matrix, 0, 1, "p", |
| 16382 | doc: /* Dump the current matrix of the selected window to stderr. | 16382 | doc: /* Dump the current matrix of the selected window to stderr. |
| 16383 | Shows contents of glyph row structures. With non-nil | 16383 | Shows contents of glyph row structures. With non-nil |
| @@ -16399,7 +16399,7 @@ glyphs in short form, otherwise show glyphs in long form. */) | |||
| 16399 | } | 16399 | } |
| 16400 | 16400 | ||
| 16401 | 16401 | ||
| 16402 | DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, | 16402 | DEFUE ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, |
| 16403 | Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */) | 16403 | Sdump_frame_glyph_matrix, 0, 0, "", doc: /* */) |
| 16404 | (void) | 16404 | (void) |
| 16405 | { | 16405 | { |
| @@ -16409,7 +16409,7 @@ DEFUN ("dump-frame-glyph-matrix", Fdump_frame_glyph_matrix, | |||
| 16409 | } | 16409 | } |
| 16410 | 16410 | ||
| 16411 | 16411 | ||
| 16412 | DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "", | 16412 | DEFUE ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "", |
| 16413 | doc: /* Dump glyph row ROW to stderr. | 16413 | doc: /* Dump glyph row ROW to stderr. |
| 16414 | GLYPH 0 means don't dump glyphs. | 16414 | GLYPH 0 means don't dump glyphs. |
| 16415 | GLYPH 1 means dump glyphs in short form. | 16415 | GLYPH 1 means dump glyphs in short form. |
| @@ -16430,7 +16430,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */) | |||
| 16430 | } | 16430 | } |
| 16431 | 16431 | ||
| 16432 | 16432 | ||
| 16433 | DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "", | 16433 | DEFUE ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "", |
| 16434 | doc: /* Dump glyph row ROW of the tool-bar of the current frame to stderr. | 16434 | doc: /* Dump glyph row ROW of the tool-bar of the current frame to stderr. |
| 16435 | GLYPH 0 means don't dump glyphs. | 16435 | GLYPH 0 means don't dump glyphs. |
| 16436 | GLYPH 1 means dump glyphs in short form. | 16436 | GLYPH 1 means dump glyphs in short form. |
| @@ -16450,7 +16450,7 @@ GLYPH > 1 or omitted means dump glyphs in long form. */) | |||
| 16450 | } | 16450 | } |
| 16451 | 16451 | ||
| 16452 | 16452 | ||
| 16453 | DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P", | 16453 | DEFUE ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P", |
| 16454 | doc: /* Toggle tracing of redisplay. | 16454 | doc: /* Toggle tracing of redisplay. |
| 16455 | With ARG, turn tracing on if and only if ARG is positive. */) | 16455 | With ARG, turn tracing on if and only if ARG is positive. */) |
| 16456 | (Lisp_Object arg) | 16456 | (Lisp_Object arg) |
| @@ -16467,7 +16467,7 @@ With ARG, turn tracing on if and only if ARG is positive. */) | |||
| 16467 | } | 16467 | } |
| 16468 | 16468 | ||
| 16469 | 16469 | ||
| 16470 | DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "", | 16470 | DEFUE ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "", |
| 16471 | doc: /* Like `format', but print result to stderr. | 16471 | doc: /* Like `format', but print result to stderr. |
| 16472 | usage: (trace-to-stderr STRING &rest OBJECTS) */) | 16472 | usage: (trace-to-stderr STRING &rest OBJECTS) */) |
| 16473 | (size_t nargs, Lisp_Object *args) | 16473 | (size_t nargs, Lisp_Object *args) |
diff --git a/src/xfaces.c b/src/xfaces.c index 8a64855bd8f..eb2065d4637 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -557,7 +557,7 @@ unregister_colors (pixels, n) | |||
| 557 | } | 557 | } |
| 558 | 558 | ||
| 559 | 559 | ||
| 560 | DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, | 560 | DEFUE ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, |
| 561 | doc: /* Dump currently allocated colors to stderr. */) | 561 | doc: /* Dump currently allocated colors to stderr. */) |
| 562 | (void) | 562 | (void) |
| 563 | { | 563 | { |
| @@ -874,7 +874,7 @@ clear_face_cache (int clear_fonts_p) | |||
| 874 | } | 874 | } |
| 875 | 875 | ||
| 876 | 876 | ||
| 877 | DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, | 877 | DEFUE ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, |
| 878 | doc: /* Clear face caches on all frames. | 878 | doc: /* Clear face caches on all frames. |
| 879 | Optional THOROUGHLY non-nil means try to free unused fonts, too. */) | 879 | Optional THOROUGHLY non-nil means try to free unused fonts, too. */) |
| 880 | (Lisp_Object thoroughly) | 880 | (Lisp_Object thoroughly) |
| @@ -6363,7 +6363,7 @@ dump_realized_face (face) | |||
| 6363 | } | 6363 | } |
| 6364 | 6364 | ||
| 6365 | 6365 | ||
| 6366 | DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */) | 6366 | DEFUE ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */) |
| 6367 | (Lisp_Object n) | 6367 | (Lisp_Object n) |
| 6368 | { | 6368 | { |
| 6369 | if (NILP (n)) | 6369 | if (NILP (n)) |
| @@ -6396,7 +6396,7 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, doc: /* */) | |||
| 6396 | } | 6396 | } |
| 6397 | 6397 | ||
| 6398 | 6398 | ||
| 6399 | DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, | 6399 | DEFUE ("show-face-resources", Fshow_face_resources, Sshow_face_resources, |
| 6400 | 0, 0, 0, doc: /* */) | 6400 | 0, 0, 0, doc: /* */) |
| 6401 | (void) | 6401 | (void) |
| 6402 | { | 6402 | { |
diff --git a/src/xfns.c b/src/xfns.c index 04b8e44b561..8d8a908222f 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3520,7 +3520,7 @@ x_get_focus_frame (struct frame *frame) | |||
| 3520 | policy. But I think it's okay to use when it's clearly done | 3520 | policy. But I think it's okay to use when it's clearly done |
| 3521 | following a user-command. */ | 3521 | following a user-command. */ |
| 3522 | 3522 | ||
| 3523 | DEFUN ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0, | 3523 | DEFUE ("x-focus-frame", Fx_focus_frame, Sx_focus_frame, 1, 1, 0, |
| 3524 | doc: /* Set the input focus to FRAME. | 3524 | doc: /* Set the input focus to FRAME. |
| 3525 | FRAME nil means use the selected frame. */) | 3525 | FRAME nil means use the selected frame. */) |
| 3526 | (Lisp_Object frame) | 3526 | (Lisp_Object frame) |
| @@ -3573,7 +3573,7 @@ DEFUN ("xw-color-values", Fxw_color_values, Sxw_color_values, 1, 2, 0, | |||
| 3573 | return Qnil; | 3573 | return Qnil; |
| 3574 | } | 3574 | } |
| 3575 | 3575 | ||
| 3576 | DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | 3576 | DEFUE ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, |
| 3577 | doc: /* Internal function called by `display-color-p', which see. */) | 3577 | doc: /* Internal function called by `display-color-p', which see. */) |
| 3578 | (Lisp_Object terminal) | 3578 | (Lisp_Object terminal) |
| 3579 | { | 3579 | { |
| @@ -3595,7 +3595,7 @@ DEFUN ("xw-display-color-p", Fxw_display_color_p, Sxw_display_color_p, 0, 1, 0, | |||
| 3595 | } | 3595 | } |
| 3596 | } | 3596 | } |
| 3597 | 3597 | ||
| 3598 | DEFUN ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, | 3598 | DEFUE ("x-display-grayscale-p", Fx_display_grayscale_p, Sx_display_grayscale_p, |
| 3599 | 0, 1, 0, | 3599 | 0, 1, 0, |
| 3600 | doc: /* Return t if the X display supports shades of gray. | 3600 | doc: /* Return t if the X display supports shades of gray. |
| 3601 | Note that color displays do support shades of gray. | 3601 | Note that color displays do support shades of gray. |
| @@ -5229,7 +5229,7 @@ Text larger than the specified size is clipped. */) | |||
| 5229 | } | 5229 | } |
| 5230 | 5230 | ||
| 5231 | 5231 | ||
| 5232 | DEFUN ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, | 5232 | DEFUE ("x-hide-tip", Fx_hide_tip, Sx_hide_tip, 0, 0, 0, |
| 5233 | doc: /* Hide the current tooltip window, if there is any. | 5233 | doc: /* Hide the current tooltip window, if there is any. |
| 5234 | Value is t if tooltip was open, nil otherwise. */) | 5234 | Value is t if tooltip was open, nil otherwise. */) |
| 5235 | (void) | 5235 | (void) |
diff --git a/src/xmenu.c b/src/xmenu.c index b1f7dfb26bc..595ae795282 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -203,7 +203,7 @@ mouse_position_for_popup (FRAME_PTR f, int *x, int *y) | |||
| 203 | 203 | ||
| 204 | #ifdef HAVE_MENUS | 204 | #ifdef HAVE_MENUS |
| 205 | 205 | ||
| 206 | DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0, | 206 | DEFUE ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0, |
| 207 | doc: /* Pop up a dialog box and return user's selection. | 207 | doc: /* Pop up a dialog box and return user's selection. |
| 208 | POSITION specifies which frame to use. | 208 | POSITION specifies which frame to use. |
| 209 | This is normally a mouse button event or a window or frame. | 209 | This is normally a mouse button event or a window or frame. |
diff --git a/src/xsettings.c b/src/xsettings.c index 097b2477e03..da6d088db15 100644 --- a/src/xsettings.c +++ b/src/xsettings.c | |||
| @@ -718,8 +718,8 @@ DEFUN ("font-get-system-font", Ffont_get_system_font, Sfont_get_system_font, | |||
| 718 | : Qnil; | 718 | : Qnil; |
| 719 | } | 719 | } |
| 720 | 720 | ||
| 721 | DEFUN ("tool-bar-get-system-style", Ftool_bar_get_system_style, Stool_bar_get_system_style, | 721 | DEFUE ("tool-bar-get-system-style", Ftool_bar_get_system_style, |
| 722 | 0, 0, 0, | 722 | Stool_bar_get_system_style, 0, 0, 0, |
| 723 | doc: /* Get the system tool bar style. | 723 | doc: /* Get the system tool bar style. |
| 724 | If no system tool bar style is known, return `tool-bar-style' if set to a | 724 | If no system tool bar style is known, return `tool-bar-style' if set to a |
| 725 | known style. Otherwise return image. */) | 725 | known style. Otherwise return image. */) |