aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Janík2001-12-11 06:23:50 +0000
committerPavel Janík2001-12-11 06:23:50 +0000
commit70da46c31cfe29505f9e2cb6f3ef44dc260b3898 (patch)
tree5ff292f6030474f94251450300bc48b974e94394 /src
parent3ab8acb9c0ae86cf549a7a03c029c279172c6e67 (diff)
downloademacs-70da46c31cfe29505f9e2cb6f3ef44dc260b3898.tar.gz
emacs-70da46c31cfe29505f9e2cb6f3ef44dc260b3898.zip
Change doc-string comments to `new style' [w/`doc:' keyword].
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/macros.c74
-rw-r--r--src/msdos.c54
-rw-r--r--src/w16select.c42
4 files changed, 90 insertions, 85 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 9854a1223ec..3dc0ab295da 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12001-12-11 Pavel Jan,Bm(Bk <Pavel@Janik.cz>
2
3 * macros.c, msdos.c, w16select.c: Change doc-string comments to
4 `new style' [w/`doc:' keyword].
5
12001-12-10 Jason Rumney <jasonr@gnu.org> 62001-12-10 Jason Rumney <jasonr@gnu.org>
2 7
3 * w32menu.c (w32_free_submenu_strings): Clear menu item struct 8 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
diff --git a/src/macros.c b/src/macros.c
index 4bacf789780..82e305f8df3 100644
--- a/src/macros.c
+++ b/src/macros.c
@@ -56,13 +56,13 @@ extern Lisp_Object real_this_command;
56Lisp_Object Fexecute_kbd_macro (); 56Lisp_Object Fexecute_kbd_macro ();
57 57
58DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 1, "P", 58DEFUN ("start-kbd-macro", Fstart_kbd_macro, Sstart_kbd_macro, 1, 1, "P",
59 "Record subsequent keyboard input, defining a keyboard macro.\n\ 59 doc: /* Record subsequent keyboard input, defining a keyboard macro.
60The commands are recorded even as they are executed.\n\ 60The commands are recorded even as they are executed.
61Use \\[end-kbd-macro] to finish recording and make the macro available.\n\ 61Use \\[end-kbd-macro] to finish recording and make the macro available.
62Use \\[name-last-kbd-macro] to give it a permanent name.\n\ 62Use \\[name-last-kbd-macro] to give it a permanent name.
63Non-nil arg (prefix arg) means append to last macro defined;\n\ 63Non-nil arg (prefix arg) means append to last macro defined;
64this begins by re-executing that macro as if you typed it again.") 64this begins by re-executing that macro as if you typed it again. */)
65 (append) 65 (append)
66 Lisp_Object append; 66 Lisp_Object append;
67{ 67{
68 if (!NILP (current_kboard->defining_kbd_macro)) 68 if (!NILP (current_kboard->defining_kbd_macro))
@@ -129,16 +129,16 @@ this begins by re-executing that macro as if you typed it again.")
129} 129}
130 130
131DEFUN ("end-kbd-macro", Fend_kbd_macro, Send_kbd_macro, 0, 1, "p", 131DEFUN ("end-kbd-macro", Fend_kbd_macro, Send_kbd_macro, 0, 1, "p",
132 "Finish defining a keyboard macro.\n\ 132 doc: /* Finish defining a keyboard macro.
133The definition was started by \\[start-kbd-macro].\n\ 133The definition was started by \\[start-kbd-macro].
134The macro is now available for use via \\[call-last-kbd-macro],\n\ 134The macro is now available for use via \\[call-last-kbd-macro],
135or it can be given a name with \\[name-last-kbd-macro] and then invoked\n\ 135or it can be given a name with \\[name-last-kbd-macro] and then invoked
136under that name.\n\ 136under that name.
137\n\ 137
138With numeric arg, repeat macro now that many times,\n\ 138With numeric arg, repeat macro now that many times,
139counting the definition just completed as the first repetition.\n\ 139counting the definition just completed as the first repetition.
140An argument of zero means repeat until error.") 140An argument of zero means repeat until error. */)
141 (repeat) 141 (repeat)
142 Lisp_Object repeat; 142 Lisp_Object repeat;
143{ 143{
144 if (NILP (current_kboard->defining_kbd_macro)) 144 if (NILP (current_kboard->defining_kbd_macro))
@@ -210,8 +210,8 @@ finalize_kbd_macro_chars ()
210 210
211DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events, 211DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
212 Scancel_kbd_macro_events, 0, 0, 0, 212 Scancel_kbd_macro_events, 0, 0, 0,
213 "Cancel the events added to a keyboard macro for this command.") 213 doc: /* Cancel the events added to a keyboard macro for this command. */)
214 () 214 ()
215{ 215{
216 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end; 216 current_kboard->kbd_macro_ptr = current_kboard->kbd_macro_end;
217 return Qnil; 217 return Qnil;
@@ -219,8 +219,8 @@ DEFUN ("cancel-kbd-macro-events", Fcancel_kbd_macro_events,
219 219
220DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event, 220DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event,
221 Sstore_kbd_macro_event, 1, 1, 0, 221 Sstore_kbd_macro_event, 1, 1, 0,
222 "Store EVENT into the keyboard macro being defined.") 222 doc: /* Store EVENT into the keyboard macro being defined. */)
223 (event) 223 (event)
224 Lisp_Object event; 224 Lisp_Object event;
225{ 225{
226 store_kbd_macro_char (event); 226 store_kbd_macro_char (event);
@@ -228,14 +228,14 @@ DEFUN ("store-kbd-macro-event", Fstore_kbd_macro_event,
228} 228}
229 229
230DEFUN ("call-last-kbd-macro", Fcall_last_kbd_macro, Scall_last_kbd_macro, 230DEFUN ("call-last-kbd-macro", Fcall_last_kbd_macro, Scall_last_kbd_macro,
231 0, 1, "p", 231 0, 1, "p",
232 "Call the last keyboard macro that you defined with \\[start-kbd-macro].\n\ 232 doc: /* Call the last keyboard macro that you defined with \\[start-kbd-macro].
233\n\ 233
234A prefix argument serves as a repeat count. Zero means repeat until error.\n\ 234A prefix argument serves as a repeat count. Zero means repeat until error.
235\n\ 235
236To make a macro permanent so you can call it even after\n\ 236To make a macro permanent so you can call it even after
237defining others, use \\[name-last-kbd-macro].") 237defining others, use \\[name-last-kbd-macro]. */)
238 (prefix) 238 (prefix)
239 Lisp_Object prefix; 239 Lisp_Object prefix;
240{ 240{
241 /* Don't interfere with recognition of the previous command 241 /* Don't interfere with recognition of the previous command
@@ -276,10 +276,10 @@ pop_kbd_macro (info)
276} 276}
277 277
278DEFUN ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 2, 0, 278DEFUN ("execute-kbd-macro", Fexecute_kbd_macro, Sexecute_kbd_macro, 1, 2, 0,
279 "Execute MACRO as string of editor command characters.\n\ 279 doc: /* Execute MACRO as string of editor command characters.
280If MACRO is a symbol, its function definition is used.\n\ 280If MACRO is a symbol, its function definition is used.
281COUNT is a repeat count, or nil for once, or 0 for infinite loop.") 281COUNT is a repeat count, or nil for once, or 0 for infinite loop. */)
282 (macro, count) 282 (macro, count)
283 Lisp_Object macro, count; 283 Lisp_Object macro, count;
284{ 284{
285 Lisp_Object final; 285 Lisp_Object final;
@@ -354,14 +354,14 @@ syms_of_macros ()
354 defsubr (&Sstore_kbd_macro_event); 354 defsubr (&Sstore_kbd_macro_event);
355 355
356 DEFVAR_KBOARD ("defining-kbd-macro", defining_kbd_macro, 356 DEFVAR_KBOARD ("defining-kbd-macro", defining_kbd_macro,
357 "Non-nil while a keyboard macro is being defined. Don't set this!"); 357 doc: /* Non-nil while a keyboard macro is being defined. Don't set this! */);
358 358
359 DEFVAR_LISP ("executing-macro", &Vexecuting_macro, 359 DEFVAR_LISP ("executing-macro", &Vexecuting_macro,
360 "Currently executing keyboard macro (string or vector); nil if none executing."); 360 doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */);
361 361
362 DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro, 362 DEFVAR_LISP_NOPRO ("executing-kbd-macro", &Vexecuting_macro,
363 "Currently executing keyboard macro (string or vector); nil if none executing."); 363 doc: /* Currently executing keyboard macro (string or vector); nil if none executing. */);
364 364
365 DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro, 365 DEFVAR_KBOARD ("last-kbd-macro", Vlast_kbd_macro,
366 "Last kbd macro defined, as a string or vector; nil if none defined."); 366 doc: /* Last kbd macro defined, as a string or vector; nil if none defined. */);
367} 367}
diff --git a/src/msdos.c b/src/msdos.c
index 68386b95581..da39c9a99fa 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -189,11 +189,11 @@ mouse_setup_buttons (int n_buttons)
189 189
190DEFUN ("msdos-set-mouse-buttons", Fmsdos_set_mouse_buttons, Smsdos_set_mouse_buttons, 190DEFUN ("msdos-set-mouse-buttons", Fmsdos_set_mouse_buttons, Smsdos_set_mouse_buttons,
191 1, 1, "NSet number of mouse buttons to: ", 191 1, 1, "NSet number of mouse buttons to: ",
192 "Set the number of mouse buttons to use by Emacs.\n\ 192 doc: /* Set the number of mouse buttons to use by Emacs.
193This is useful with mice that report the number of buttons inconsistently,\n\ 193This is useful with mice that report the number of buttons inconsistently,
194e.g., if the number of buttons is reported as 3, but Emacs only sees 2 of\n\ 194e.g., if the number of buttons is reported as 3, but Emacs only sees 2 of
195them. This happens with wheeled mice on Windows 9X, for example.") 195them. This happens with wheeled mice on Windows 9X, for example. */)
196 (nbuttons) 196 (nbuttons)
197 Lisp_Object nbuttons; 197 Lisp_Object nbuttons;
198{ 198{
199 int n; 199 int n;
@@ -2290,7 +2290,7 @@ IT_set_terminal_window (int foo)
2290 default colors for newly-created frames. */ 2290 default colors for newly-created frames. */
2291DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors, 2291DEFUN ("msdos-remember-default-colors", Fmsdos_remember_default_colors,
2292 Smsdos_remember_default_colors, 1, 1, 0, 2292 Smsdos_remember_default_colors, 1, 1, 0,
2293 "Remember the screen colors of the current frame.") 2293 doc: /* Remember the screen colors of the current frame. */)
2294 (frame) 2294 (frame)
2295 Lisp_Object frame; 2295 Lisp_Object frame;
2296{ 2296{
@@ -3124,9 +3124,9 @@ int total_doskeys; /* Total number of elements stored into recent_doskeys */
3124Lisp_Object recent_doskeys; /* A vector, holding the last 100 keystrokes */ 3124Lisp_Object recent_doskeys; /* A vector, holding the last 100 keystrokes */
3125 3125
3126DEFUN ("recent-doskeys", Frecent_doskeys, Srecent_doskeys, 0, 0, 0, 3126DEFUN ("recent-doskeys", Frecent_doskeys, Srecent_doskeys, 0, 0, 0,
3127 "Return vector of last 100 keyboard input values seen in dos_rawgetc.\n\ 3127 doc: /* Return vector of last 100 keyboard input values seen in dos_rawgetc.
3128Each input key receives two values in this vector: first the ASCII code,\n\ 3128Each input key receives two values in this vector: first the ASCII code,
3129and then the scan code.") 3129and then the scan code. */)
3130 () 3130 ()
3131{ 3131{
3132 Lisp_Object *keys = XVECTOR (recent_doskeys)->contents; 3132 Lisp_Object *keys = XVECTOR (recent_doskeys)->contents;
@@ -4336,9 +4336,9 @@ int _rename(const char *old, const char *new)
4336#endif /* __DJGPP__ == 2 && __DJGPP_MINOR__ == 0 */ 4336#endif /* __DJGPP__ == 2 && __DJGPP_MINOR__ == 0 */
4337 4337
4338DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names, 4338DEFUN ("msdos-long-file-names", Fmsdos_long_file_names, Smsdos_long_file_names,
4339 0, 0, 0, 4339 0, 0, 0,
4340 "Return non-nil if long file names are supported on MSDOS.") 4340 doc: /* Return non-nil if long file names are supported on MSDOS. */)
4341 () 4341 ()
4342{ 4342{
4343 return (_USE_LFN ? Qt : Qnil); 4343 return (_USE_LFN ? Qt : Qnil);
4344} 4344}
@@ -4369,11 +4369,11 @@ msdos_downcase_filename (p)
4369 4369
4370DEFUN ("msdos-downcase-filename", Fmsdos_downcase_filename, Smsdos_downcase_filename, 4370DEFUN ("msdos-downcase-filename", Fmsdos_downcase_filename, Smsdos_downcase_filename,
4371 1, 1, 0, 4371 1, 1, 0,
4372 "Convert alphabetic characters in FILENAME to lower case and return that.\n\ 4372 doc: /* Convert alphabetic characters in FILENAME to lower case and return that.
4373When long filenames are supported, doesn't change FILENAME.\n\ 4373When long filenames are supported, doesn't change FILENAME.
4374If FILENAME is not a string, returns nil.\n\ 4374If FILENAME is not a string, returns nil.
4375The argument object is never altered--the value is a copy.") 4375The argument object is never altered--the value is a copy. */)
4376 (filename) 4376 (filename)
4377 Lisp_Object filename; 4377 Lisp_Object filename;
4378{ 4378{
4379 Lisp_Object tem; 4379 Lisp_Object tem;
@@ -5297,13 +5297,13 @@ syms_of_msdos ()
5297 help_echo_pos = -1; 5297 help_echo_pos = -1;
5298 5298
5299 DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path, 5299 DEFVAR_LISP ("x-bitmap-file-path", &Vx_bitmap_file_path,
5300 "List of directories to search for bitmap files for X."); 5300 doc: /* List of directories to search for bitmap files for X. */);
5301 Vx_bitmap_file_path = decode_env_path ((char *) 0, "."); 5301 Vx_bitmap_file_path = decode_env_path ((char *) 0, ".");
5302 5302
5303 DEFVAR_BOOL ("x-stretch-cursor", &x_stretch_cursor_p, 5303 DEFVAR_BOOL ("x-stretch-cursor", &x_stretch_cursor_p,
5304 "*Non-nil means draw block cursor as wide as the glyph under it.\n\ 5304 doc: /* *Non-nil means draw block cursor as wide as the glyph under it.
5305For example, if a block cursor is over a tab, it will be drawn as\n\ 5305For example, if a block cursor is over a tab, it will be drawn as
5306wide as that tab on the display. (No effect on MS-DOS.)"); 5306wide as that tab on the display. (No effect on MS-DOS.) */);
5307 x_stretch_cursor_p = 0; 5307 x_stretch_cursor_p = 0;
5308 5308
5309 /* The following two are from xfns.c: */ 5309 /* The following two are from xfns.c: */
@@ -5315,15 +5315,15 @@ wide as that tab on the display. (No effect on MS-DOS.)");
5315 staticpro (&Qreverse); 5315 staticpro (&Qreverse);
5316 5316
5317 DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph, 5317 DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph,
5318 "*Glyph to display instead of chars not supported by current codepage.\n\ 5318 doc: /* *Glyph to display instead of chars not supported by current codepage.
5319\n\ 5319
5320This variable is used only by MSDOS terminals."); 5320This variable is used only by MSDOS terminals. */);
5321 Vdos_unsupported_char_glyph = '\177'; 5321 Vdos_unsupported_char_glyph = '\177';
5322#endif 5322#endif
5323#ifndef subprocesses 5323#ifndef subprocesses
5324 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, 5324 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes,
5325 "*Non-nil means delete processes immediately when they exit.\n\ 5325 doc: /* *Non-nil means delete processes immediately when they exit.
5326nil means don't delete them until `list-processes' is run."); 5326nil means don't delete them until `list-processes' is run. */);
5327 delete_exited_processes = 0; 5327 delete_exited_processes = 0;
5328#endif 5328#endif
5329 5329
diff --git a/src/w16select.c b/src/w16select.c
index f8a3733deb1..582c5019e6f 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -481,9 +481,9 @@ static char system_error_msg[] =
481 "(Clipboard interface failure; clipboard data not set.)"; 481 "(Clipboard interface failure; clipboard data not set.)";
482 482
483DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0, 483DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_data, 1, 2, 0,
484 "This sets the clipboard data to the given text.") 484 doc: /* This sets the clipboard data to the given text. */)
485 (string, frame) 485 (string, frame)
486 Lisp_Object string, frame; 486 Lisp_Object string, frame;
487{ 487{
488 unsigned ok = 1, put_status = 0; 488 unsigned ok = 1, put_status = 0;
489 int nbytes; 489 int nbytes;
@@ -592,7 +592,7 @@ DEFUN ("w16-set-clipboard-data", Fw16_set_clipboard_data, Sw16_set_clipboard_dat
592} 592}
593 593
594DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0, 594DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_data, 0, 1, 0,
595 "This gets the clipboard data in text format.") 595 doc: /* This gets the clipboard data in text format. */)
596 (frame) 596 (frame)
597 Lisp_Object frame; 597 Lisp_Object frame;
598{ 598{
@@ -691,14 +691,14 @@ DEFUN ("w16-get-clipboard-data", Fw16_get_clipboard_data, Sw16_get_clipboard_dat
691/* Support checking for a clipboard selection. */ 691/* Support checking for a clipboard selection. */
692 692
693DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p, 693DEFUN ("x-selection-exists-p", Fx_selection_exists_p, Sx_selection_exists_p,
694 0, 1, 0, 694 0, 1, 0,
695 "Whether there is an owner for the given X Selection.\n\ 695 doc: /* Whether there is an owner for the given X Selection.
696The arg should be the name of the selection in question, typically one of\n\ 696The arg should be the name of the selection in question, typically one of
697the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.\n\ 697the symbols `PRIMARY', `SECONDARY', or `CLIPBOARD'.
698\(Those are literal upper-case symbol names, since that's what X expects.)\n\ 698\(Those are literal upper-case symbol names, since that's what X expects.)
699For convenience, the symbol nil is the same as `PRIMARY',\n\ 699For convenience, the symbol nil is the same as `PRIMARY',
700and t is the same as `SECONDARY'.") 700and t is the same as `SECONDARY'. */)
701 (selection) 701 (selection)
702 Lisp_Object selection; 702 Lisp_Object selection;
703{ 703{
704 CHECK_SYMBOL (selection); 704 CHECK_SYMBOL (selection);
@@ -741,18 +741,18 @@ syms_of_win16select ()
741 defsubr (&Sx_selection_exists_p); 741 defsubr (&Sx_selection_exists_p);
742 742
743 DEFVAR_LISP ("selection-coding-system", &Vselection_coding_system, 743 DEFVAR_LISP ("selection-coding-system", &Vselection_coding_system,
744 "Coding system for communicating with other X clients.\n\ 744 doc: /* Coding system for communicating with other X clients.
745When sending or receiving text via cut_buffer, selection, and clipboard,\n\ 745When sending or receiving text via cut_buffer, selection, and clipboard,
746the text is encoded or decoded by this coding system.\n\ 746the text is encoded or decoded by this coding system.
747A default value is `iso-latin-1-dos'"); 747A default value is `iso-latin-1-dos'. */);
748 Vselection_coding_system=intern ("iso-latin-1-dos"); 748 Vselection_coding_system=intern ("iso-latin-1-dos");
749 749
750 DEFVAR_LISP ("next-selection-coding-system", &Vnext_selection_coding_system, 750 DEFVAR_LISP ("next-selection-coding-system", &Vnext_selection_coding_system,
751 "Coding system for the next communication with other X clients.\n\ 751 doc: /* Coding system for the next communication with other X clients.
752Usually, `selection-coding-system' is used for communicating with\n\ 752Usually, `selection-coding-system' is used for communicating with
753other X clients. But, if this variable is set, it is used for the\n\ 753other X clients. But, if this variable is set, it is used for the
754next communication only. After the communication, this variable is\n\ 754next communication only. After the communication, this variable is
755set to nil."); 755set to nil. */);
756 Vnext_selection_coding_system = Qnil; 756 Vnext_selection_coding_system = Qnil;
757 757
758 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY); 758 QPRIMARY = intern ("PRIMARY"); staticpro (&QPRIMARY);