diff options
| author | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-08-14 22:58:58 -0500 |
| commit | 82ba818ff456bcd6d56a06226e3f27e98fbb55c3 (patch) | |
| tree | 158cfc17b2f644a10f063cb546752cfaae12c97f /devdocs/elisp/interactive-examples.html | |
| parent | 9278ddd4ea1a8b1a4c1edaa8894516e3f48d245b (diff) | |
| download | dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.tar.gz dotemacs-82ba818ff456bcd6d56a06226e3f27e98fbb55c3.zip | |
removing all downloaded devdocs files
Diffstat (limited to 'devdocs/elisp/interactive-examples.html')
| -rw-r--r-- | devdocs/elisp/interactive-examples.html | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/devdocs/elisp/interactive-examples.html b/devdocs/elisp/interactive-examples.html deleted file mode 100644 index 5aaa03cc..00000000 --- a/devdocs/elisp/interactive-examples.html +++ /dev/null @@ -1,44 +0,0 @@ - <h4 class="subsection">Examples of Using interactive</h4> <p>Here are some examples of <code>interactive</code>: </p> <div class="example"> <pre class="example">(defun foo1 () ; <span class="roman"><code>foo1</code> takes no arguments,</span> - (interactive) ; <span class="roman">just moves forward two words.</span> - (forward-word 2)) - ⇒ foo1 -</pre> - -<pre class="example">(defun foo2 (n) ; <span class="roman"><code>foo2</code> takes one argument,</span> - (interactive "^p") ; <span class="roman">which is the numeric prefix.</span> - ; <span class="roman">under <code>shift-select-mode</code>,</span> - ; <span class="roman">will activate or extend region.</span> - (forward-word (* 2 n))) - ⇒ foo2 -</pre> - -<pre class="example">(defun foo3 (n) ; <span class="roman"><code>foo3</code> takes one argument,</span> - (interactive "nCount:") ; <span class="roman">which is read with the Minibuffer.</span> - (forward-word (* 2 n))) - ⇒ foo3 -</pre> - -<pre class="example">(defun three-b (b1 b2 b3) - "Select three existing buffers. -Put them into three windows, selecting the last one." -</pre> -<pre class="example"> (interactive "bBuffer1:\nbBuffer2:\nbBuffer3:") - (delete-other-windows) - (split-window (selected-window) 8) - (switch-to-buffer b1) - (other-window 1) - (split-window (selected-window) 8) - (switch-to-buffer b2) - (other-window 1) - (switch-to-buffer b3)) - ⇒ three-b -</pre> -<pre class="example">(three-b "*scratch*" "declarations.texi" "*mail*") - ⇒ nil -</pre> -</div><div class="_attribution"> - <p class="_attribution-p"> - Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br> - <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Examples.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Interactive-Examples.html</a> - </p> -</div> |
