diff options
| author | Eli Zaretskii | 2018-05-24 20:37:15 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-05-24 20:37:15 +0300 |
| commit | 4bb2741b7e28c0899af272f85a17e4f4399646de (patch) | |
| tree | d2e8d036fe1727603f3060535f8c992a54e77d47 /doc | |
| parent | c57c226839d3922c34ce488024bc48f08ba36a83 (diff) | |
| download | emacs-4bb2741b7e28c0899af272f85a17e4f4399646de.tar.gz emacs-4bb2741b7e28c0899af272f85a17e4f4399646de.zip | |
More fixes of Intro to Emacs Lisp
* doc/lispintro/emacs-lisp-intro.texi (Finding More): Tell the
reader how to invoke 'M-.' without a tags table. Add a
cross-reference to the Emacs manual for when a tags table does
need to be created.
(append save-excursion): Rephrase a confusing sentence.
(Bug#31578)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 120ddfcade6..440a38fb83b 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -4626,16 +4626,25 @@ file, you can use the @code{xref-find-definitions} function to jump to | |||
| 4626 | it. @code{xref-find-definitions} works with a wide variety of | 4626 | it. @code{xref-find-definitions} works with a wide variety of |
| 4627 | languages, not just Lisp, and C, and it works with non-programming | 4627 | languages, not just Lisp, and C, and it works with non-programming |
| 4628 | text as well. For example, @code{xref-find-definitions} will jump to | 4628 | text as well. For example, @code{xref-find-definitions} will jump to |
| 4629 | the various nodes in the Texinfo source file of this document. | 4629 | the various nodes in the Texinfo source file of this document |
| 4630 | (provided that you've run the @command{etags} utility to record all | ||
| 4631 | the nodes in the manuals that come with Emacs; @pxref{Create tags | ||
| 4632 | Table,,, emacs, The GNU Emacs Manual}). | ||
| 4630 | 4633 | ||
| 4631 | To use the @code{xref-find-definitions} command, type @kbd{M-.} | 4634 | To use the @code{xref-find-definitions} command, type @kbd{M-.} |
| 4632 | (i.e., press the period key while holding down the @key{META} key, or | 4635 | (i.e., press the period key while holding down the @key{META} key, or |
| 4633 | else type the @key{ESC} key and then type the period key), and then, | 4636 | else type the @key{ESC} key and then type the period key), and then, |
| 4634 | at the prompt, type in the name of the function whose source code you | 4637 | at the prompt, type in the name of the function whose source code you |
| 4635 | want to see, such as @code{mark-whole-buffer}, and then type | 4638 | want to see, such as @code{mark-whole-buffer}, and then type |
| 4636 | @key{RET}. Emacs will switch buffers and display the source code for | 4639 | @key{RET}. (If the command doesn't prompt, invoke it with an |
| 4637 | the function on your screen. To switch back to your current buffer, | 4640 | argument: @kbd{C-u M-.}; @pxref{Interactive Options}.) Emacs will |
| 4638 | type @kbd{C-x b @key{RET}}. (On some keyboards, the @key{META} key is | 4641 | switch buffers and display the source code for the function on your |
| 4642 | screen@footnote{ | ||
| 4643 | If instead of showing the source code for a Lisp function, Emacs asks | ||
| 4644 | you which tags table to visit, invoke @kbd{M-.} from a buffer whose | ||
| 4645 | major mode is Emacs Lisp or Lisp Interaction. | ||
| 4646 | }. To switch back to your current buffer, type @kbd{M-,} or | ||
| 4647 | @kbd{C-x b @key{RET}}. (On some keyboards, the @key{META} key is | ||
| 4639 | labeled @key{ALT}.) | 4648 | labeled @key{ALT}.) |
| 4640 | 4649 | ||
| 4641 | @cindex Library, as term for ``file'' | 4650 | @cindex Library, as term for ``file'' |
| @@ -5307,8 +5316,8 @@ in GNU Emacs 22 | |||
| 5307 | 5316 | ||
| 5308 | The @code{append-to-buffer} function definition inserts text from the | 5317 | The @code{append-to-buffer} function definition inserts text from the |
| 5309 | buffer in which you are currently to a named buffer. It happens that | 5318 | buffer in which you are currently to a named buffer. It happens that |
| 5310 | @code{insert-buffer-substring} copies text from another buffer to the | 5319 | @code{insert-buffer-substring} does just the reverse---it copies text |
| 5311 | current buffer, just the reverse---that is why the | 5320 | from another buffer to the current buffer---that is why the |
| 5312 | @code{append-to-buffer} definition starts out with a @code{let} that | 5321 | @code{append-to-buffer} definition starts out with a @code{let} that |
| 5313 | binds the local symbol @code{oldbuf} to the value returned by | 5322 | binds the local symbol @code{oldbuf} to the value returned by |
| 5314 | @code{current-buffer}. | 5323 | @code{current-buffer}. |