diff options
| author | Gerd Moellmann | 2001-10-14 10:36:32 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-14 10:36:32 +0000 |
| commit | 228299fa7111d1f2da3c2fa741bb27d7dc9c66af (patch) | |
| tree | 562b09ff191ebd71d426b5b2e33df3f7dcac4977 | |
| parent | 37f6b5b6d246d36afcd658c8bdde1791eb790f63 (diff) | |
| download | emacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.tar.gz emacs-228299fa7111d1f2da3c2fa741bb27d7dc9c66af.zip | |
Put doc strings in comments.
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/alloc.c | 223 | ||||
| -rw-r--r-- | src/dispnew.c | 180 | ||||
| -rw-r--r-- | src/term.c | 17 | ||||
| -rw-r--r-- | src/xdisp.c | 317 | ||||
| -rw-r--r-- | src/xfaces.c | 364 | ||||
| -rw-r--r-- | src/xmenu.c | 105 | ||||
| -rw-r--r-- | src/xterm.c | 27 |
8 files changed, 625 insertions, 611 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fb6ea360aaf..c2f027c6347 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,8 +1,7 @@ | |||
| 1 | 2001-10-14 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-10-14 Gerd Moellmann <gerd@gnu.org> |
| 2 | 2 | ||
| 3 | * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c | 3 | * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c |
| 4 | * term.c: | 4 | * term.c, alloc.c: Put doc strings in comments. |
| 5 | Put doc strings in comments. | ||
| 6 | 5 | ||
| 7 | 2001-10-13 Gerd Moellmann <gerd@gnu.org> | 6 | 2001-10-13 Gerd Moellmann <gerd@gnu.org> |
| 8 | 7 | ||
diff --git a/src/alloc.c b/src/alloc.c index b67f3942ba1..3a9dcc3c59d 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -38,6 +38,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 38 | replaced, this file likely will not be used. */ | 38 | replaced, this file likely will not be used. */ |
| 39 | 39 | ||
| 40 | #undef HIDE_LISP_IMPLEMENTATION | 40 | #undef HIDE_LISP_IMPLEMENTATION |
| 41 | #define DOC_STRINGS_IN_COMMENTS | ||
| 41 | #include "lisp.h" | 42 | #include "lisp.h" |
| 42 | #include "process.h" | 43 | #include "process.h" |
| 43 | #include "intervals.h" | 44 | #include "intervals.h" |
| @@ -1659,9 +1660,9 @@ compact_small_strings () | |||
| 1659 | 1660 | ||
| 1660 | 1661 | ||
| 1661 | DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0, | 1662 | DEFUN ("make-string", Fmake_string, Smake_string, 2, 2, 0, |
| 1662 | "Return a newly created string of length LENGTH, with each element being INIT.\n\ | 1663 | /* Return a newly created string of length LENGTH, with each element being INIT. |
| 1663 | Both LENGTH and INIT must be numbers.") | 1664 | Both LENGTH and INIT must be numbers. */ |
| 1664 | (length, init) | 1665 | (length, init)) |
| 1665 | Lisp_Object length, init; | 1666 | Lisp_Object length, init; |
| 1666 | { | 1667 | { |
| 1667 | register Lisp_Object val; | 1668 | register Lisp_Object val; |
| @@ -1703,9 +1704,9 @@ Both LENGTH and INIT must be numbers.") | |||
| 1703 | 1704 | ||
| 1704 | 1705 | ||
| 1705 | DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, | 1706 | DEFUN ("make-bool-vector", Fmake_bool_vector, Smake_bool_vector, 2, 2, 0, |
| 1706 | "Return a new bool-vector of length LENGTH, using INIT for as each element.\n\ | 1707 | /* Return a new bool-vector of length LENGTH, using INIT for as each element. |
| 1707 | LENGTH must be a number. INIT matters only in whether it is t or nil.") | 1708 | LENGTH must be a number. INIT matters only in whether it is t or nil. */ |
| 1708 | (length, init) | 1709 | (length, init)) |
| 1709 | Lisp_Object length, init; | 1710 | Lisp_Object length, init; |
| 1710 | { | 1711 | { |
| 1711 | register Lisp_Object val; | 1712 | register Lisp_Object val; |
| @@ -2057,8 +2058,8 @@ free_cons (ptr) | |||
| 2057 | 2058 | ||
| 2058 | 2059 | ||
| 2059 | DEFUN ("cons", Fcons, Scons, 2, 2, 0, | 2060 | DEFUN ("cons", Fcons, Scons, 2, 2, 0, |
| 2060 | "Create a new cons, give it CAR and CDR as components, and return it.") | 2061 | /* Create a new cons, give it CAR and CDR as components, and return it. */ |
| 2061 | (car, cdr) | 2062 | (car, cdr)) |
| 2062 | Lisp_Object car, cdr; | 2063 | Lisp_Object car, cdr; |
| 2063 | { | 2064 | { |
| 2064 | register Lisp_Object val; | 2065 | register Lisp_Object val; |
| @@ -2130,9 +2131,9 @@ list5 (arg1, arg2, arg3, arg4, arg5) | |||
| 2130 | 2131 | ||
| 2131 | 2132 | ||
| 2132 | DEFUN ("list", Flist, Slist, 0, MANY, 0, | 2133 | DEFUN ("list", Flist, Slist, 0, MANY, 0, |
| 2133 | "Return a newly created list with specified arguments as elements.\n\ | 2134 | /* Return a newly created list with specified arguments as elements. |
| 2134 | Any number of arguments, even zero arguments, are allowed.") | 2135 | Any number of arguments, even zero arguments, are allowed. */ |
| 2135 | (nargs, args) | 2136 | (nargs, args)) |
| 2136 | int nargs; | 2137 | int nargs; |
| 2137 | register Lisp_Object *args; | 2138 | register Lisp_Object *args; |
| 2138 | { | 2139 | { |
| @@ -2149,8 +2150,8 @@ Any number of arguments, even zero arguments, are allowed.") | |||
| 2149 | 2150 | ||
| 2150 | 2151 | ||
| 2151 | DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, | 2152 | DEFUN ("make-list", Fmake_list, Smake_list, 2, 2, 0, |
| 2152 | "Return a newly created list of length LENGTH, with each element being INIT.") | 2153 | /* Return a newly created list of length LENGTH, with each element being INIT. */ |
| 2153 | (length, init) | 2154 | (length, init)) |
| 2154 | register Lisp_Object length, init; | 2155 | register Lisp_Object length, init; |
| 2155 | { | 2156 | { |
| 2156 | register Lisp_Object val; | 2157 | register Lisp_Object val; |
| @@ -2336,9 +2337,9 @@ allocate_other_vector (len) | |||
| 2336 | 2337 | ||
| 2337 | 2338 | ||
| 2338 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, | 2339 | DEFUN ("make-vector", Fmake_vector, Smake_vector, 2, 2, 0, |
| 2339 | "Return a newly created vector of length LENGTH, with each element being INIT.\n\ | 2340 | /* Return a newly created vector of length LENGTH, with each element being INIT. |
| 2340 | See also the function `vector'.") | 2341 | See also the function `vector'. */ |
| 2341 | (length, init) | 2342 | (length, init)) |
| 2342 | register Lisp_Object length, init; | 2343 | register Lisp_Object length, init; |
| 2343 | { | 2344 | { |
| 2344 | Lisp_Object vector; | 2345 | Lisp_Object vector; |
| @@ -2359,11 +2360,11 @@ See also the function `vector'.") | |||
| 2359 | 2360 | ||
| 2360 | 2361 | ||
| 2361 | DEFUN ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, | 2362 | DEFUN ("make-char-table", Fmake_char_table, Smake_char_table, 1, 2, 0, |
| 2362 | "Return a newly created char-table, with purpose PURPOSE.\n\ | 2363 | /* Return a newly created char-table, with purpose PURPOSE. |
| 2363 | Each element is initialized to INIT, which defaults to nil.\n\ | 2364 | Each element is initialized to INIT, which defaults to nil. |
| 2364 | PURPOSE should be a symbol which has a `char-table-extra-slots' property.\n\ | 2365 | PURPOSE should be a symbol which has a `char-table-extra-slots' property. |
| 2365 | The property's value should be an integer between 0 and 10.") | 2366 | The property's value should be an integer between 0 and 10. */ |
| 2366 | (purpose, init) | 2367 | (purpose, init)) |
| 2367 | register Lisp_Object purpose, init; | 2368 | register Lisp_Object purpose, init; |
| 2368 | { | 2369 | { |
| 2369 | Lisp_Object vector; | 2370 | Lisp_Object vector; |
| @@ -2402,9 +2403,9 @@ make_sub_char_table (defalt) | |||
| 2402 | 2403 | ||
| 2403 | 2404 | ||
| 2404 | DEFUN ("vector", Fvector, Svector, 0, MANY, 0, | 2405 | DEFUN ("vector", Fvector, Svector, 0, MANY, 0, |
| 2405 | "Return a newly created vector with specified arguments as elements.\n\ | 2406 | /* Return a newly created vector with specified arguments as elements. |
| 2406 | Any number of arguments, even zero arguments, are allowed.") | 2407 | Any number of arguments, even zero arguments, are allowed. */ |
| 2407 | (nargs, args) | 2408 | (nargs, args)) |
| 2408 | register int nargs; | 2409 | register int nargs; |
| 2409 | Lisp_Object *args; | 2410 | Lisp_Object *args; |
| 2410 | { | 2411 | { |
| @@ -2422,12 +2423,12 @@ Any number of arguments, even zero arguments, are allowed.") | |||
| 2422 | 2423 | ||
| 2423 | 2424 | ||
| 2424 | DEFUN ("make-byte-code", Fmake_byte_code, Smake_byte_code, 4, MANY, 0, | 2425 | DEFUN ("make-byte-code", Fmake_byte_code, Smake_byte_code, 4, MANY, 0, |
| 2425 | "Create a byte-code object with specified arguments as elements.\n\ | 2426 | /* Create a byte-code object with specified arguments as elements. |
| 2426 | The arguments should be the arglist, bytecode-string, constant vector,\n\ | 2427 | The arguments should be the arglist, bytecode-string, constant vector, |
| 2427 | stack size, (optional) doc string, and (optional) interactive spec.\n\ | 2428 | stack size, (optional) doc string, and (optional) interactive spec. |
| 2428 | The first four arguments are required; at most six have any\n\ | 2429 | The first four arguments are required; at most six have any |
| 2429 | significance.") | 2430 | significance. */ |
| 2430 | (nargs, args) | 2431 | (nargs, args)) |
| 2431 | register int nargs; | 2432 | register int nargs; |
| 2432 | Lisp_Object *args; | 2433 | Lisp_Object *args; |
| 2433 | { | 2434 | { |
| @@ -2510,9 +2511,9 @@ init_symbol () | |||
| 2510 | 2511 | ||
| 2511 | 2512 | ||
| 2512 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, | 2513 | DEFUN ("make-symbol", Fmake_symbol, Smake_symbol, 1, 1, 0, |
| 2513 | "Return a newly allocated uninterned symbol whose name is NAME.\n\ | 2514 | /* Return a newly allocated uninterned symbol whose name is NAME. |
| 2514 | Its value and function definition are void, and its property list is nil.") | 2515 | Its value and function definition are void, and its property list is nil. */ |
| 2515 | (name) | 2516 | (name)) |
| 2516 | Lisp_Object name; | 2517 | Lisp_Object name; |
| 2517 | { | 2518 | { |
| 2518 | register Lisp_Object val; | 2519 | register Lisp_Object val; |
| @@ -2628,8 +2629,8 @@ allocate_misc () | |||
| 2628 | } | 2629 | } |
| 2629 | 2630 | ||
| 2630 | DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, | 2631 | DEFUN ("make-marker", Fmake_marker, Smake_marker, 0, 0, 0, |
| 2631 | "Return a newly allocated marker which does not point at any place.") | 2632 | /* Return a newly allocated marker which does not point at any place. */ |
| 2632 | () | 2633 | ()) |
| 2633 | { | 2634 | { |
| 2634 | register Lisp_Object val; | 2635 | register Lisp_Object val; |
| 2635 | register struct Lisp_Marker *p; | 2636 | register struct Lisp_Marker *p; |
| @@ -3299,8 +3300,8 @@ static int max_live, max_zombies; | |||
| 3299 | static double avg_live; | 3300 | static double avg_live; |
| 3300 | 3301 | ||
| 3301 | DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", | 3302 | DEFUN ("gc-status", Fgc_status, Sgc_status, 0, 0, "", |
| 3302 | "Show information about live and zombie objects.") | 3303 | /* Show information about live and zombie objects. */ |
| 3303 | () | 3304 | ()) |
| 3304 | { | 3305 | { |
| 3305 | Lisp_Object args[7]; | 3306 | Lisp_Object args[7]; |
| 3306 | args[0] = build_string ("%d GCs, avg live/zombies = %.2f/%.2f (%f%%), max %d/%d"); | 3307 | args[0] = build_string ("%d GCs, avg live/zombies = %.2f/%.2f (%f%%), max %d/%d"); |
| @@ -3918,10 +3919,10 @@ make_pure_vector (len) | |||
| 3918 | 3919 | ||
| 3919 | 3920 | ||
| 3920 | DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0, | 3921 | DEFUN ("purecopy", Fpurecopy, Spurecopy, 1, 1, 0, |
| 3921 | "Make a copy of OBJECT in pure storage.\n\ | 3922 | /* Make a copy of OBJECT in pure storage. |
| 3922 | Recursively copies contents of vectors and cons cells.\n\ | 3923 | Recursively copies contents of vectors and cons cells. |
| 3923 | Does not copy symbols. Copies strings without text properties.") | 3924 | Does not copy symbols. Copies strings without text properties. */ |
| 3924 | (obj) | 3925 | (obj)) |
| 3925 | register Lisp_Object obj; | 3926 | register Lisp_Object obj; |
| 3926 | { | 3927 | { |
| 3927 | if (NILP (Vpurify_flag)) | 3928 | if (NILP (Vpurify_flag)) |
| @@ -4015,15 +4016,15 @@ inhibit_garbage_collection () | |||
| 4015 | 4016 | ||
| 4016 | 4017 | ||
| 4017 | DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", | 4018 | DEFUN ("garbage-collect", Fgarbage_collect, Sgarbage_collect, 0, 0, "", |
| 4018 | "Reclaim storage for Lisp objects no longer needed.\n\ | 4019 | /* Reclaim storage for Lisp objects no longer needed. |
| 4019 | Returns info on amount of space in use:\n\ | 4020 | Returns info on amount of space in use: |
| 4020 | ((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS)\n\ | 4021 | ((USED-CONSES . FREE-CONSES) (USED-SYMS . FREE-SYMS) |
| 4021 | (USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS\n\ | 4022 | (USED-MARKERS . FREE-MARKERS) USED-STRING-CHARS USED-VECTOR-SLOTS |
| 4022 | (USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS)\n\ | 4023 | (USED-FLOATS . FREE-FLOATS) (USED-INTERVALS . FREE-INTERVALS) |
| 4023 | (USED-STRINGS . FREE-STRINGS))\n\ | 4024 | (USED-STRINGS . FREE-STRINGS)) |
| 4024 | Garbage collection happens automatically if you cons more than\n\ | 4025 | Garbage collection happens automatically if you cons more than |
| 4025 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection.") | 4026 | `gc-cons-threshold' bytes of Lisp data since previous garbage collection. */ |
| 4026 | () | 4027 | ()) |
| 4027 | { | 4028 | { |
| 4028 | register struct gcpro *tail; | 4029 | register struct gcpro *tail; |
| 4029 | register struct specbinding *bind; | 4030 | register struct specbinding *bind; |
| @@ -5317,10 +5318,10 @@ gc_sweep () | |||
| 5317 | /* Debugging aids. */ | 5318 | /* Debugging aids. */ |
| 5318 | 5319 | ||
| 5319 | DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, 0, | 5320 | DEFUN ("memory-limit", Fmemory_limit, Smemory_limit, 0, 0, 0, |
| 5320 | "Return the address of the last byte Emacs has allocated, divided by 1024.\n\ | 5321 | /* Return the address of the last byte Emacs has allocated, divided by 1024. |
| 5321 | This may be helpful in debugging Emacs's memory usage.\n\ | 5322 | This may be helpful in debugging Emacs's memory usage. |
| 5322 | We divide the value by 1024 to make sure it fits in a Lisp integer.") | 5323 | We divide the value by 1024 to make sure it fits in a Lisp integer. */ |
| 5323 | () | 5324 | ()) |
| 5324 | { | 5325 | { |
| 5325 | Lisp_Object end; | 5326 | Lisp_Object end; |
| 5326 | 5327 | ||
| @@ -5330,19 +5331,19 @@ We divide the value by 1024 to make sure it fits in a Lisp integer.") | |||
| 5330 | } | 5331 | } |
| 5331 | 5332 | ||
| 5332 | DEFUN ("memory-use-counts", Fmemory_use_counts, Smemory_use_counts, 0, 0, 0, | 5333 | DEFUN ("memory-use-counts", Fmemory_use_counts, Smemory_use_counts, 0, 0, 0, |
| 5333 | "Return a list of counters that measure how much consing there has been.\n\ | 5334 | /* Return a list of counters that measure how much consing there has been. |
| 5334 | Each of these counters increments for a certain kind of object.\n\ | 5335 | Each of these counters increments for a certain kind of object. |
| 5335 | The counters wrap around from the largest positive integer to zero.\n\ | 5336 | The counters wrap around from the largest positive integer to zero. |
| 5336 | Garbage collection does not decrease them.\n\ | 5337 | Garbage collection does not decrease them. |
| 5337 | The elements of the value are as follows:\n\ | 5338 | The elements of the value are as follows: |
| 5338 | (CONSES FLOATS VECTOR-CELLS SYMBOLS STRING-CHARS MISCS INTERVALS STRINGS)\n\ | 5339 | (CONSES FLOATS VECTOR-CELLS SYMBOLS STRING-CHARS MISCS INTERVALS STRINGS) |
| 5339 | All are in units of 1 = one object consed\n\ | 5340 | All are in units of 1 = one object consed |
| 5340 | except for VECTOR-CELLS and STRING-CHARS, which count the total length of\n\ | 5341 | except for VECTOR-CELLS and STRING-CHARS, which count the total length of |
| 5341 | objects consed.\n\ | 5342 | objects consed. |
| 5342 | MISCS include overlays, markers, and some internal types.\n\ | 5343 | MISCS include overlays, markers, and some internal types. |
| 5343 | Frames, windows, buffers, and subprocesses count as vectors\n\ | 5344 | Frames, windows, buffers, and subprocesses count as vectors |
| 5344 | (but the contents of a buffer's text do not count here).") | 5345 | (but the contents of a buffer's text do not count here). */ |
| 5345 | () | 5346 | ()) |
| 5346 | { | 5347 | { |
| 5347 | Lisp_Object consed[8]; | 5348 | Lisp_Object consed[8]; |
| 5348 | 5349 | ||
| @@ -5435,66 +5436,68 @@ init_alloc () | |||
| 5435 | void | 5436 | void |
| 5436 | syms_of_alloc () | 5437 | syms_of_alloc () |
| 5437 | { | 5438 | { |
| 5438 | DEFVAR_INT ("gc-cons-threshold", &gc_cons_threshold, | 5439 | DEFVAR_INT ("gc-cons-threshold", &gc_cons_threshold |
| 5439 | "*Number of bytes of consing between garbage collections.\n\ | 5440 | /* *Number of bytes of consing between garbage collections. |
| 5440 | Garbage collection can happen automatically once this many bytes have been\n\ | 5441 | Garbage collection can happen automatically once this many bytes have been |
| 5441 | allocated since the last garbage collection. All data types count.\n\n\ | 5442 | allocated since the last garbage collection. All data types count. |
| 5442 | Garbage collection happens automatically only when `eval' is called.\n\n\ | ||
| 5443 | By binding this temporarily to a large number, you can effectively\n\ | ||
| 5444 | prevent garbage collection during a part of the program."); | ||
| 5445 | 5443 | ||
| 5446 | DEFVAR_INT ("pure-bytes-used", &pure_bytes_used, | 5444 | Garbage collection happens automatically only when `eval' is called. |
| 5447 | "Number of bytes of sharable Lisp data allocated so far."); | ||
| 5448 | 5445 | ||
| 5449 | DEFVAR_INT ("cons-cells-consed", &cons_cells_consed, | 5446 | By binding this temporarily to a large number, you can effectively |
| 5450 | "Number of cons cells that have been consed so far."); | 5447 | prevent garbage collection during a part of the program. */); |
| 5451 | 5448 | ||
| 5452 | DEFVAR_INT ("floats-consed", &floats_consed, | 5449 | DEFVAR_INT ("pure-bytes-used", &pure_bytes_used |
| 5453 | "Number of floats that have been consed so far."); | 5450 | /* Number of bytes of sharable Lisp data allocated so far. */); |
| 5454 | 5451 | ||
| 5455 | DEFVAR_INT ("vector-cells-consed", &vector_cells_consed, | 5452 | DEFVAR_INT ("cons-cells-consed", &cons_cells_consed |
| 5456 | "Number of vector cells that have been consed so far."); | 5453 | /* Number of cons cells that have been consed so far. */); |
| 5457 | 5454 | ||
| 5458 | DEFVAR_INT ("symbols-consed", &symbols_consed, | 5455 | DEFVAR_INT ("floats-consed", &floats_consed |
| 5459 | "Number of symbols that have been consed so far."); | 5456 | /* Number of floats that have been consed so far. */); |
| 5460 | 5457 | ||
| 5461 | DEFVAR_INT ("string-chars-consed", &string_chars_consed, | 5458 | DEFVAR_INT ("vector-cells-consed", &vector_cells_consed |
| 5462 | "Number of string characters that have been consed so far."); | 5459 | /* Number of vector cells that have been consed so far. */); |
| 5463 | 5460 | ||
| 5464 | DEFVAR_INT ("misc-objects-consed", &misc_objects_consed, | 5461 | DEFVAR_INT ("symbols-consed", &symbols_consed |
| 5465 | "Number of miscellaneous objects that have been consed so far."); | 5462 | /* Number of symbols that have been consed so far. */); |
| 5466 | 5463 | ||
| 5467 | DEFVAR_INT ("intervals-consed", &intervals_consed, | 5464 | DEFVAR_INT ("string-chars-consed", &string_chars_consed |
| 5468 | "Number of intervals that have been consed so far."); | 5465 | /* Number of string characters that have been consed so far. */); |
| 5469 | 5466 | ||
| 5470 | DEFVAR_INT ("strings-consed", &strings_consed, | 5467 | DEFVAR_INT ("misc-objects-consed", &misc_objects_consed |
| 5471 | "Number of strings that have been consed so far."); | 5468 | /* Number of miscellaneous objects that have been consed so far. */); |
| 5472 | 5469 | ||
| 5473 | DEFVAR_LISP ("purify-flag", &Vpurify_flag, | 5470 | DEFVAR_INT ("intervals-consed", &intervals_consed |
| 5474 | "Non-nil means loading Lisp code in order to dump an executable.\n\ | 5471 | /* Number of intervals that have been consed so far. */); |
| 5475 | This means that certain objects should be allocated in shared (pure) space."); | ||
| 5476 | 5472 | ||
| 5477 | DEFVAR_INT ("undo-limit", &undo_limit, | 5473 | DEFVAR_INT ("strings-consed", &strings_consed |
| 5478 | "Keep no more undo information once it exceeds this size.\n\ | 5474 | /* Number of strings that have been consed so far. */); |
| 5479 | This limit is applied when garbage collection happens.\n\ | 5475 | |
| 5480 | The size is counted as the number of bytes occupied,\n\ | 5476 | DEFVAR_LISP ("purify-flag", &Vpurify_flag |
| 5481 | which includes both saved text and other data."); | 5477 | /* Non-nil means loading Lisp code in order to dump an executable. |
| 5478 | This means that certain objects should be allocated in shared (pure) space. */); | ||
| 5479 | |||
| 5480 | DEFVAR_INT ("undo-limit", &undo_limit | ||
| 5481 | /* Keep no more undo information once it exceeds this size. | ||
| 5482 | This limit is applied when garbage collection happens. | ||
| 5483 | The size is counted as the number of bytes occupied, | ||
| 5484 | which includes both saved text and other data. */); | ||
| 5482 | undo_limit = 20000; | 5485 | undo_limit = 20000; |
| 5483 | 5486 | ||
| 5484 | DEFVAR_INT ("undo-strong-limit", &undo_strong_limit, | 5487 | DEFVAR_INT ("undo-strong-limit", &undo_strong_limit |
| 5485 | "Don't keep more than this much size of undo information.\n\ | 5488 | /* Don't keep more than this much size of undo information. |
| 5486 | A command which pushes past this size is itself forgotten.\n\ | 5489 | A command which pushes past this size is itself forgotten. |
| 5487 | This limit is applied when garbage collection happens.\n\ | 5490 | This limit is applied when garbage collection happens. |
| 5488 | The size is counted as the number of bytes occupied,\n\ | 5491 | The size is counted as the number of bytes occupied, |
| 5489 | which includes both saved text and other data."); | 5492 | which includes both saved text and other data. */); |
| 5490 | undo_strong_limit = 30000; | 5493 | undo_strong_limit = 30000; |
| 5491 | 5494 | ||
| 5492 | DEFVAR_BOOL ("garbage-collection-messages", &garbage_collection_messages, | 5495 | DEFVAR_BOOL ("garbage-collection-messages", &garbage_collection_messages |
| 5493 | "Non-nil means display messages at start and end of garbage collection."); | 5496 | /* Non-nil means display messages at start and end of garbage collection. */); |
| 5494 | garbage_collection_messages = 0; | 5497 | garbage_collection_messages = 0; |
| 5495 | 5498 | ||
| 5496 | DEFVAR_LISP ("post-gc-hook", &Vpost_gc_hook, | 5499 | DEFVAR_LISP ("post-gc-hook", &Vpost_gc_hook |
| 5497 | "Hook run after garbage collection has finished."); | 5500 | /* Hook run after garbage collection has finished. */); |
| 5498 | Vpost_gc_hook = Qnil; | 5501 | Vpost_gc_hook = Qnil; |
| 5499 | Qpost_gc_hook = intern ("post-gc-hook"); | 5502 | Qpost_gc_hook = intern ("post-gc-hook"); |
| 5500 | staticpro (&Qpost_gc_hook); | 5503 | staticpro (&Qpost_gc_hook); |
diff --git a/src/dispnew.c b/src/dispnew.c index 0b91c69854c..191b437406e 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -19,6 +19,8 @@ along with GNU Emacs; see the file COPYING. If not, write to | |||
| 19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 20 | Boston, MA 02111-1307, USA. */ | 20 | Boston, MA 02111-1307, USA. */ |
| 21 | 21 | ||
| 22 | #define DOC_STRINGS_IN_COMMENTS | ||
| 23 | |||
| 22 | #include <config.h> | 24 | #include <config.h> |
| 23 | #include <signal.h> | 25 | #include <signal.h> |
| 24 | #include <stdio.h> | 26 | #include <stdio.h> |
| @@ -410,8 +412,8 @@ add_frame_display_history (f, paused_p) | |||
| 410 | 412 | ||
| 411 | DEFUN ("dump-redisplay-history", Fdump_redisplay_history, | 413 | DEFUN ("dump-redisplay-history", Fdump_redisplay_history, |
| 412 | Sdump_redisplay_history, 0, 0, "", | 414 | Sdump_redisplay_history, 0, 0, "", |
| 413 | "Dump redisplay history to stderr.") | 415 | /* Dump redisplay history to stderr. */ |
| 414 | () | 416 | ()) |
| 415 | { | 417 | { |
| 416 | int i; | 418 | int i; |
| 417 | 419 | ||
| @@ -3305,8 +3307,8 @@ window_to_frame_hpos (w, hpos) | |||
| 3305 | **********************************************************************/ | 3307 | **********************************************************************/ |
| 3306 | 3308 | ||
| 3307 | DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, | 3309 | DEFUN ("redraw-frame", Fredraw_frame, Sredraw_frame, 1, 1, 0, |
| 3308 | "Clear frame FRAME and output again what is supposed to appear on it.") | 3310 | /* Clear frame FRAME and output again what is supposed to appear on it. */ |
| 3309 | (frame) | 3311 | (frame)) |
| 3310 | Lisp_Object frame; | 3312 | Lisp_Object frame; |
| 3311 | { | 3313 | { |
| 3312 | struct frame *f; | 3314 | struct frame *f; |
| @@ -3351,8 +3353,8 @@ redraw_frame (f) | |||
| 3351 | 3353 | ||
| 3352 | 3354 | ||
| 3353 | DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", | 3355 | DEFUN ("redraw-display", Fredraw_display, Sredraw_display, 0, 0, "", |
| 3354 | "Clear and redisplay all visible frames.") | 3356 | /* Clear and redisplay all visible frames. */ |
| 3355 | () | 3357 | ()) |
| 3356 | { | 3358 | { |
| 3357 | Lisp_Object tail, frame; | 3359 | Lisp_Object tail, frame; |
| 3358 | 3360 | ||
| @@ -6040,10 +6042,10 @@ change_frame_size_1 (f, newheight, newwidth, pretend, delay, safe) | |||
| 6040 | ***********************************************************************/ | 6042 | ***********************************************************************/ |
| 6041 | 6043 | ||
| 6042 | DEFUN ("open-termscript", Fopen_termscript, Sopen_termscript, | 6044 | DEFUN ("open-termscript", Fopen_termscript, Sopen_termscript, |
| 6043 | 1, 1, "FOpen termscript file: ", | 6045 | 1, 1, "FOpen termscript file: ", |
| 6044 | "Start writing all terminal output to FILE as well as the terminal.\n\ | 6046 | /* Start writing all terminal output to FILE as well as the terminal. |
| 6045 | FILE = nil means just close any termscript file currently open.") | 6047 | FILE = nil means just close any termscript file currently open. */ |
| 6046 | (file) | 6048 | (file)) |
| 6047 | Lisp_Object file; | 6049 | Lisp_Object file; |
| 6048 | { | 6050 | { |
| 6049 | if (termscript != 0) fclose (termscript); | 6051 | if (termscript != 0) fclose (termscript); |
| @@ -6061,10 +6063,10 @@ FILE = nil means just close any termscript file currently open.") | |||
| 6061 | 6063 | ||
| 6062 | 6064 | ||
| 6063 | DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, | 6065 | DEFUN ("send-string-to-terminal", Fsend_string_to_terminal, |
| 6064 | Ssend_string_to_terminal, 1, 1, 0, | 6066 | Ssend_string_to_terminal, 1, 1, 0, |
| 6065 | "Send STRING to the terminal without alteration.\n\ | 6067 | /* Send STRING to the terminal without alteration. |
| 6066 | Control characters in STRING will have terminal-dependent effects.") | 6068 | Control characters in STRING will have terminal-dependent effects. */ |
| 6067 | (string) | 6069 | (string)) |
| 6068 | Lisp_Object string; | 6070 | Lisp_Object string; |
| 6069 | { | 6071 | { |
| 6070 | /* ??? Perhaps we should do something special for multibyte strings here. */ | 6072 | /* ??? Perhaps we should do something special for multibyte strings here. */ |
| @@ -6082,10 +6084,10 @@ Control characters in STRING will have terminal-dependent effects.") | |||
| 6082 | 6084 | ||
| 6083 | 6085 | ||
| 6084 | DEFUN ("ding", Fding, Sding, 0, 1, 0, | 6086 | DEFUN ("ding", Fding, Sding, 0, 1, 0, |
| 6085 | "Beep, or flash the screen.\n\ | 6087 | /* Beep, or flash the screen. |
| 6086 | Also, unless an argument is given,\n\ | 6088 | Also, unless an argument is given, |
| 6087 | terminate any keyboard macro currently executing.") | 6089 | terminate any keyboard macro currently executing. */ |
| 6088 | (arg) | 6090 | (arg)) |
| 6089 | Lisp_Object arg; | 6091 | Lisp_Object arg; |
| 6090 | { | 6092 | { |
| 6091 | if (!NILP (arg)) | 6093 | if (!NILP (arg)) |
| @@ -6121,13 +6123,13 @@ bitch_at_user () | |||
| 6121 | ***********************************************************************/ | 6123 | ***********************************************************************/ |
| 6122 | 6124 | ||
| 6123 | DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 0, | 6125 | DEFUN ("sleep-for", Fsleep_for, Ssleep_for, 1, 2, 0, |
| 6124 | "Pause, without updating display, for SECONDS seconds.\n\ | 6126 | /* Pause, without updating display, for SECONDS seconds. |
| 6125 | SECONDS may be a floating-point value, meaning that you can wait for a\n\ | 6127 | SECONDS may be a floating-point value, meaning that you can wait for a |
| 6126 | fraction of a second. Optional second arg MILLISECONDS specifies an\n\ | 6128 | fraction of a second. Optional second arg MILLISECONDS specifies an |
| 6127 | additional wait period, in milliseconds; this may be useful if your\n\ | 6129 | additional wait period, in milliseconds; this may be useful if your |
| 6128 | Emacs was built without floating point support.\n\ | 6130 | Emacs was built without floating point support. |
| 6129 | \(Not all operating systems support waiting for a fraction of a second.)") | 6131 | \(Not all operating systems support waiting for a fraction of a second. */ |
| 6130 | (seconds, milliseconds) | 6132 | (seconds, milliseconds)) |
| 6131 | Lisp_Object seconds, milliseconds; | 6133 | Lisp_Object seconds, milliseconds; |
| 6132 | { | 6134 | { |
| 6133 | int sec, usec; | 6135 | int sec, usec; |
| @@ -6244,17 +6246,17 @@ sit_for (sec, usec, reading, display, initial_display) | |||
| 6244 | 6246 | ||
| 6245 | 6247 | ||
| 6246 | DEFUN ("sit-for", Fsit_for, Ssit_for, 1, 3, 0, | 6248 | DEFUN ("sit-for", Fsit_for, Ssit_for, 1, 3, 0, |
| 6247 | "Perform redisplay, then wait for SECONDS seconds or until input is available.\n\ | 6249 | /* Perform redisplay, then wait for SECONDS seconds or until input is available. |
| 6248 | SECONDS may be a floating-point value, meaning that you can wait for a\n\ | 6250 | SECONDS may be a floating-point value, meaning that you can wait for a |
| 6249 | fraction of a second. Optional second arg MILLISECONDS specifies an\n\ | 6251 | fraction of a second. Optional second arg MILLISECONDS specifies an |
| 6250 | additional wait period, in milliseconds; this may be useful if your\n\ | 6252 | additional wait period, in milliseconds; this may be useful if your |
| 6251 | Emacs was built without floating point support.\n\ | 6253 | Emacs was built without floating point support. |
| 6252 | \(Not all operating systems support waiting for a fraction of a second.)\n\ | 6254 | \(Not all operating systems support waiting for a fraction of a second.) |
| 6253 | Optional third arg NODISP non-nil means don't redisplay, just wait for input.\n\ | 6255 | Optional third arg NODISP non-nil means don't redisplay, just wait for input. |
| 6254 | Redisplay is preempted as always if input arrives, and does not happen\n\ | 6256 | Redisplay is preempted as always if input arrives, and does not happen |
| 6255 | if input is available before it starts.\n\ | 6257 | if input is available before it starts. |
| 6256 | Value is t if waited the full time with no input arriving.") | 6258 | Value is t if waited the full time with no input arriving. */ |
| 6257 | (seconds, milliseconds, nodisp) | 6259 | (seconds, milliseconds, nodisp)) |
| 6258 | Lisp_Object seconds, milliseconds, nodisp; | 6260 | Lisp_Object seconds, milliseconds, nodisp; |
| 6259 | { | 6261 | { |
| 6260 | int sec, usec; | 6262 | int sec, usec; |
| @@ -6294,15 +6296,15 @@ static Lisp_Object frame_and_buffer_state; | |||
| 6294 | 6296 | ||
| 6295 | 6297 | ||
| 6296 | DEFUN ("frame-or-buffer-changed-p", Fframe_or_buffer_changed_p, | 6298 | DEFUN ("frame-or-buffer-changed-p", Fframe_or_buffer_changed_p, |
| 6297 | Sframe_or_buffer_changed_p, 0, 0, 0, | 6299 | Sframe_or_buffer_changed_p, 0, 0, 0, |
| 6298 | "Return non-nil if the frame and buffer state appears to have changed.\n\ | 6300 | /* Return non-nil if the frame and buffer state appears to have changed. |
| 6299 | The state variable is an internal vector containing all frames and buffers,\n\ | 6301 | The state variable is an internal vector containing all frames and buffers, |
| 6300 | aside from buffers whose names start with space,\n\ | 6302 | aside from buffers whose names start with space, |
| 6301 | along with the buffers' read-only and modified flags, which allows a fast\n\ | 6303 | along with the buffers' read-only and modified flags, which allows a fast |
| 6302 | check to see whether the menu bars might need to be recomputed.\n\ | 6304 | check to see whether the menu bars might need to be recomputed. |
| 6303 | If this function returns non-nil, it updates the internal vector to reflect\n\ | 6305 | If this function returns non-nil, it updates the internal vector to reflect |
| 6304 | the current state.\n") | 6306 | the current state. */ |
| 6305 | () | 6307 | ()) |
| 6306 | { | 6308 | { |
| 6307 | Lisp_Object tail, frame, buf; | 6309 | Lisp_Object tail, frame, buf; |
| 6308 | Lisp_Object *vecp; | 6310 | Lisp_Object *vecp; |
| @@ -6567,11 +6569,11 @@ For types not defined in VMS, use define emacs_term \"TYPE\".\n\ | |||
| 6567 | 6569 | ||
| 6568 | DEFUN ("internal-show-cursor", Finternal_show_cursor, | 6570 | DEFUN ("internal-show-cursor", Finternal_show_cursor, |
| 6569 | Sinternal_show_cursor, 2, 2, 0, | 6571 | Sinternal_show_cursor, 2, 2, 0, |
| 6570 | "Set the cursor-visibility flag of WINDOW to SHOW.\n\ | 6572 | /* Set the cursor-visibility flag of WINDOW to SHOW. |
| 6571 | WINDOW nil means use the selected window. SHOW non-nil means\n\ | 6573 | WINDOW nil means use the selected window. SHOW non-nil means |
| 6572 | show a cursor in WINDOW in the next redisplay. SHOW nil means\n\ | 6574 | show a cursor in WINDOW in the next redisplay. SHOW nil means |
| 6573 | don't show a cursor.") | 6575 | don't show a cursor. */ |
| 6574 | (window, show) | 6576 | (window, show)) |
| 6575 | Lisp_Object window, show; | 6577 | Lisp_Object window, show; |
| 6576 | { | 6578 | { |
| 6577 | /* Don't change cursor state while redisplaying. This could confuse | 6579 | /* Don't change cursor state while redisplaying. This could confuse |
| @@ -6592,9 +6594,9 @@ don't show a cursor.") | |||
| 6592 | 6594 | ||
| 6593 | DEFUN ("internal-show-cursor-p", Finternal_show_cursor_p, | 6595 | DEFUN ("internal-show-cursor-p", Finternal_show_cursor_p, |
| 6594 | Sinternal_show_cursor_p, 0, 1, 0, | 6596 | Sinternal_show_cursor_p, 0, 1, 0, |
| 6595 | "Value is non-nil if next redisplay will display a cursor in WINDOW.\n\ | 6597 | /* Value is non-nil if next redisplay will display a cursor in WINDOW. |
| 6596 | WINDOW nil or omitted means report on the selected window.") | 6598 | WINDOW nil or omitted means report on the selected window. */ |
| 6597 | (window) | 6599 | (window)) |
| 6598 | Lisp_Object window; | 6600 | Lisp_Object window; |
| 6599 | { | 6601 | { |
| 6600 | struct window *w; | 6602 | struct window *w; |
| @@ -6639,53 +6641,53 @@ syms_of_display () | |||
| 6639 | Qredisplay_dont_pause = intern ("redisplay-dont-pause"); | 6641 | Qredisplay_dont_pause = intern ("redisplay-dont-pause"); |
| 6640 | staticpro (&Qredisplay_dont_pause); | 6642 | staticpro (&Qredisplay_dont_pause); |
| 6641 | 6643 | ||
| 6642 | DEFVAR_INT ("baud-rate", &baud_rate, | 6644 | DEFVAR_INT ("baud-rate", &baud_rate |
| 6643 | "*The output baud rate of the terminal.\n\ | 6645 | /* *The output baud rate of the terminal. |
| 6644 | On most systems, changing this value will affect the amount of padding\n\ | 6646 | On most systems, changing this value will affect the amount of padding |
| 6645 | and the other strategic decisions made during redisplay."); | 6647 | and the other strategic decisions made during redisplay. */); |
| 6646 | 6648 | ||
| 6647 | DEFVAR_BOOL ("inverse-video", &inverse_video, | 6649 | DEFVAR_BOOL ("inverse-video", &inverse_video |
| 6648 | "*Non-nil means invert the entire frame display.\n\ | 6650 | /* *Non-nil means invert the entire frame display. |
| 6649 | This means everything is in inverse video which otherwise would not be."); | 6651 | This means everything is in inverse video which otherwise would not be. */); |
| 6650 | 6652 | ||
| 6651 | DEFVAR_BOOL ("visible-bell", &visible_bell, | 6653 | DEFVAR_BOOL ("visible-bell", &visible_bell |
| 6652 | "*Non-nil means try to flash the frame to represent a bell."); | 6654 | /* *Non-nil means try to flash the frame to represent a bell. */); |
| 6653 | 6655 | ||
| 6654 | DEFVAR_BOOL ("no-redraw-on-reenter", &no_redraw_on_reenter, | 6656 | DEFVAR_BOOL ("no-redraw-on-reenter", &no_redraw_on_reenter |
| 6655 | "*Non-nil means no need to redraw entire frame after suspending.\n\ | 6657 | /* *Non-nil means no need to redraw entire frame after suspending. |
| 6656 | A non-nil value is useful if the terminal can automatically preserve\n\ | 6658 | A non-nil value is useful if the terminal can automatically preserve |
| 6657 | Emacs's frame display when you reenter Emacs.\n\ | 6659 | Emacs's frame display when you reenter Emacs. |
| 6658 | It is up to you to set this variable if your terminal can do that."); | 6660 | It is up to you to set this variable if your terminal can do that. */); |
| 6659 | 6661 | ||
| 6660 | DEFVAR_LISP ("window-system", &Vwindow_system, | 6662 | DEFVAR_LISP ("window-system", &Vwindow_system |
| 6661 | "A symbol naming the window-system under which Emacs is running\n\ | 6663 | /* A symbol naming the window-system under which Emacs is running |
| 6662 | \(such as `x'), or nil if emacs is running on an ordinary terminal."); | 6664 | \(such as `x'), or nil if emacs is running on an ordinary terminal. */); |
| 6663 | 6665 | ||
| 6664 | DEFVAR_LISP ("window-system-version", &Vwindow_system_version, | 6666 | DEFVAR_LISP ("window-system-version", &Vwindow_system_version |
| 6665 | "The version number of the window system in use.\n\ | 6667 | /* The version number of the window system in use. |
| 6666 | For X windows, this is 10 or 11."); | 6668 | For X windows, this is 10 or 11. */); |
| 6667 | 6669 | ||
| 6668 | DEFVAR_BOOL ("cursor-in-echo-area", &cursor_in_echo_area, | 6670 | DEFVAR_BOOL ("cursor-in-echo-area", &cursor_in_echo_area |
| 6669 | "Non-nil means put cursor in minibuffer, at end of any message there."); | 6671 | /* Non-nil means put cursor in minibuffer, at end of any message there. */); |
| 6670 | 6672 | ||
| 6671 | DEFVAR_LISP ("glyph-table", &Vglyph_table, | 6673 | DEFVAR_LISP ("glyph-table", &Vglyph_table |
| 6672 | "Table defining how to output a glyph code to the frame.\n\ | 6674 | /* Table defining how to output a glyph code to the frame. |
| 6673 | If not nil, this is a vector indexed by glyph code to define the glyph.\n\ | 6675 | If not nil, this is a vector indexed by glyph code to define the glyph. |
| 6674 | Each element can be:\n\ | 6676 | Each element can be: |
| 6675 | integer: a glyph code which this glyph is an alias for.\n\ | 6677 | integer: a glyph code which this glyph is an alias for. |
| 6676 | string: output this glyph using that string (not impl. in X windows).\n\ | 6678 | string: output this glyph using that string (not impl. in X windows). |
| 6677 | nil: this glyph mod 524288 is the code of a character to output,\n\ | 6679 | nil: this glyph mod 524288 is the code of a character to output, |
| 6678 | and this glyph / 524288 is the face number (see `face-id') to use\n\ | 6680 | and this glyph / 524288 is the face number (see `face-id') to use |
| 6679 | while outputting it."); | 6681 | while outputting it. */); |
| 6680 | Vglyph_table = Qnil; | 6682 | Vglyph_table = Qnil; |
| 6681 | 6683 | ||
| 6682 | DEFVAR_LISP ("standard-display-table", &Vstandard_display_table, | 6684 | DEFVAR_LISP ("standard-display-table", &Vstandard_display_table |
| 6683 | "Display table to use for buffers that specify none.\n\ | 6685 | /* Display table to use for buffers that specify none. |
| 6684 | See `buffer-display-table' for more information."); | 6686 | See `buffer-display-table' for more information. */); |
| 6685 | Vstandard_display_table = Qnil; | 6687 | Vstandard_display_table = Qnil; |
| 6686 | 6688 | ||
| 6687 | DEFVAR_BOOL ("redisplay-dont-pause", &redisplay_dont_pause, | 6689 | DEFVAR_BOOL ("redisplay-dont-pause", &redisplay_dont_pause |
| 6688 | "*Non-nil means update isn't paused when input is detected."); | 6690 | /* *Non-nil means update isn't paused when input is detected. */); |
| 6689 | redisplay_dont_pause = 0; | 6691 | redisplay_dont_pause = 0; |
| 6690 | 6692 | ||
| 6691 | /* Initialize `window-system', unless init_display already decided it. */ | 6693 | /* Initialize `window-system', unless init_display already decided it. */ |
diff --git a/src/term.c b/src/term.c index 9f281db0182..1ef1f2da929 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include "termchar.h" | 28 | #include "termchar.h" |
| 29 | #include "termopts.h" | 29 | #include "termopts.h" |
| 30 | #define DOC_STRINGS_IN_COMMENTS | ||
| 30 | #include "lisp.h" | 31 | #include "lisp.h" |
| 31 | #include "charset.h" | 32 | #include "charset.h" |
| 32 | #include "coding.h" | 33 | #include "coding.h" |
| @@ -2175,8 +2176,8 @@ turn_off_face (f, face_id) | |||
| 2175 | 2176 | ||
| 2176 | DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, | 2177 | DEFUN ("tty-display-color-p", Ftty_display_color_p, Stty_display_color_p, |
| 2177 | 0, 1, 0, | 2178 | 0, 1, 0, |
| 2178 | "Return non-nil if TTY can display colors on FRAME.") | 2179 | /* Return non-nil if TTY can display colors on FRAME. */ |
| 2179 | (frame) | 2180 | (frame)) |
| 2180 | Lisp_Object frame; | 2181 | Lisp_Object frame; |
| 2181 | { | 2182 | { |
| 2182 | return TN_max_colors > 0 ? Qt : Qnil; | 2183 | return TN_max_colors > 0 ? Qt : Qnil; |
| @@ -2607,18 +2608,18 @@ fatal (str, arg1, arg2) | |||
| 2607 | void | 2608 | void |
| 2608 | syms_of_term () | 2609 | syms_of_term () |
| 2609 | { | 2610 | { |
| 2610 | DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo, | 2611 | DEFVAR_BOOL ("system-uses-terminfo", &system_uses_terminfo |
| 2611 | "Non-nil means the system uses terminfo rather than termcap.\n\ | 2612 | /* Non-nil means the system uses terminfo rather than termcap. |
| 2612 | This variable can be used by terminal emulator packages."); | 2613 | This variable can be used by terminal emulator packages. */); |
| 2613 | #ifdef TERMINFO | 2614 | #ifdef TERMINFO |
| 2614 | system_uses_terminfo = 1; | 2615 | system_uses_terminfo = 1; |
| 2615 | #else | 2616 | #else |
| 2616 | system_uses_terminfo = 0; | 2617 | system_uses_terminfo = 0; |
| 2617 | #endif | 2618 | #endif |
| 2618 | 2619 | ||
| 2619 | DEFVAR_LISP ("ring-bell-function", &Vring_bell_function, | 2620 | DEFVAR_LISP ("ring-bell-function", &Vring_bell_function |
| 2620 | "Non-nil means call this function to ring the bell.\n\ | 2621 | /* Non-nil means call this function to ring the bell. |
| 2621 | The function should accept no arguments."); | 2622 | The function should accept no arguments. */); |
| 2622 | Vring_bell_function = Qnil; | 2623 | Vring_bell_function = Qnil; |
| 2623 | 2624 | ||
| 2624 | defsubr (&Stty_display_color_p); | 2625 | defsubr (&Stty_display_color_p); |
diff --git a/src/xdisp.c b/src/xdisp.c index 7c75ea2bc02..26de5ac5f33 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -169,6 +169,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 169 | 169 | ||
| 170 | #include <config.h> | 170 | #include <config.h> |
| 171 | #include <stdio.h> | 171 | #include <stdio.h> |
| 172 | #define DOC_STRINGS_IN_COMMENTS | ||
| 172 | #include "lisp.h" | 173 | #include "lisp.h" |
| 173 | #include "keyboard.h" | 174 | #include "keyboard.h" |
| 174 | #include "frame.h" | 175 | #include "frame.h" |
| @@ -7793,8 +7794,8 @@ tool_bar_lines_needed (f) | |||
| 7793 | 7794 | ||
| 7794 | DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed, | 7795 | DEFUN ("tool-bar-lines-needed", Ftool_bar_lines_needed, Stool_bar_lines_needed, |
| 7795 | 0, 1, 0, | 7796 | 0, 1, 0, |
| 7796 | "Return the number of lines occupied by the tool bar of FRAME.") | 7797 | /* Return the number of lines occupied by the tool bar of FRAME. */ |
| 7797 | (frame) | 7798 | (frame)) |
| 7798 | Lisp_Object frame; | 7799 | Lisp_Object frame; |
| 7799 | { | 7800 | { |
| 7800 | struct frame *f; | 7801 | struct frame *f; |
| @@ -12162,11 +12163,11 @@ dump_glyph_row (row, vpos, glyphs) | |||
| 12162 | 12163 | ||
| 12163 | DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix, | 12164 | DEFUN ("dump-glyph-matrix", Fdump_glyph_matrix, |
| 12164 | Sdump_glyph_matrix, 0, 1, "p", | 12165 | Sdump_glyph_matrix, 0, 1, "p", |
| 12165 | "Dump the current matrix of the selected window to stderr.\n\ | 12166 | /* Dump the current matrix of the selected window to stderr. |
| 12166 | Shows contents of glyph row structures. With non-nil\n\ | 12167 | Shows contents of glyph row structures. With non-nil |
| 12167 | parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show\n\ | 12168 | parameter GLYPHS, dump glyphs as well. If GLYPHS is 1 show |
| 12168 | glyphs in short form, otherwise show glyphs in long form.") | 12169 | glyphs in short form, otherwise show glyphs in long form. */ |
| 12169 | (glyphs) | 12170 | (glyphs)) |
| 12170 | Lisp_Object glyphs; | 12171 | Lisp_Object glyphs; |
| 12171 | { | 12172 | { |
| 12172 | struct window *w = XWINDOW (selected_window); | 12173 | struct window *w = XWINDOW (selected_window); |
| @@ -12184,11 +12185,11 @@ glyphs in short form, otherwise show glyphs in long form.") | |||
| 12184 | 12185 | ||
| 12185 | 12186 | ||
| 12186 | DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "", | 12187 | DEFUN ("dump-glyph-row", Fdump_glyph_row, Sdump_glyph_row, 1, 2, "", |
| 12187 | "Dump glyph row ROW to stderr.\n\ | 12188 | /* Dump glyph row ROW to stderr. |
| 12188 | GLYPH 0 means don't dump glyphs.\n\ | 12189 | GLYPH 0 means don't dump glyphs. |
| 12189 | GLYPH 1 means dump glyphs in short form.\n\ | 12190 | GLYPH 1 means dump glyphs in short form. |
| 12190 | GLYPH > 1 or omitted means dump glyphs in long form.") | 12191 | GLYPH > 1 or omitted means dump glyphs in long form. */ |
| 12191 | (row, glyphs) | 12192 | (row, glyphs)) |
| 12192 | Lisp_Object row, glyphs; | 12193 | Lisp_Object row, glyphs; |
| 12193 | { | 12194 | { |
| 12194 | struct glyph_matrix *matrix; | 12195 | struct glyph_matrix *matrix; |
| @@ -12206,11 +12207,11 @@ GLYPH > 1 or omitted means dump glyphs in long form.") | |||
| 12206 | 12207 | ||
| 12207 | 12208 | ||
| 12208 | DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "", | 12209 | DEFUN ("dump-tool-bar-row", Fdump_tool_bar_row, Sdump_tool_bar_row, 1, 2, "", |
| 12209 | "Dump glyph row ROW of the tool-bar of the current frame to stderr.\n\ | 12210 | /* Dump glyph row ROW of the tool-bar of the current frame to stderr. |
| 12210 | GLYPH 0 means don't dump glyphs.\n\ | 12211 | GLYPH 0 means don't dump glyphs. |
| 12211 | GLYPH 1 means dump glyphs in short form.\n\ | 12212 | GLYPH 1 means dump glyphs in short form. |
| 12212 | GLYPH > 1 or omitted means dump glyphs in long form.") | 12213 | GLYPH > 1 or omitted means dump glyphs in long form. */ |
| 12213 | (row, glyphs) | 12214 | (row, glyphs)) |
| 12214 | Lisp_Object row, glyphs; | 12215 | Lisp_Object row, glyphs; |
| 12215 | { | 12216 | { |
| 12216 | struct frame *sf = SELECTED_FRAME (); | 12217 | struct frame *sf = SELECTED_FRAME (); |
| @@ -12227,9 +12228,9 @@ GLYPH > 1 or omitted means dump glyphs in long form.") | |||
| 12227 | 12228 | ||
| 12228 | 12229 | ||
| 12229 | DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P", | 12230 | DEFUN ("trace-redisplay", Ftrace_redisplay, Strace_redisplay, 0, 1, "P", |
| 12230 | "Toggle tracing of redisplay.\n\ | 12231 | /* Toggle tracing of redisplay. |
| 12231 | With ARG, turn tracing on if and only if ARG is positive.") | 12232 | With ARG, turn tracing on if and only if ARG is positive. */ |
| 12232 | (arg) | 12233 | (arg)) |
| 12233 | Lisp_Object arg; | 12234 | Lisp_Object arg; |
| 12234 | { | 12235 | { |
| 12235 | if (NILP (arg)) | 12236 | if (NILP (arg)) |
| @@ -12245,8 +12246,8 @@ With ARG, turn tracing on if and only if ARG is positive.") | |||
| 12245 | 12246 | ||
| 12246 | 12247 | ||
| 12247 | DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "", | 12248 | DEFUN ("trace-to-stderr", Ftrace_to_stderr, Strace_to_stderr, 1, MANY, "", |
| 12248 | "Like `format', but print result to stderr.") | 12249 | /* Like `format', but print result to stderr. */ |
| 12249 | (nargs, args) | 12250 | (nargs, args)) |
| 12250 | int nargs; | 12251 | int nargs; |
| 12251 | Lisp_Object *args; | 12252 | Lisp_Object *args; |
| 12252 | { | 12253 | { |
| @@ -14703,101 +14704,101 @@ syms_of_xdisp () | |||
| 14703 | Vmessages_buffer_name = build_string ("*Messages*"); | 14704 | Vmessages_buffer_name = build_string ("*Messages*"); |
| 14704 | staticpro (&Vmessages_buffer_name); | 14705 | staticpro (&Vmessages_buffer_name); |
| 14705 | 14706 | ||
| 14706 | DEFVAR_LISP ("show-trailing-whitespace", &Vshow_trailing_whitespace, | 14707 | DEFVAR_LISP ("show-trailing-whitespace", &Vshow_trailing_whitespace |
| 14707 | "Non-nil means highlight trailing whitespace.\n\ | 14708 | /* Non-nil means highlight trailing whitespace. |
| 14708 | The face used for trailing whitespace is `trailing-whitespace'."); | 14709 | The face used for trailing whitespace is `trailing-whitespace'. */); |
| 14709 | Vshow_trailing_whitespace = Qnil; | 14710 | Vshow_trailing_whitespace = Qnil; |
| 14710 | 14711 | ||
| 14711 | DEFVAR_LISP ("inhibit-redisplay", &Vinhibit_redisplay, | 14712 | DEFVAR_LISP ("inhibit-redisplay", &Vinhibit_redisplay |
| 14712 | "Non-nil means don't actually do any redisplay.\n\ | 14713 | /* Non-nil means don't actually do any redisplay. |
| 14713 | This is used for internal purposes."); | 14714 | This is used for internal purposes. */); |
| 14714 | Vinhibit_redisplay = Qnil; | 14715 | Vinhibit_redisplay = Qnil; |
| 14715 | 14716 | ||
| 14716 | DEFVAR_LISP ("global-mode-string", &Vglobal_mode_string, | 14717 | DEFVAR_LISP ("global-mode-string", &Vglobal_mode_string |
| 14717 | "String (or mode line construct) included (normally) in `mode-line-format'."); | 14718 | /* String (or mode line construct) included (normally) in `mode-line-format'. */); |
| 14718 | Vglobal_mode_string = Qnil; | 14719 | Vglobal_mode_string = Qnil; |
| 14719 | 14720 | ||
| 14720 | DEFVAR_LISP ("overlay-arrow-position", &Voverlay_arrow_position, | 14721 | DEFVAR_LISP ("overlay-arrow-position", &Voverlay_arrow_position |
| 14721 | "Marker for where to display an arrow on top of the buffer text.\n\ | 14722 | /* Marker for where to display an arrow on top of the buffer text. |
| 14722 | This must be the beginning of a line in order to work.\n\ | 14723 | This must be the beginning of a line in order to work. |
| 14723 | See also `overlay-arrow-string'."); | 14724 | See also `overlay-arrow-string'. */); |
| 14724 | Voverlay_arrow_position = Qnil; | 14725 | Voverlay_arrow_position = Qnil; |
| 14725 | 14726 | ||
| 14726 | DEFVAR_LISP ("overlay-arrow-string", &Voverlay_arrow_string, | 14727 | DEFVAR_LISP ("overlay-arrow-string", &Voverlay_arrow_string |
| 14727 | "String to display as an arrow. See also `overlay-arrow-position'."); | 14728 | /* String to display as an arrow. See also `overlay-arrow-position'. */); |
| 14728 | Voverlay_arrow_string = Qnil; | 14729 | Voverlay_arrow_string = Qnil; |
| 14729 | 14730 | ||
| 14730 | DEFVAR_INT ("scroll-step", &scroll_step, | 14731 | DEFVAR_INT ("scroll-step", &scroll_step |
| 14731 | "*The number of lines to try scrolling a window by when point moves out.\n\ | 14732 | /* *The number of lines to try scrolling a window by when point moves out. |
| 14732 | If that fails to bring point back on frame, point is centered instead.\n\ | 14733 | If that fails to bring point back on frame, point is centered instead. |
| 14733 | If this is zero, point is always centered after it moves off frame.\n\ | 14734 | If this is zero, point is always centered after it moves off frame. |
| 14734 | If you want scrolling to always be a line at a time, you should set\n\ | 14735 | If you want scrolling to always be a line at a time, you should set |
| 14735 | `scroll-conservatively' to a large value rather than set this to 1."); | 14736 | `scroll-conservatively' to a large value rather than set this to 1. */); |
| 14736 | 14737 | ||
| 14737 | DEFVAR_INT ("scroll-conservatively", &scroll_conservatively, | 14738 | DEFVAR_INT ("scroll-conservatively", &scroll_conservatively |
| 14738 | "*Scroll up to this many lines, to bring point back on screen.\n\ | 14739 | /* *Scroll up to this many lines, to bring point back on screen. |
| 14739 | A value of zero means to scroll the text to center point vertically\n\ | 14740 | A value of zero means to scroll the text to center point vertically |
| 14740 | in the window."); | 14741 | in the window. */); |
| 14741 | scroll_conservatively = 0; | 14742 | scroll_conservatively = 0; |
| 14742 | 14743 | ||
| 14743 | DEFVAR_INT ("scroll-margin", &scroll_margin, | 14744 | DEFVAR_INT ("scroll-margin", &scroll_margin |
| 14744 | "*Number of lines of margin at the top and bottom of a window.\n\ | 14745 | /* *Number of lines of margin at the top and bottom of a window. |
| 14745 | Recenter the window whenever point gets within this many lines\n\ | 14746 | Recenter the window whenever point gets within this many lines |
| 14746 | of the top or bottom of the window."); | 14747 | of the top or bottom of the window. */); |
| 14747 | scroll_margin = 0; | 14748 | scroll_margin = 0; |
| 14748 | 14749 | ||
| 14749 | #if GLYPH_DEBUG | 14750 | #if GLYPH_DEBUG |
| 14750 | DEFVAR_INT ("debug-end-pos", &debug_end_pos, "Don't ask"); | 14751 | DEFVAR_INT ("debug-end-pos", &debug_end_pos /* Don't ask. */); |
| 14751 | #endif | 14752 | #endif |
| 14752 | 14753 | ||
| 14753 | DEFVAR_BOOL ("truncate-partial-width-windows", | 14754 | DEFVAR_BOOL ("truncate-partial-width-windows", |
| 14754 | &truncate_partial_width_windows, | 14755 | &truncate_partial_width_windows |
| 14755 | "*Non-nil means truncate lines in all windows less than full frame wide."); | 14756 | /* *Non-nil means truncate lines in all windows less than full frame wide. */); |
| 14756 | truncate_partial_width_windows = 1; | 14757 | truncate_partial_width_windows = 1; |
| 14757 | 14758 | ||
| 14758 | DEFVAR_BOOL ("mode-line-inverse-video", &mode_line_inverse_video, | 14759 | DEFVAR_BOOL ("mode-line-inverse-video", &mode_line_inverse_video |
| 14759 | "nil means display the mode-line/header-line/menu-bar in the default face.\n\ | 14760 | /* nil means display the mode-line/header-line/menu-bar in the default face. |
| 14760 | Any other value means to use the appropriate face, `mode-line',\n\ | 14761 | Any other value means to use the appropriate face, `mode-line', |
| 14761 | `header-line', or `menu' respectively.\n\ | 14762 | `header-line', or `menu' respectively. |
| 14762 | \n\ | 14763 | |
| 14763 | This variable is deprecated; please change the above faces instead."); | 14764 | This variable is deprecated; please change the above faces instead. */); |
| 14764 | mode_line_inverse_video = 1; | 14765 | mode_line_inverse_video = 1; |
| 14765 | 14766 | ||
| 14766 | DEFVAR_LISP ("line-number-display-limit", &Vline_number_display_limit, | 14767 | DEFVAR_LISP ("line-number-display-limit", &Vline_number_display_limit |
| 14767 | "*Maximum buffer size for which line number should be displayed.\n\ | 14768 | /* *Maximum buffer size for which line number should be displayed. |
| 14768 | If the buffer is bigger than this, the line number does not appear\n\ | 14769 | If the buffer is bigger than this, the line number does not appear |
| 14769 | in the mode line. A value of nil means no limit."); | 14770 | in the mode line. A value of nil means no limit. */); |
| 14770 | Vline_number_display_limit = Qnil; | 14771 | Vline_number_display_limit = Qnil; |
| 14771 | 14772 | ||
| 14772 | DEFVAR_INT ("line-number-display-limit-width", | 14773 | DEFVAR_INT ("line-number-display-limit-width", |
| 14773 | &line_number_display_limit_width, | 14774 | &line_number_display_limit_width |
| 14774 | "*Maximum line width (in characters) for line number display.\n\ | 14775 | /* *Maximum line width (in characters) for line number display. |
| 14775 | If the average length of the lines near point is bigger than this, then the\n\ | 14776 | If the average length of the lines near point is bigger than this, then the |
| 14776 | line number may be omitted from the mode line."); | 14777 | line number may be omitted from the mode line. */); |
| 14777 | line_number_display_limit_width = 200; | 14778 | line_number_display_limit_width = 200; |
| 14778 | 14779 | ||
| 14779 | DEFVAR_BOOL ("highlight-nonselected-windows", &highlight_nonselected_windows, | 14780 | DEFVAR_BOOL ("highlight-nonselected-windows", &highlight_nonselected_windows |
| 14780 | "*Non-nil means highlight region even in nonselected windows."); | 14781 | /* *Non-nil means highlight region even in nonselected windows. */); |
| 14781 | highlight_nonselected_windows = 0; | 14782 | highlight_nonselected_windows = 0; |
| 14782 | 14783 | ||
| 14783 | DEFVAR_BOOL ("multiple-frames", &multiple_frames, | 14784 | DEFVAR_BOOL ("multiple-frames", &multiple_frames |
| 14784 | "Non-nil if more than one frame is visible on this display.\n\ | 14785 | /* Non-nil if more than one frame is visible on this display. |
| 14785 | Minibuffer-only frames don't count, but iconified frames do.\n\ | 14786 | Minibuffer-only frames don't count, but iconified frames do. |
| 14786 | This variable is not guaranteed to be accurate except while processing\n\ | 14787 | This variable is not guaranteed to be accurate except while processing |
| 14787 | `frame-title-format' and `icon-title-format'."); | 14788 | `frame-title-format' and `icon-title-format'. */); |
| 14788 | 14789 | ||
| 14789 | DEFVAR_LISP ("frame-title-format", &Vframe_title_format, | 14790 | DEFVAR_LISP ("frame-title-format", &Vframe_title_format |
| 14790 | "Template for displaying the title bar of visible frames.\n\ | 14791 | /* Template for displaying the title bar of visible frames. |
| 14791 | \(Assuming the window manager supports this feature.)\n\ | 14792 | \(Assuming the window manager supports this feature.) |
| 14792 | This variable has the same structure as `mode-line-format' (which see),\n\ | 14793 | This variable has the same structure as `mode-line-format' (which see), |
| 14793 | and is used only on frames for which no explicit name has been set\n\ | 14794 | and is used only on frames for which no explicit name has been set |
| 14794 | \(see `modify-frame-parameters')."); | 14795 | \(see `modify-frame-parameters'). */); |
| 14795 | DEFVAR_LISP ("icon-title-format", &Vicon_title_format, | 14796 | DEFVAR_LISP ("icon-title-format", &Vicon_title_format |
| 14796 | "Template for displaying the title bar of an iconified frame.\n\ | 14797 | /* Template for displaying the title bar of an iconified frame. |
| 14797 | \(Assuming the window manager supports this feature.)\n\ | 14798 | \(Assuming the window manager supports this feature.) |
| 14798 | This variable has the same structure as `mode-line-format' (which see),\n\ | 14799 | This variable has the same structure as `mode-line-format' (which see), |
| 14799 | and is used only on frames for which no explicit name has been set\n\ | 14800 | and is used only on frames for which no explicit name has been set |
| 14800 | \(see `modify-frame-parameters')."); | 14801 | \(see `modify-frame-parameters'). */); |
| 14801 | Vicon_title_format | 14802 | Vicon_title_format |
| 14802 | = Vframe_title_format | 14803 | = Vframe_title_format |
| 14803 | = Fcons (intern ("multiple-frames"), | 14804 | = Fcons (intern ("multiple-frames"), |
| @@ -14809,113 +14810,113 @@ and is used only on frames for which no explicit name has been set\n\ | |||
| 14809 | Qnil)))), | 14810 | Qnil)))), |
| 14810 | Qnil))); | 14811 | Qnil))); |
| 14811 | 14812 | ||
| 14812 | DEFVAR_LISP ("message-log-max", &Vmessage_log_max, | 14813 | DEFVAR_LISP ("message-log-max", &Vmessage_log_max |
| 14813 | "Maximum number of lines to keep in the message log buffer.\n\ | 14814 | /* Maximum number of lines to keep in the message log buffer. |
| 14814 | If nil, disable message logging. If t, log messages but don't truncate\n\ | 14815 | If nil, disable message logging. If t, log messages but don't truncate |
| 14815 | the buffer when it becomes large."); | 14816 | the buffer when it becomes large. */); |
| 14816 | Vmessage_log_max = make_number (50); | 14817 | Vmessage_log_max = make_number (50); |
| 14817 | 14818 | ||
| 14818 | DEFVAR_LISP ("window-size-change-functions", &Vwindow_size_change_functions, | 14819 | DEFVAR_LISP ("window-size-change-functions", &Vwindow_size_change_functions |
| 14819 | "Functions called before redisplay, if window sizes have changed.\n\ | 14820 | /* Functions called before redisplay, if window sizes have changed. |
| 14820 | The value should be a list of functions that take one argument.\n\ | 14821 | The value should be a list of functions that take one argument. |
| 14821 | Just before redisplay, for each frame, if any of its windows have changed\n\ | 14822 | Just before redisplay, for each frame, if any of its windows have changed |
| 14822 | size since the last redisplay, or have been split or deleted,\n\ | 14823 | size since the last redisplay, or have been split or deleted, |
| 14823 | all the functions in the list are called, with the frame as argument."); | 14824 | all the functions in the list are called, with the frame as argument. */); |
| 14824 | Vwindow_size_change_functions = Qnil; | 14825 | Vwindow_size_change_functions = Qnil; |
| 14825 | 14826 | ||
| 14826 | DEFVAR_LISP ("window-scroll-functions", &Vwindow_scroll_functions, | 14827 | DEFVAR_LISP ("window-scroll-functions", &Vwindow_scroll_functions |
| 14827 | "List of Functions to call before redisplaying a window with scrolling.\n\ | 14828 | /* List of Functions to call before redisplaying a window with scrolling. |
| 14828 | Each function is called with two arguments, the window\n\ | 14829 | Each function is called with two arguments, the window |
| 14829 | and its new display-start position. Note that the value of `window-end'\n\ | 14830 | and its new display-start position. Note that the value of `window-end' |
| 14830 | is not valid when these functions are called."); | 14831 | is not valid when these functions are called. */); |
| 14831 | Vwindow_scroll_functions = Qnil; | 14832 | Vwindow_scroll_functions = Qnil; |
| 14832 | 14833 | ||
| 14833 | DEFVAR_BOOL ("auto-resize-tool-bars", &auto_resize_tool_bars_p, | 14834 | DEFVAR_BOOL ("auto-resize-tool-bars", &auto_resize_tool_bars_p |
| 14834 | "*Non-nil means automatically resize tool-bars.\n\ | 14835 | /* *Non-nil means automatically resize tool-bars. |
| 14835 | This increases a tool-bar's height if not all tool-bar items are visible.\n\ | 14836 | This increases a tool-bar's height if not all tool-bar items are visible. |
| 14836 | It decreases a tool-bar's height when it would display blank lines\n\ | 14837 | It decreases a tool-bar's height when it would display blank lines |
| 14837 | otherwise."); | 14838 | otherwise. */); |
| 14838 | auto_resize_tool_bars_p = 1; | 14839 | auto_resize_tool_bars_p = 1; |
| 14839 | 14840 | ||
| 14840 | DEFVAR_BOOL ("auto-raise-tool-bar-buttons", &auto_raise_tool_bar_buttons_p, | 14841 | DEFVAR_BOOL ("auto-raise-tool-bar-buttons", &auto_raise_tool_bar_buttons_p |
| 14841 | "*Non-nil means raise tool-bar buttons when the mouse moves over them."); | 14842 | /* *Non-nil means raise tool-bar buttons when the mouse moves over them. */); |
| 14842 | auto_raise_tool_bar_buttons_p = 1; | 14843 | auto_raise_tool_bar_buttons_p = 1; |
| 14843 | 14844 | ||
| 14844 | DEFVAR_LISP ("tool-bar-button-margin", &Vtool_bar_button_margin, | 14845 | DEFVAR_LISP ("tool-bar-button-margin", &Vtool_bar_button_margin |
| 14845 | "*Margin around tool-bar buttons in pixels.\n\ | 14846 | /* *Margin around tool-bar buttons in pixels. |
| 14846 | If an integer, use that for both horizontal and vertical margins.\n\ | 14847 | If an integer, use that for both horizontal and vertical margins. |
| 14847 | Otherwise, value should be a pair of integers `(HORZ : VERT)' with\n\ | 14848 | Otherwise, value should be a pair of integers `(HORZ : VERT)' with |
| 14848 | HORZ specifying the horizontal margin, and VERT specifying the\n\ | 14849 | HORZ specifying the horizontal margin, and VERT specifying the |
| 14849 | vertical margin."); | 14850 | vertical margin. */); |
| 14850 | Vtool_bar_button_margin = make_number (DEFAULT_TOOL_BAR_BUTTON_MARGIN); | 14851 | Vtool_bar_button_margin = make_number (DEFAULT_TOOL_BAR_BUTTON_MARGIN); |
| 14851 | 14852 | ||
| 14852 | DEFVAR_INT ("tool-bar-button-relief", &tool_bar_button_relief, | 14853 | DEFVAR_INT ("tool-bar-button-relief", &tool_bar_button_relief |
| 14853 | "Relief thickness of tool-bar buttons."); | 14854 | /* Relief thickness of tool-bar buttons. */); |
| 14854 | tool_bar_button_relief = DEFAULT_TOOL_BAR_BUTTON_RELIEF; | 14855 | tool_bar_button_relief = DEFAULT_TOOL_BAR_BUTTON_RELIEF; |
| 14855 | 14856 | ||
| 14856 | DEFVAR_LISP ("fontification-functions", &Vfontification_functions, | 14857 | DEFVAR_LISP ("fontification-functions", &Vfontification_functions |
| 14857 | "List of functions to call to fontify regions of text.\n\ | 14858 | /* List of functions to call to fontify regions of text. |
| 14858 | Each function is called with one argument POS. Functions must\n\ | 14859 | Each function is called with one argument POS. Functions must |
| 14859 | fontify a region starting at POS in the current buffer, and give\n\ | 14860 | fontify a region starting at POS in the current buffer, and give |
| 14860 | fontified regions the property `fontified'."); | 14861 | fontified regions the property `fontified'. */); |
| 14861 | Vfontification_functions = Qnil; | 14862 | Vfontification_functions = Qnil; |
| 14862 | Fmake_variable_buffer_local (Qfontification_functions); | 14863 | Fmake_variable_buffer_local (Qfontification_functions); |
| 14863 | 14864 | ||
| 14864 | DEFVAR_BOOL ("unibyte-display-via-language-environment", | 14865 | DEFVAR_BOOL ("unibyte-display-via-language-environment", |
| 14865 | &unibyte_display_via_language_environment, | 14866 | &unibyte_display_via_language_environment |
| 14866 | "*Non-nil means display unibyte text according to language environment.\n\ | 14867 | /* *Non-nil means display unibyte text according to language environment. |
| 14867 | Specifically this means that unibyte non-ASCII characters\n\ | 14868 | Specifically this means that unibyte non-ASCII characters |
| 14868 | are displayed by converting them to the equivalent multibyte characters\n\ | 14869 | are displayed by converting them to the equivalent multibyte characters |
| 14869 | according to the current language environment. As a result, they are\n\ | 14870 | according to the current language environment. As a result, they are |
| 14870 | displayed according to the current fontset."); | 14871 | displayed according to the current fontset. */); |
| 14871 | unibyte_display_via_language_environment = 0; | 14872 | unibyte_display_via_language_environment = 0; |
| 14872 | 14873 | ||
| 14873 | DEFVAR_LISP ("max-mini-window-height", &Vmax_mini_window_height, | 14874 | DEFVAR_LISP ("max-mini-window-height", &Vmax_mini_window_height |
| 14874 | "*Maximum height for resizing mini-windows.\n\ | 14875 | /* *Maximum height for resizing mini-windows. |
| 14875 | If a float, it specifies a fraction of the mini-window frame's height.\n\ | 14876 | If a float, it specifies a fraction of the mini-window frame's height. |
| 14876 | If an integer, it specifies a number of lines."); | 14877 | If an integer, it specifies a number of lines. */); |
| 14877 | Vmax_mini_window_height = make_float (0.25); | 14878 | Vmax_mini_window_height = make_float (0.25); |
| 14878 | 14879 | ||
| 14879 | DEFVAR_LISP ("resize-mini-windows", &Vresize_mini_windows, | 14880 | DEFVAR_LISP ("resize-mini-windows", &Vresize_mini_windows |
| 14880 | "*How to resize mini-windows.\n\ | 14881 | /* *How to resize mini-windows. |
| 14881 | A value of nil means don't automatically resize mini-windows.\n\ | 14882 | A value of nil means don't automatically resize mini-windows. |
| 14882 | A value of t means resize them to fit the text displayed in them.\n\ | 14883 | A value of t means resize them to fit the text displayed in them. |
| 14883 | A value of `grow-only', the default, means let mini-windows grow\n\ | 14884 | A value of `grow-only', the default, means let mini-windows grow |
| 14884 | only, until their display becomes empty, at which point the windows\n\ | 14885 | only, until their display becomes empty, at which point the windows |
| 14885 | go back to their normal size."); | 14886 | go back to their normal size. */); |
| 14886 | Vresize_mini_windows = Qgrow_only; | 14887 | Vresize_mini_windows = Qgrow_only; |
| 14887 | 14888 | ||
| 14888 | DEFVAR_BOOL ("cursor-in-non-selected-windows", | 14889 | DEFVAR_BOOL ("cursor-in-non-selected-windows", |
| 14889 | &cursor_in_non_selected_windows, | 14890 | &cursor_in_non_selected_windows |
| 14890 | "*Non-nil means display a hollow cursor in non-selected windows.\n\ | 14891 | /* *Non-nil means display a hollow cursor in non-selected windows. |
| 14891 | Nil means don't display a cursor there."); | 14892 | Nil means don't display a cursor there. */); |
| 14892 | cursor_in_non_selected_windows = 1; | 14893 | cursor_in_non_selected_windows = 1; |
| 14893 | 14894 | ||
| 14894 | DEFVAR_BOOL ("automatic-hscrolling", &automatic_hscrolling_p, | 14895 | DEFVAR_BOOL ("automatic-hscrolling", &automatic_hscrolling_p |
| 14895 | "*Non-nil means scroll the display automatically to make point visible."); | 14896 | /* *Non-nil means scroll the display automatically to make point visible. */); |
| 14896 | automatic_hscrolling_p = 1; | 14897 | automatic_hscrolling_p = 1; |
| 14897 | 14898 | ||
| 14898 | DEFVAR_LISP ("image-types", &Vimage_types, | 14899 | DEFVAR_LISP ("image-types", &Vimage_types |
| 14899 | "List of supported image types.\n\ | 14900 | /* List of supported image types. |
| 14900 | Each element of the list is a symbol for a supported image type."); | 14901 | Each element of the list is a symbol for a supported image type. */); |
| 14901 | Vimage_types = Qnil; | 14902 | Vimage_types = Qnil; |
| 14902 | 14903 | ||
| 14903 | DEFVAR_BOOL ("message-truncate-lines", &message_truncate_lines, | 14904 | DEFVAR_BOOL ("message-truncate-lines", &message_truncate_lines |
| 14904 | "If non-nil, messages are truncated instead of resizing the echo area.\n\ | 14905 | /* If non-nil, messages are truncated instead of resizing the echo area. |
| 14905 | Bind this around calls to `message' to let it take effect."); | 14906 | Bind this around calls to `message' to let it take effect. */); |
| 14906 | message_truncate_lines = 0; | 14907 | message_truncate_lines = 0; |
| 14907 | 14908 | ||
| 14908 | DEFVAR_LISP ("menu-bar-update-hook", &Vmenu_bar_update_hook, | 14909 | DEFVAR_LISP ("menu-bar-update-hook", &Vmenu_bar_update_hook |
| 14909 | "Normal hook run for clicks on menu bar, before displaying a submenu.\n\ | 14910 | /* Normal hook run for clicks on menu bar, before displaying a submenu. |
| 14910 | Can be used to update submenus whose contents should vary."); | 14911 | Can be used to update submenus whose contents should vary. */); |
| 14911 | Vmenu_bar_update_hook = Qnil; | 14912 | Vmenu_bar_update_hook = Qnil; |
| 14912 | 14913 | ||
| 14913 | DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update, | 14914 | DEFVAR_BOOL ("inhibit-menubar-update", &inhibit_menubar_update |
| 14914 | "Non-nil means don't update menu bars. Internal use only."); | 14915 | /* Non-nil means don't update menu bars. Internal use only. */); |
| 14915 | inhibit_menubar_update = 0; | 14916 | inhibit_menubar_update = 0; |
| 14916 | 14917 | ||
| 14917 | DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay, | 14918 | DEFVAR_BOOL ("inhibit-eval-during-redisplay", &inhibit_eval_during_redisplay |
| 14918 | "Non-nil means don't eval Lisp during redisplay."); | 14919 | /* Non-nil means don't eval Lisp during redisplay. */); |
| 14919 | inhibit_eval_during_redisplay = 0; | 14920 | inhibit_eval_during_redisplay = 0; |
| 14920 | } | 14921 | } |
| 14921 | 14922 | ||
diff --git a/src/xfaces.c b/src/xfaces.c index 867dcb8315a..476908e5b15 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -194,6 +194,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 194 | #include <config.h> | 194 | #include <config.h> |
| 195 | #include <sys/types.h> | 195 | #include <sys/types.h> |
| 196 | #include <sys/stat.h> | 196 | #include <sys/stat.h> |
| 197 | #define DOC_STRINGS_IN_COMMENTS | ||
| 197 | #include "lisp.h" | 198 | #include "lisp.h" |
| 198 | #include "charset.h" | 199 | #include "charset.h" |
| 199 | #include "keyboard.h" | 200 | #include "keyboard.h" |
| @@ -668,8 +669,8 @@ unregister_colors (pixels, n) | |||
| 668 | 669 | ||
| 669 | 670 | ||
| 670 | DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, | 671 | DEFUN ("dump-colors", Fdump_colors, Sdump_colors, 0, 0, 0, |
| 671 | "Dump currently allocated colors and their reference counts to stderr.") | 672 | /* Dump currently allocated colors to stderr. */ |
| 672 | () | 673 | ()) |
| 673 | { | 674 | { |
| 674 | int i, n; | 675 | int i, n; |
| 675 | 676 | ||
| @@ -1016,9 +1017,9 @@ clear_face_cache (clear_fonts_p) | |||
| 1016 | 1017 | ||
| 1017 | 1018 | ||
| 1018 | DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, | 1019 | DEFUN ("clear-face-cache", Fclear_face_cache, Sclear_face_cache, 0, 1, 0, |
| 1019 | "Clear face caches on all frames.\n\ | 1020 | /* Clear face caches on all frames. |
| 1020 | Optional THOROUGHLY non-nil means try to free unused fonts, too.") | 1021 | Optional THOROUGHLY non-nil means try to free unused fonts, too. */ |
| 1021 | (thoroughly) | 1022 | (thoroughly)) |
| 1022 | Lisp_Object thoroughly; | 1023 | Lisp_Object thoroughly; |
| 1023 | { | 1024 | { |
| 1024 | clear_face_cache (!NILP (thoroughly)); | 1025 | clear_face_cache (!NILP (thoroughly)); |
| @@ -1097,13 +1098,13 @@ clear_font_table (dpyinfo) | |||
| 1097 | #ifdef HAVE_WINDOW_SYSTEM | 1098 | #ifdef HAVE_WINDOW_SYSTEM |
| 1098 | 1099 | ||
| 1099 | DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0, | 1100 | DEFUN ("bitmap-spec-p", Fbitmap_spec_p, Sbitmap_spec_p, 1, 1, 0, |
| 1100 | "Value is non-nil if OBJECT is a valid bitmap specification.\n\ | 1101 | /* Value is non-nil if OBJECT is a valid bitmap specification. |
| 1101 | A bitmap specification is either a string, a file name, or a list\n\ | 1102 | A bitmap specification is either a string, a file name, or a list |
| 1102 | (WIDTH HEIGHT DATA) where WIDTH is the pixel width of the bitmap,\n\ | 1103 | \(WIDTH HEIGHT DATA) where WIDTH is the pixel width of the bitmap, |
| 1103 | HEIGHT is its height, and DATA is a string containing the bits of\n\ | 1104 | HEIGHT is its height, and DATA is a string containing the bits of |
| 1104 | the pixmap. Bits are stored row by row, each row occupies\n\ | 1105 | the pixmap. Bits are stored row by row, each row occupies |
| 1105 | (WIDTH + 7)/8 bytes.") | 1106 | \(WIDTH + 7)/8 bytes. */ |
| 1106 | (object) | 1107 | (object)) |
| 1107 | Lisp_Object object; | 1108 | Lisp_Object object; |
| 1108 | { | 1109 | { |
| 1109 | int pixmap_p = 0; | 1110 | int pixmap_p = 0; |
| @@ -1481,10 +1482,10 @@ face_color_supported_p (f, color_name, background_p) | |||
| 1481 | 1482 | ||
| 1482 | 1483 | ||
| 1483 | DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0, | 1484 | DEFUN ("color-gray-p", Fcolor_gray_p, Scolor_gray_p, 1, 2, 0, |
| 1484 | "Return non-nil if COLOR is a shade of gray (or white or black).\n\ | 1485 | /* Return non-nil if COLOR is a shade of gray (or white or black). |
| 1485 | FRAME specifies the frame and thus the display for interpreting COLOR.\n\ | 1486 | FRAME specifies the frame and thus the display for interpreting COLOR. |
| 1486 | If FRAME is nil or omitted, use the selected frame.") | 1487 | If FRAME is nil or omitted, use the selected frame. */ |
| 1487 | (color, frame) | 1488 | (color, frame)) |
| 1488 | Lisp_Object color, frame; | 1489 | Lisp_Object color, frame; |
| 1489 | { | 1490 | { |
| 1490 | struct frame *f; | 1491 | struct frame *f; |
| @@ -1498,11 +1499,11 @@ If FRAME is nil or omitted, use the selected frame.") | |||
| 1498 | 1499 | ||
| 1499 | DEFUN ("color-supported-p", Fcolor_supported_p, | 1500 | DEFUN ("color-supported-p", Fcolor_supported_p, |
| 1500 | Scolor_supported_p, 2, 3, 0, | 1501 | Scolor_supported_p, 2, 3, 0, |
| 1501 | "Return non-nil if COLOR can be displayed on FRAME.\n\ | 1502 | /* Return non-nil if COLOR can be displayed on FRAME. |
| 1502 | BACKGROUND-P non-nil means COLOR is used as a background.\n\ | 1503 | BACKGROUND-P non-nil means COLOR is used as a background. |
| 1503 | If FRAME is nil or omitted, use the selected frame.\n\ | 1504 | If FRAME is nil or omitted, use the selected frame. |
| 1504 | COLOR must be a valid color name.") | 1505 | COLOR must be a valid color name. */ |
| 1505 | (color, frame, background_p) | 1506 | (color, frame, background_p)) |
| 1506 | Lisp_Object frame, color, background_p; | 1507 | Lisp_Object frame, color, background_p; |
| 1507 | { | 1508 | { |
| 1508 | struct frame *f; | 1509 | struct frame *f; |
| @@ -2691,22 +2692,22 @@ remove_duplicates (list) | |||
| 2691 | 2692 | ||
| 2692 | 2693 | ||
| 2693 | DEFUN ("x-family-fonts", Fx_family_fonts, Sx_family_fonts, 0, 2, 0, | 2694 | DEFUN ("x-family-fonts", Fx_family_fonts, Sx_family_fonts, 0, 2, 0, |
| 2694 | "Return a list of available fonts of family FAMILY on FRAME.\n\ | 2695 | /* Return a list of available fonts of family FAMILY on FRAME. |
| 2695 | If FAMILY is omitted or nil, list all families.\n\ | 2696 | If FAMILY is omitted or nil, list all families. |
| 2696 | Otherwise, FAMILY must be a string, possibly containing wildcards\n\ | 2697 | Otherwise, FAMILY must be a string, possibly containing wildcards |
| 2697 | `?' and `*'.\n\ | 2698 | `?' and `*'. |
| 2698 | If FRAME is omitted or nil, use the selected frame.\n\ | 2699 | If FRAME is omitted or nil, use the selected frame. |
| 2699 | Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT\n\ | 2700 | Each element of the result is a vector [FAMILY WIDTH POINT-SIZE WEIGHT |
| 2700 | SLANT FIXED-P FULL REGISTRY-AND-ENCODING].\n\ | 2701 | SLANT FIXED-P FULL REGISTRY-AND-ENCODING]. |
| 2701 | FAMILY is the font family name. POINT-SIZE is the size of the\n\ | 2702 | FAMILY is the font family name. POINT-SIZE is the size of the |
| 2702 | font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the\n\ | 2703 | font in 1/10 pt. WIDTH, WEIGHT, and SLANT are symbols describing the |
| 2703 | width, weight and slant of the font. These symbols are the same as for\n\ | 2704 | width, weight and slant of the font. These symbols are the same as for |
| 2704 | face attributes. FIXED-P is non-nil if the font is fixed-pitch.\n\ | 2705 | face attributes. FIXED-P is non-nil if the font is fixed-pitch. |
| 2705 | FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string\n\ | 2706 | FULL is the full name of the font, and REGISTRY-AND-ENCODING is a string |
| 2706 | giving the registry and encoding of the font.\n\ | 2707 | giving the registry and encoding of the font. |
| 2707 | The result list is sorted according to the current setting of\n\ | 2708 | The result list is sorted according to the current setting of |
| 2708 | the face font sort order.") | 2709 | the face font sort order. */ |
| 2709 | (family, frame) | 2710 | (family, frame)) |
| 2710 | Lisp_Object family, frame; | 2711 | Lisp_Object family, frame; |
| 2711 | { | 2712 | { |
| 2712 | struct frame *f = check_x_frame (frame); | 2713 | struct frame *f = check_x_frame (frame); |
| @@ -2751,12 +2752,12 @@ the face font sort order.") | |||
| 2751 | 2752 | ||
| 2752 | DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list, | 2753 | DEFUN ("x-font-family-list", Fx_font_family_list, Sx_font_family_list, |
| 2753 | 0, 1, 0, | 2754 | 0, 1, 0, |
| 2754 | "Return a list of available font families on FRAME.\n\ | 2755 | /* Return a list of available font families on FRAME. |
| 2755 | If FRAME is omitted or nil, use the selected frame.\n\ | 2756 | If FRAME is omitted or nil, use the selected frame. |
| 2756 | Value is a list of conses (FAMILY . FIXED-P) where FAMILY\n\ | 2757 | Value is a list of conses (FAMILY . FIXED-P) where FAMILY |
| 2757 | is a font family, and FIXED-P is non-nil if fonts of that family\n\ | 2758 | is a font family, and FIXED-P is non-nil if fonts of that family |
| 2758 | are fixed-pitch.") | 2759 | are fixed-pitch. */ |
| 2759 | (frame) | 2760 | (frame)) |
| 2760 | Lisp_Object frame; | 2761 | Lisp_Object frame; |
| 2761 | { | 2762 | { |
| 2762 | struct frame *f = check_x_frame (frame); | 2763 | struct frame *f = check_x_frame (frame); |
| @@ -2798,26 +2799,26 @@ are fixed-pitch.") | |||
| 2798 | 2799 | ||
| 2799 | 2800 | ||
| 2800 | DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0, | 2801 | DEFUN ("x-list-fonts", Fx_list_fonts, Sx_list_fonts, 1, 5, 0, |
| 2801 | "Return a list of the names of available fonts matching PATTERN.\n\ | 2802 | /* Return a list of the names of available fonts matching PATTERN. |
| 2802 | If optional arguments FACE and FRAME are specified, return only fonts\n\ | 2803 | If optional arguments FACE and FRAME are specified, return only fonts |
| 2803 | the same size as FACE on FRAME.\n\ | 2804 | the same size as FACE on FRAME. |
| 2804 | PATTERN is a string, perhaps with wildcard characters;\n\ | 2805 | PATTERN is a string, perhaps with wildcard characters; |
| 2805 | the * character matches any substring, and\n\ | 2806 | the * character matches any substring, and |
| 2806 | the ? character matches any single character.\n\ | 2807 | the ? character matches any single character. |
| 2807 | PATTERN is case-insensitive.\n\ | 2808 | PATTERN is case-insensitive. |
| 2808 | FACE is a face name--a symbol.\n\ | 2809 | FACE is a face name--a symbol. |
| 2809 | \n\ | 2810 | |
| 2810 | The return value is a list of strings, suitable as arguments to\n\ | 2811 | The return value is a list of strings, suitable as arguments to |
| 2811 | set-face-font.\n\ | 2812 | set-face-font. |
| 2812 | \n\ | 2813 | |
| 2813 | Fonts Emacs can't use may or may not be excluded\n\ | 2814 | Fonts Emacs can't use may or may not be excluded |
| 2814 | even if they match PATTERN and FACE.\n\ | 2815 | even if they match PATTERN and FACE. |
| 2815 | The optional fourth argument MAXIMUM sets a limit on how many\n\ | 2816 | The optional fourth argument MAXIMUM sets a limit on how many |
| 2816 | fonts to match. The first MAXIMUM fonts are reported.\n\ | 2817 | fonts to match. The first MAXIMUM fonts are reported. |
| 2817 | The optional fifth argument WIDTH, if specified, is a number of columns\n\ | 2818 | The optional fifth argument WIDTH, if specified, is a number of columns |
| 2818 | occupied by a character of a font. In that case, return only fonts\n\ | 2819 | occupied by a character of a font. In that case, return only fonts |
| 2819 | the WIDTH times as wide as FACE on FRAME.") | 2820 | the WIDTH times as wide as FACE on FRAME. */ |
| 2820 | (pattern, face, frame, maximum, width) | 2821 | (pattern, face, frame, maximum, width)) |
| 2821 | Lisp_Object pattern, face, frame, maximum, width; | 2822 | Lisp_Object pattern, face, frame, maximum, width; |
| 2822 | { | 2823 | { |
| 2823 | struct frame *f; | 2824 | struct frame *f; |
| @@ -3623,12 +3624,12 @@ merge_face_vector_with_property (f, to, prop) | |||
| 3623 | 3624 | ||
| 3624 | DEFUN ("internal-make-lisp-face", Finternal_make_lisp_face, | 3625 | DEFUN ("internal-make-lisp-face", Finternal_make_lisp_face, |
| 3625 | Sinternal_make_lisp_face, 1, 2, 0, | 3626 | Sinternal_make_lisp_face, 1, 2, 0, |
| 3626 | "Make FACE, a symbol, a Lisp face with all attributes nil.\n\ | 3627 | /* Make FACE, a symbol, a Lisp face with all attributes nil. |
| 3627 | If FACE was not known as a face before, create a new one.\n\ | 3628 | If FACE was not known as a face before, create a new one. |
| 3628 | If optional argument FRAME is specified, make a frame-local face\n\ | 3629 | If optional argument FRAME is specified, make a frame-local face |
| 3629 | for that frame. Otherwise operate on the global face definition.\n\ | 3630 | for that frame. Otherwise operate on the global face definition. |
| 3630 | Value is a vector of face attributes.") | 3631 | Value is a vector of face attributes. */ |
| 3631 | (face, frame) | 3632 | (face, frame)) |
| 3632 | Lisp_Object face, frame; | 3633 | Lisp_Object face, frame; |
| 3633 | { | 3634 | { |
| 3634 | Lisp_Object global_lface, lface; | 3635 | Lisp_Object global_lface, lface; |
| @@ -3701,11 +3702,11 @@ Value is a vector of face attributes.") | |||
| 3701 | 3702 | ||
| 3702 | DEFUN ("internal-lisp-face-p", Finternal_lisp_face_p, | 3703 | DEFUN ("internal-lisp-face-p", Finternal_lisp_face_p, |
| 3703 | Sinternal_lisp_face_p, 1, 2, 0, | 3704 | Sinternal_lisp_face_p, 1, 2, 0, |
| 3704 | "Return non-nil if FACE names a face.\n\ | 3705 | /* Return non-nil if FACE names a face. |
| 3705 | If optional second parameter FRAME is non-nil, check for the\n\ | 3706 | If optional second parameter FRAME is non-nil, check for the |
| 3706 | existence of a frame-local face with name FACE on that frame.\n\ | 3707 | existence of a frame-local face with name FACE on that frame. |
| 3707 | Otherwise check for the existence of a global face.") | 3708 | Otherwise check for the existence of a global face. */ |
| 3708 | (face, frame) | 3709 | (face, frame)) |
| 3709 | Lisp_Object face, frame; | 3710 | Lisp_Object face, frame; |
| 3710 | { | 3711 | { |
| 3711 | Lisp_Object lface; | 3712 | Lisp_Object lface; |
| @@ -3724,14 +3725,14 @@ Otherwise check for the existence of a global face.") | |||
| 3724 | 3725 | ||
| 3725 | DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, | 3726 | DEFUN ("internal-copy-lisp-face", Finternal_copy_lisp_face, |
| 3726 | Sinternal_copy_lisp_face, 4, 4, 0, | 3727 | Sinternal_copy_lisp_face, 4, 4, 0, |
| 3727 | "Copy face FROM to TO.\n\ | 3728 | /* Copy face FROM to TO. |
| 3728 | If FRAME it t, copy the global face definition of FROM to the\n\ | 3729 | If FRAME it t, copy the global face definition of FROM to the |
| 3729 | global face definition of TO. Otherwise, copy the frame-local\n\ | 3730 | global face definition of TO. Otherwise, copy the frame-local |
| 3730 | definition of FROM on FRAME to the frame-local definition of TO\n\ | 3731 | definition of FROM on FRAME to the frame-local definition of TO |
| 3731 | on NEW-FRAME, or FRAME if NEW-FRAME is nil.\n\ | 3732 | on NEW-FRAME, or FRAME if NEW-FRAME is nil. |
| 3732 | \n\ | 3733 | |
| 3733 | Value is TO.") | 3734 | Value is TO. */ |
| 3734 | (from, to, frame, new_frame) | 3735 | (from, to, frame, new_frame)) |
| 3735 | Lisp_Object from, to, frame, new_frame; | 3736 | Lisp_Object from, to, frame, new_frame; |
| 3736 | { | 3737 | { |
| 3737 | Lisp_Object lface, copy; | 3738 | Lisp_Object lface, copy; |
| @@ -3766,13 +3767,13 @@ Value is TO.") | |||
| 3766 | 3767 | ||
| 3767 | DEFUN ("internal-set-lisp-face-attribute", Finternal_set_lisp_face_attribute, | 3768 | DEFUN ("internal-set-lisp-face-attribute", Finternal_set_lisp_face_attribute, |
| 3768 | Sinternal_set_lisp_face_attribute, 3, 4, 0, | 3769 | Sinternal_set_lisp_face_attribute, 3, 4, 0, |
| 3769 | "Set attribute ATTR of FACE to VALUE.\n\ | 3770 | /* Set attribute ATTR of FACE to VALUE. |
| 3770 | FRAME being a frame means change the face on that frame.\n\ | 3771 | FRAME being a frame means change the face on that frame. |
| 3771 | FRAME nil means change the face of the selected frame.\n\ | 3772 | FRAME nil means change the face of the selected frame. |
| 3772 | FRAME t means change the default for new frames.\n\ | 3773 | FRAME t means change the default for new frames. |
| 3773 | FRAME 0 means change the face on all frames, and change the default\n\ | 3774 | FRAME 0 means change the face on all frames, and change the default |
| 3774 | for new frames.") | 3775 | for new frames. */ |
| 3775 | (face, attr, value, frame) | 3776 | (face, attr, value, frame)) |
| 3776 | Lisp_Object face, attr, value, frame; | 3777 | Lisp_Object face, attr, value, frame; |
| 3777 | { | 3778 | { |
| 3778 | Lisp_Object lface; | 3779 | Lisp_Object lface; |
| @@ -4310,8 +4311,9 @@ update_face_from_frame_parameter (f, param, new_value) | |||
| 4310 | doesn't take a frame argument. */ | 4311 | doesn't take a frame argument. */ |
| 4311 | 4312 | ||
| 4312 | DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, | 4313 | DEFUN ("internal-face-x-get-resource", Finternal_face_x_get_resource, |
| 4313 | Sinternal_face_x_get_resource, 3, 3, 0, "") | 4314 | Sinternal_face_x_get_resource, 3, 3, 0, |
| 4314 | (resource, class, frame) | 4315 | /* */ |
| 4316 | (resource, class, frame)) | ||
| 4315 | Lisp_Object resource, class, frame; | 4317 | Lisp_Object resource, class, frame; |
| 4316 | { | 4318 | { |
| 4317 | Lisp_Object value = Qnil; | 4319 | Lisp_Object value = Qnil; |
| @@ -4362,8 +4364,9 @@ face_boolean_x_resource_value (value, signal_p) | |||
| 4362 | DEFUN ("internal-set-lisp-face-attribute-from-resource", | 4364 | DEFUN ("internal-set-lisp-face-attribute-from-resource", |
| 4363 | Finternal_set_lisp_face_attribute_from_resource, | 4365 | Finternal_set_lisp_face_attribute_from_resource, |
| 4364 | Sinternal_set_lisp_face_attribute_from_resource, | 4366 | Sinternal_set_lisp_face_attribute_from_resource, |
| 4365 | 3, 4, 0, "") | 4367 | 3, 4, 0, |
| 4366 | (face, attr, value, frame) | 4368 | /* */ |
| 4369 | (face, attr, value, frame)) | ||
| 4367 | Lisp_Object face, attr, value, frame; | 4370 | Lisp_Object face, attr, value, frame; |
| 4368 | { | 4371 | { |
| 4369 | CHECK_SYMBOL (face, 0); | 4372 | CHECK_SYMBOL (face, 0); |
| @@ -4492,13 +4495,13 @@ x_update_menu_appearance (f) | |||
| 4492 | DEFUN ("internal-get-lisp-face-attribute", Finternal_get_lisp_face_attribute, | 4495 | DEFUN ("internal-get-lisp-face-attribute", Finternal_get_lisp_face_attribute, |
| 4493 | Sinternal_get_lisp_face_attribute, | 4496 | Sinternal_get_lisp_face_attribute, |
| 4494 | 2, 3, 0, | 4497 | 2, 3, 0, |
| 4495 | "Return face attribute KEYWORD of face SYMBOL.\n\ | 4498 | /* Return face attribute KEYWORD of face SYMBOL. |
| 4496 | If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid\n\ | 4499 | If SYMBOL does not name a valid Lisp face or KEYWORD isn't a valid |
| 4497 | face attribute name, signal an error.\n\ | 4500 | face attribute name, signal an error. |
| 4498 | If the optional argument FRAME is given, report on face FACE in that\n\ | 4501 | If the optional argument FRAME is given, report on face FACE in that |
| 4499 | frame. If FRAME is t, report on the defaults for face FACE (for new\n\ | 4502 | frame. If FRAME is t, report on the defaults for face FACE (for new |
| 4500 | frames). If FRAME is omitted or nil, use the selected frame.") | 4503 | frames). If FRAME is omitted or nil, use the selected frame. */ |
| 4501 | (symbol, keyword, frame) | 4504 | (symbol, keyword, frame)) |
| 4502 | Lisp_Object symbol, keyword, frame; | 4505 | Lisp_Object symbol, keyword, frame; |
| 4503 | { | 4506 | { |
| 4504 | Lisp_Object lface, value = Qnil; | 4507 | Lisp_Object lface, value = Qnil; |
| @@ -4557,9 +4560,9 @@ frames). If FRAME is omitted or nil, use the selected frame.") | |||
| 4557 | DEFUN ("internal-lisp-face-attribute-values", | 4560 | DEFUN ("internal-lisp-face-attribute-values", |
| 4558 | Finternal_lisp_face_attribute_values, | 4561 | Finternal_lisp_face_attribute_values, |
| 4559 | Sinternal_lisp_face_attribute_values, 1, 1, 0, | 4562 | Sinternal_lisp_face_attribute_values, 1, 1, 0, |
| 4560 | "Return a list of valid discrete values for face attribute ATTR.\n\ | 4563 | /* Return a list of valid discrete values for face attribute ATTR. |
| 4561 | Value is nil if ATTR doesn't have a discrete set of valid values.") | 4564 | Value is nil if ATTR doesn't have a discrete set of valid values. */ |
| 4562 | (attr) | 4565 | (attr)) |
| 4563 | Lisp_Object attr; | 4566 | Lisp_Object attr; |
| 4564 | { | 4567 | { |
| 4565 | Lisp_Object result = Qnil; | 4568 | Lisp_Object result = Qnil; |
| @@ -4609,9 +4612,9 @@ Value is nil if ATTR doesn't have a discrete set of valid values.") | |||
| 4609 | 4612 | ||
| 4610 | DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face, | 4613 | DEFUN ("internal-merge-in-global-face", Finternal_merge_in_global_face, |
| 4611 | Sinternal_merge_in_global_face, 2, 2, 0, | 4614 | Sinternal_merge_in_global_face, 2, 2, 0, |
| 4612 | "Add attributes from frame-default definition of FACE to FACE on FRAME.\n\ | 4615 | /* Add attributes from frame-default definition of FACE to FACE on FRAME. |
| 4613 | Default face attributes override any local face attributes.") | 4616 | Default face attributes override any local face attributes. */ |
| 4614 | (face, frame) | 4617 | (face, frame)) |
| 4615 | Lisp_Object face, frame; | 4618 | Lisp_Object face, frame; |
| 4616 | { | 4619 | { |
| 4617 | int i; | 4620 | int i; |
| @@ -4644,13 +4647,13 @@ Default face attributes override any local face attributes.") | |||
| 4644 | done in fontset.el. */ | 4647 | done in fontset.el. */ |
| 4645 | 4648 | ||
| 4646 | DEFUN ("face-font", Fface_font, Sface_font, 1, 2, 0, | 4649 | DEFUN ("face-font", Fface_font, Sface_font, 1, 2, 0, |
| 4647 | "Return the font name of face FACE, or nil if it is unspecified.\n\ | 4650 | /* Return the font name of face FACE, or nil if it is unspecified. |
| 4648 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4651 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4649 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4652 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 4650 | The font default for a face is either nil, or a list\n\ | 4653 | The font default for a face is either nil, or a list |
| 4651 | of the form (bold), (italic) or (bold italic).\n\ | 4654 | of the form (bold), (italic) or (bold italic). |
| 4652 | If FRAME is omitted or nil, use the selected frame.") | 4655 | If FRAME is omitted or nil, use the selected frame. */ |
| 4653 | (face, frame) | 4656 | (face, frame)) |
| 4654 | Lisp_Object face, frame; | 4657 | Lisp_Object face, frame; |
| 4655 | { | 4658 | { |
| 4656 | if (EQ (frame, Qt)) | 4659 | if (EQ (frame, Qt)) |
| @@ -4728,11 +4731,11 @@ lface_equal_p (v1, v2) | |||
| 4728 | 4731 | ||
| 4729 | DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p, | 4732 | DEFUN ("internal-lisp-face-equal-p", Finternal_lisp_face_equal_p, |
| 4730 | Sinternal_lisp_face_equal_p, 2, 3, 0, | 4733 | Sinternal_lisp_face_equal_p, 2, 3, 0, |
| 4731 | "True if FACE1 and FACE2 are equal.\n\ | 4734 | /* True if FACE1 and FACE2 are equal. |
| 4732 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4735 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4733 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4736 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 4734 | If FRAME is omitted or nil, use the selected frame.") | 4737 | If FRAME is omitted or nil, use the selected frame. */ |
| 4735 | (face1, face2, frame) | 4738 | (face1, face2, frame)) |
| 4736 | Lisp_Object face1, face2, frame; | 4739 | Lisp_Object face1, face2, frame; |
| 4737 | { | 4740 | { |
| 4738 | int equal_p; | 4741 | int equal_p; |
| @@ -4758,11 +4761,11 @@ If FRAME is omitted or nil, use the selected frame.") | |||
| 4758 | 4761 | ||
| 4759 | DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p, | 4762 | DEFUN ("internal-lisp-face-empty-p", Finternal_lisp_face_empty_p, |
| 4760 | Sinternal_lisp_face_empty_p, 1, 2, 0, | 4763 | Sinternal_lisp_face_empty_p, 1, 2, 0, |
| 4761 | "True if FACE has no attribute specified.\n\ | 4764 | /* True if FACE has no attribute specified. |
| 4762 | If the optional argument FRAME is given, report on face FACE in that frame.\n\ | 4765 | If the optional argument FRAME is given, report on face FACE in that frame. |
| 4763 | If FRAME is t, report on the defaults for face FACE (for new frames).\n\ | 4766 | If FRAME is t, report on the defaults for face FACE (for new frames). |
| 4764 | If FRAME is omitted or nil, use the selected frame.") | 4767 | If FRAME is omitted or nil, use the selected frame. */ |
| 4765 | (face, frame) | 4768 | (face, frame)) |
| 4766 | Lisp_Object face, frame; | 4769 | Lisp_Object face, frame; |
| 4767 | { | 4770 | { |
| 4768 | struct frame *f; | 4771 | struct frame *f; |
| @@ -4789,9 +4792,9 @@ If FRAME is omitted or nil, use the selected frame.") | |||
| 4789 | 4792 | ||
| 4790 | DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, | 4793 | DEFUN ("frame-face-alist", Fframe_face_alist, Sframe_face_alist, |
| 4791 | 0, 1, 0, | 4794 | 0, 1, 0, |
| 4792 | "Return an alist of frame-local faces defined on FRAME.\n\ | 4795 | /* Return an alist of frame-local faces defined on FRAME. |
| 4793 | For internal use only.") | 4796 | For internal use only. */ |
| 4794 | (frame) | 4797 | (frame)) |
| 4795 | Lisp_Object frame; | 4798 | Lisp_Object frame; |
| 4796 | { | 4799 | { |
| 4797 | struct frame *f = frame_or_selected_frame (frame, 0); | 4800 | struct frame *f = frame_or_selected_frame (frame, 0); |
| @@ -5468,15 +5471,15 @@ lookup_derived_face (f, symbol, c, face_id) | |||
| 5468 | DEFUN ("internal-set-font-selection-order", | 5471 | DEFUN ("internal-set-font-selection-order", |
| 5469 | Finternal_set_font_selection_order, | 5472 | Finternal_set_font_selection_order, |
| 5470 | Sinternal_set_font_selection_order, 1, 1, 0, | 5473 | Sinternal_set_font_selection_order, 1, 1, 0, |
| 5471 | "Set font selection order for face font selection to ORDER.\n\ | 5474 | /* Set font selection order for face font selection to ORDER. |
| 5472 | ORDER must be a list of length 4 containing the symbols `:width',\n\ | 5475 | ORDER must be a list of length 4 containing the symbols `:width', |
| 5473 | `:height', `:weight', and `:slant'. Face attributes appearing\n\ | 5476 | `:height', `:weight', and `:slant'. Face attributes appearing |
| 5474 | first in ORDER are matched first, e.g. if `:height' appears before\n\ | 5477 | first in ORDER are matched first, e.g. if `:height' appears before |
| 5475 | `:weight' in ORDER, font selection first tries to find a font with\n\ | 5478 | `:weight' in ORDER, font selection first tries to find a font with |
| 5476 | a suitable height, and then tries to match the font weight.\n\ | 5479 | a suitable height, and then tries to match the font weight. |
| 5477 | Value is ORDER.") | 5480 | Value is ORDER. */ |
| 5478 | (order) | 5481 | (order)) |
| 5479 | Lisp_Object order; | 5482 | Lisp_Object order; |
| 5480 | { | 5483 | { |
| 5481 | Lisp_Object list; | 5484 | Lisp_Object list; |
| 5482 | int i; | 5485 | int i; |
| @@ -5528,11 +5531,11 @@ Value is ORDER.") | |||
| 5528 | DEFUN ("internal-set-alternative-font-family-alist", | 5531 | DEFUN ("internal-set-alternative-font-family-alist", |
| 5529 | Finternal_set_alternative_font_family_alist, | 5532 | Finternal_set_alternative_font_family_alist, |
| 5530 | Sinternal_set_alternative_font_family_alist, 1, 1, 0, | 5533 | Sinternal_set_alternative_font_family_alist, 1, 1, 0, |
| 5531 | "Define alternative font families to try in face font selection.\n\ | 5534 | /* Define alternative font families to try in face font selection. |
| 5532 | ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ | 5535 | ALIST is an alist of (FAMILY ALTERNATIVE1 ALTERNATIVE2 ...) entries. |
| 5533 | Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can\n\ | 5536 | Each ALTERNATIVE is tried in order if no fonts of font family FAMILY can |
| 5534 | be found. Value is ALIST.") | 5537 | be found. Value is ALIST. */ |
| 5535 | (alist) | 5538 | (alist)) |
| 5536 | Lisp_Object alist; | 5539 | Lisp_Object alist; |
| 5537 | { | 5540 | { |
| 5538 | CHECK_LIST (alist, 0); | 5541 | CHECK_LIST (alist, 0); |
| @@ -5545,11 +5548,11 @@ be found. Value is ALIST.") | |||
| 5545 | DEFUN ("internal-set-alternative-font-registry-alist", | 5548 | DEFUN ("internal-set-alternative-font-registry-alist", |
| 5546 | Finternal_set_alternative_font_registry_alist, | 5549 | Finternal_set_alternative_font_registry_alist, |
| 5547 | Sinternal_set_alternative_font_registry_alist, 1, 1, 0, | 5550 | Sinternal_set_alternative_font_registry_alist, 1, 1, 0, |
| 5548 | "Define alternative font registries to try in face font selection.\n\ | 5551 | /* Define alternative font registries to try in face font selection. |
| 5549 | ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries.\n\ | 5552 | ALIST is an alist of (REGISTRY ALTERNATIVE1 ALTERNATIVE2 ...) entries. |
| 5550 | Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can\n\ | 5553 | Each ALTERNATIVE is tried in order if no fonts of font registry REGISTRY can |
| 5551 | be found. Value is ALIST.") | 5554 | be found. Value is ALIST. */ |
| 5552 | (alist) | 5555 | (alist)) |
| 5553 | Lisp_Object alist; | 5556 | Lisp_Object alist; |
| 5554 | { | 5557 | { |
| 5555 | CHECK_LIST (alist, 0); | 5558 | CHECK_LIST (alist, 0); |
| @@ -6656,13 +6659,13 @@ realize_tty_face (cache, attrs, c) | |||
| 6656 | DEFUN ("tty-suppress-bold-inverse-default-colors", | 6659 | DEFUN ("tty-suppress-bold-inverse-default-colors", |
| 6657 | Ftty_suppress_bold_inverse_default_colors, | 6660 | Ftty_suppress_bold_inverse_default_colors, |
| 6658 | Stty_suppress_bold_inverse_default_colors, 1, 1, 0, | 6661 | Stty_suppress_bold_inverse_default_colors, 1, 1, 0, |
| 6659 | "Suppress/allow boldness of faces with inverse default colors.\n\ | 6662 | /* Suppress/allow boldness of faces with inverse default colors. |
| 6660 | SUPPRESS non-nil means suppress it.\n\ | 6663 | SUPPRESS non-nil means suppress it. |
| 6661 | This affects bold faces on TTYs whose foreground is the default background\n\ | 6664 | This affects bold faces on TTYs whose foreground is the default background |
| 6662 | color of the display and whose background is the default foreground color.\n\ | 6665 | color of the display and whose background is the default foreground color. |
| 6663 | For such faces, the bold face attribute is ignored if this variable\n\ | 6666 | For such faces, the bold face attribute is ignored if this variable |
| 6664 | is non-nil.") | 6667 | is non-nil. */ |
| 6665 | (suppress) | 6668 | (suppress)) |
| 6666 | Lisp_Object suppress; | 6669 | Lisp_Object suppress; |
| 6667 | { | 6670 | { |
| 6668 | tty_suppress_bold_inverse_default_colors_p = !NILP (suppress); | 6671 | tty_suppress_bold_inverse_default_colors_p = !NILP (suppress); |
| @@ -6978,8 +6981,8 @@ dump_realized_face (face) | |||
| 6978 | } | 6981 | } |
| 6979 | 6982 | ||
| 6980 | 6983 | ||
| 6981 | DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, "") | 6984 | DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, /* */ |
| 6982 | (n) | 6985 | (n)) |
| 6983 | Lisp_Object n; | 6986 | Lisp_Object n; |
| 6984 | { | 6987 | { |
| 6985 | if (NILP (n)) | 6988 | if (NILP (n)) |
| @@ -7013,8 +7016,8 @@ DEFUN ("dump-face", Fdump_face, Sdump_face, 0, 1, 0, "") | |||
| 7013 | 7016 | ||
| 7014 | 7017 | ||
| 7015 | DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, | 7018 | DEFUN ("show-face-resources", Fshow_face_resources, Sshow_face_resources, |
| 7016 | 0, 0, 0, "") | 7019 | 0, 0, 0, /* */ |
| 7017 | () | 7020 | ()) |
| 7018 | { | 7021 | { |
| 7019 | fprintf (stderr, "number of colors = %d\n", ncolors_allocated); | 7022 | fprintf (stderr, "number of colors = %d\n", ncolors_allocated); |
| 7020 | fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated); | 7023 | fprintf (stderr, "number of pixmaps = %d\n", npixmaps_allocated); |
| @@ -7206,40 +7209,41 @@ syms_of_xfaces () | |||
| 7206 | defsubr (&Sdump_colors); | 7209 | defsubr (&Sdump_colors); |
| 7207 | #endif | 7210 | #endif |
| 7208 | 7211 | ||
| 7209 | DEFVAR_LISP ("font-list-limit", &Vfont_list_limit, | 7212 | DEFVAR_LISP ("font-list-limit", &Vfont_list_limit |
| 7210 | "*Limit for font matching.\n\ | 7213 | /* *Limit for font matching. |
| 7211 | If an integer > 0, font matching functions won't load more than\n\ | 7214 | If an integer > 0, font matching functions won't load more than |
| 7212 | that number of fonts when searching for a matching font."); | 7215 | that number of fonts when searching for a matching font. */); |
| 7213 | Vfont_list_limit = make_number (DEFAULT_FONT_LIST_LIMIT); | 7216 | Vfont_list_limit = make_number (DEFAULT_FONT_LIST_LIMIT); |
| 7214 | 7217 | ||
| 7215 | DEFVAR_LISP ("face-new-frame-defaults", &Vface_new_frame_defaults, | 7218 | DEFVAR_LISP ("face-new-frame-defaults", &Vface_new_frame_defaults |
| 7216 | "List of global face definitions (for internal use only.)"); | 7219 | /* List of global face definitions (for internal use only.) */); |
| 7217 | Vface_new_frame_defaults = Qnil; | 7220 | Vface_new_frame_defaults = Qnil; |
| 7218 | 7221 | ||
| 7219 | DEFVAR_LISP ("face-default-stipple", &Vface_default_stipple, | 7222 | DEFVAR_LISP ("face-default-stipple", &Vface_default_stipple |
| 7220 | "*Default stipple pattern used on monochrome displays.\n\ | 7223 | /* *Default stipple pattern used on monochrome displays. |
| 7221 | This stipple pattern is used on monochrome displays\n\ | 7224 | This stipple pattern is used on monochrome displays |
| 7222 | instead of shades of gray for a face background color.\n\ | 7225 | instead of shades of gray for a face background color. |
| 7223 | See `set-face-stipple' for possible values for this variable."); | 7226 | See `set-face-stipple' for possible values for this variable. */); |
| 7224 | Vface_default_stipple = build_string ("gray3"); | 7227 | Vface_default_stipple = build_string ("gray3"); |
| 7225 | 7228 | ||
| 7226 | DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist, | 7229 | DEFVAR_LISP ("tty-defined-color-alist", &Vtty_defined_color_alist |
| 7227 | "An alist of defined terminal colors and their RGB values."); | 7230 | /* An alist of defined terminal colors and their RGB values. */); |
| 7228 | Vtty_defined_color_alist = Qnil; | 7231 | Vtty_defined_color_alist = Qnil; |
| 7229 | 7232 | ||
| 7230 | DEFVAR_LISP ("scalable-fonts-allowed", &Vscalable_fonts_allowed, | 7233 | DEFVAR_LISP ("scalable-fonts-allowed", &Vscalable_fonts_allowed |
| 7231 | "Allowed scalable fonts.\n\ | 7234 | /* Allowed scalable fonts. |
| 7232 | A value of nil means don't allow any scalable fonts.\n\ | 7235 | A value of nil means don't allow any scalable fonts. |
| 7233 | A value of t means allow any scalable font.\n\ | 7236 | A value of t means allow any scalable font. |
| 7234 | Otherwise, value must be a list of regular expressions. A font may be\n\ | 7237 | Otherwise, value must be a list of regular expressions. A font may be |
| 7235 | scaled if its name matches a regular expression in the list.\n\ | 7238 | scaled if its name matches a regular expression in the list. |
| 7236 | Note that if value is nil, a scalable font might still be used, if no\n\ | 7239 | Note that if value is nil, a scalable font might still be used, if no |
| 7237 | other font of the appropriate family and registry is available."); | 7240 | other font of the appropriate family and registry is available. */); |
| 7238 | Vscalable_fonts_allowed = Qnil; | 7241 | Vscalable_fonts_allowed = Qnil; |
| 7239 | 7242 | ||
| 7240 | DEFVAR_LISP ("face-ignored-fonts", &Vface_ignored_fonts, | 7243 | DEFVAR_LISP ("face-ignored-fonts", &Vface_ignored_fonts |
| 7241 | "List of ignored fonts.\n\ | 7244 | /* List of ignored fonts. |
| 7242 | Each element is a regular expression that matches names of fonts to ignore."); | 7245 | Each element is a regular expression that matches names of fonts to |
| 7246 | ignore. */); | ||
| 7243 | Vface_ignored_fonts = Qnil; | 7247 | Vface_ignored_fonts = Qnil; |
| 7244 | 7248 | ||
| 7245 | #ifdef HAVE_WINDOW_SYSTEM | 7249 | #ifdef HAVE_WINDOW_SYSTEM |
diff --git a/src/xmenu.c b/src/xmenu.c index e12099becf3..bf7bdbfd34e 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -37,6 +37,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 37 | #include <signal.h> | 37 | #include <signal.h> |
| 38 | 38 | ||
| 39 | #include <stdio.h> | 39 | #include <stdio.h> |
| 40 | #define DOC_STRINGS_IN_COMMENTS | ||
| 40 | #include "lisp.h" | 41 | #include "lisp.h" |
| 41 | #include "termhooks.h" | 42 | #include "termhooks.h" |
| 42 | #include "keyboard.h" | 43 | #include "keyboard.h" |
| @@ -655,39 +656,40 @@ list_of_items (pane) | |||
| 655 | } | 656 | } |
| 656 | 657 | ||
| 657 | DEFUN ("x-popup-menu", Fx_popup_menu, Sx_popup_menu, 2, 2, 0, | 658 | DEFUN ("x-popup-menu", Fx_popup_menu, Sx_popup_menu, 2, 2, 0, |
| 658 | "Pop up a deck-of-cards menu and return user's selection.\n\ | 659 | /* Pop up a deck-of-cards menu and return user's selection. |
| 659 | POSITION is a position specification. This is either a mouse button event\n\ | 660 | POSITION is a position specification. This is either a mouse button event |
| 660 | or a list ((XOFFSET YOFFSET) WINDOW)\n\ | 661 | or a list ((XOFFSET YOFFSET) WINDOW) |
| 661 | where XOFFSET and YOFFSET are positions in pixels from the top left\n\ | 662 | where XOFFSET and YOFFSET are positions in pixels from the top left |
| 662 | corner of WINDOW's frame. (WINDOW may be a frame object instead of a window.)\n\ | 663 | corner of WINDOW's frame. (WINDOW may be a frame object instead of a window.) |
| 663 | This controls the position of the center of the first line\n\ | 664 | This controls the position of the center of the first line |
| 664 | in the first pane of the menu, not the top left of the menu as a whole.\n\ | 665 | in the first pane of the menu, not the top left of the menu as a whole. |
| 665 | If POSITION is t, it means to use the current mouse position.\n\ | 666 | If POSITION is t, it means to use the current mouse position. |
| 666 | \n\ | 667 | |
| 667 | MENU is a specifier for a menu. For the simplest case, MENU is a keymap.\n\ | 668 | MENU is a specifier for a menu. For the simplest case, MENU is a keymap. |
| 668 | The menu items come from key bindings that have a menu string as well as\n\ | 669 | The menu items come from key bindings that have a menu string as well as |
| 669 | a definition; actually, the \"definition\" in such a key binding looks like\n\ | 670 | a definition; actually, the "definition" in such a key binding looks like |
| 670 | \(STRING . REAL-DEFINITION). To give the menu a title, put a string into\n\ | 671 | \(STRING . REAL-DEFINITION). To give the menu a title, put a string into |
| 671 | the keymap as a top-level element.\n\n\ | 672 | the keymap as a top-level element. |
| 672 | If REAL-DEFINITION is nil, that puts a nonselectable string in the menu.\n\ | 673 | |
| 673 | Otherwise, REAL-DEFINITION should be a valid key binding definition.\n\ | 674 | If REAL-DEFINITION is nil, that puts a nonselectable string in the menu. |
| 674 | \n\ | 675 | Otherwise, REAL-DEFINITION should be a valid key binding definition. |
| 675 | You can also use a list of keymaps as MENU.\n\ | 676 | |
| 676 | Then each keymap makes a separate pane.\n\ | 677 | You can also use a list of keymaps as MENU. |
| 677 | When MENU is a keymap or a list of keymaps, the return value\n\ | 678 | Then each keymap makes a separate pane. |
| 678 | is a list of events.\n\n\ | 679 | When MENU is a keymap or a list of keymaps, the return value |
| 679 | \n\ | 680 | is a list of events. |
| 680 | Alternatively, you can specify a menu of multiple panes\n\ | 681 | |
| 681 | with a list of the form (TITLE PANE1 PANE2...),\n\ | 682 | Alternatively, you can specify a menu of multiple panes |
| 682 | where each pane is a list of form (TITLE ITEM1 ITEM2...).\n\ | 683 | with a list of the form (TITLE PANE1 PANE2...), |
| 683 | Each ITEM is normally a cons cell (STRING . VALUE);\n\ | 684 | where each pane is a list of form (TITLE ITEM1 ITEM2...). |
| 684 | but a string can appear as an item--that makes a nonselectable line\n\ | 685 | Each ITEM is normally a cons cell (STRING . VALUE); |
| 685 | in the menu.\n\ | 686 | but a string can appear as an item--that makes a nonselectable line |
| 686 | With this form of menu, the return value is VALUE from the chosen item.\n\ | 687 | in the menu. |
| 687 | \n\ | 688 | With this form of menu, the return value is VALUE from the chosen item. |
| 688 | If POSITION is nil, don't display the menu at all, just precalculate the\n\ | 689 | |
| 689 | cached information about equivalent key sequences.") | 690 | If POSITION is nil, don't display the menu at all, just precalculate the |
| 690 | (position, menu) | 691 | cached information about equivalent key sequences. */ |
| 692 | (position, menu)) | ||
| 691 | Lisp_Object position, menu; | 693 | Lisp_Object position, menu; |
| 692 | { | 694 | { |
| 693 | Lisp_Object keymap, tem; | 695 | Lisp_Object keymap, tem; |
| @@ -879,21 +881,22 @@ cached information about equivalent key sequences.") | |||
| 879 | #ifdef HAVE_MENUS | 881 | #ifdef HAVE_MENUS |
| 880 | 882 | ||
| 881 | DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 2, 0, | 883 | DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 2, 0, |
| 882 | "Pop up a dialog box and return user's selection.\n\ | 884 | /* Pop up a dialog box and return user's selection. |
| 883 | POSITION specifies which frame to use.\n\ | 885 | POSITION specifies which frame to use. |
| 884 | This is normally a mouse button event or a window or frame.\n\ | 886 | This is normally a mouse button event or a window or frame. |
| 885 | If POSITION is t, it means to use the frame the mouse is on.\n\ | 887 | If POSITION is t, it means to use the frame the mouse is on. |
| 886 | The dialog box appears in the middle of the specified frame.\n\ | 888 | The dialog box appears in the middle of the specified frame. |
| 887 | \n\ | 889 | |
| 888 | CONTENTS specifies the alternatives to display in the dialog box.\n\ | 890 | CONTENTS specifies the alternatives to display in the dialog box. |
| 889 | It is a list of the form (TITLE ITEM1 ITEM2...).\n\ | 891 | It is a list of the form (TITLE ITEM1 ITEM2...). |
| 890 | Each ITEM is a cons cell (STRING . VALUE).\n\ | 892 | Each ITEM is a cons cell (STRING . VALUE). |
| 891 | The return value is VALUE from the chosen item.\n\n\ | 893 | The return value is VALUE from the chosen item. |
| 892 | An ITEM may also be just a string--that makes a nonselectable item.\n\ | 894 | |
| 893 | An ITEM may also be nil--that means to put all preceding items\n\ | 895 | An ITEM may also be just a string--that makes a nonselectable item. |
| 894 | on the left of the dialog box and all following items on the right.\n\ | 896 | An ITEM may also be nil--that means to put all preceding items |
| 895 | \(By default, approximately half appear on each side.)") | 897 | on the left of the dialog box and all following items on the right. |
| 896 | (position, contents) | 898 | \(By default, approximately half appear on each side.) */ |
| 899 | (position, contents)) | ||
| 897 | Lisp_Object position, contents; | 900 | Lisp_Object position, contents; |
| 898 | { | 901 | { |
| 899 | struct frame * f = NULL; | 902 | struct frame * f = NULL; |
| @@ -2846,9 +2849,9 @@ syms_of_xmenu () | |||
| 2846 | Qdebug_on_next_call = intern ("debug-on-next-call"); | 2849 | Qdebug_on_next_call = intern ("debug-on-next-call"); |
| 2847 | staticpro (&Qdebug_on_next_call); | 2850 | staticpro (&Qdebug_on_next_call); |
| 2848 | 2851 | ||
| 2849 | DEFVAR_LISP ("menu-updating-frame", &Vmenu_updating_frame, | 2852 | DEFVAR_LISP ("menu-updating-frame", &Vmenu_updating_frame |
| 2850 | "Frame for which we are updating a menu.\n\ | 2853 | /* Frame for which we are updating a menu. |
| 2851 | The enable predicate for a menu command should check this variable."); | 2854 | The enable predicate for a menu command should check this variable. */); |
| 2852 | Vmenu_updating_frame = Qnil; | 2855 | Vmenu_updating_frame = Qnil; |
| 2853 | 2856 | ||
| 2854 | #ifdef USE_X_TOOLKIT | 2857 | #ifdef USE_X_TOOLKIT |
diff --git a/src/xterm.c b/src/xterm.c index caf9695cf11..2dd0cd01b89 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -32,6 +32,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 32 | 32 | ||
| 33 | #ifdef HAVE_X_WINDOWS | 33 | #ifdef HAVE_X_WINDOWS |
| 34 | 34 | ||
| 35 | #define DOC_STRINGS_IN_COMMENTS | ||
| 35 | #include "lisp.h" | 36 | #include "lisp.h" |
| 36 | #include "blockinput.h" | 37 | #include "blockinput.h" |
| 37 | 38 | ||
| @@ -14790,24 +14791,24 @@ syms_of_xterm () | |||
| 14790 | staticpro (&previous_help_echo); | 14791 | staticpro (&previous_help_echo); |
| 14791 | help_echo_pos = -1; | 14792 | help_echo_pos = -1; |
| 14792 | 14793 | ||
| 14793 | DEFVAR_BOOL ("x-stretch-cursor", &x_stretch_cursor_p, | 14794 | DEFVAR_BOOL ("x-stretch-cursor", &x_stretch_cursor_p |
| 14794 | "*Non-nil means draw block cursor as wide as the glyph under it.\n\ | 14795 | /* *Non-nil means draw block cursor as wide as the glyph under it. |
| 14795 | For example, if a block cursor is over a tab, it will be drawn as\n\ | 14796 | For example, if a block cursor is over a tab, it will be drawn as |
| 14796 | wide as that tab on the display."); | 14797 | wide as that tab on the display. */); |
| 14797 | x_stretch_cursor_p = 0; | 14798 | x_stretch_cursor_p = 0; |
| 14798 | 14799 | ||
| 14799 | DEFVAR_BOOL ("x-use-underline-position-properties", | 14800 | DEFVAR_BOOL ("x-use-underline-position-properties", |
| 14800 | &x_use_underline_position_properties, | 14801 | &x_use_underline_position_properties |
| 14801 | "*Non-nil means make use of UNDERLINE_POSITION font properties.\n\ | 14802 | /* *Non-nil means make use of UNDERLINE_POSITION font properties. |
| 14802 | Nil means ignore them. If you encounter fonts with bogus\n\ | 14803 | Nil means ignore them. If you encounter fonts with bogus |
| 14803 | UNDERLINE_POSITION font properties, for example 7x13 on XFree prior\n\ | 14804 | UNDERLINE_POSITION font properties, for example 7x13 on XFree prior |
| 14804 | to 4.1, set this to nil."); | 14805 | to 4.1, set this to nil. */); |
| 14805 | x_use_underline_position_properties = 1; | 14806 | x_use_underline_position_properties = 1; |
| 14806 | 14807 | ||
| 14807 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars, | 14808 | DEFVAR_LISP ("x-toolkit-scroll-bars", &Vx_toolkit_scroll_bars |
| 14808 | "What X toolkit scroll bars Emacs uses.\n\ | 14809 | /* What X toolkit scroll bars Emacs uses. |
| 14809 | A value of nil means Emacs doesn't use X toolkit scroll bars.\n\ | 14810 | A value of nil means Emacs doesn't use X toolkit scroll bars. |
| 14810 | Otherwise, value is a symbol describing the X toolkit."); | 14811 | Otherwise, value is a symbol describing the X toolkit. */); |
| 14811 | #ifdef USE_TOOLKIT_SCROLL_BARS | 14812 | #ifdef USE_TOOLKIT_SCROLL_BARS |
| 14812 | #ifdef USE_MOTIF | 14813 | #ifdef USE_MOTIF |
| 14813 | Vx_toolkit_scroll_bars = intern ("motif"); | 14814 | Vx_toolkit_scroll_bars = intern ("motif"); |