diff options
| author | Eli Zaretskii | 2018-05-21 18:01:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-05-21 18:01:57 +0300 |
| commit | b1b96d7cd9433b6424ad12019f86c0eea29ab621 (patch) | |
| tree | 5335be08c07627648b0b0639c227d3087e10eafa /doc | |
| parent | b239a096f1a4f8a05db859019a048190ea2f94a0 (diff) | |
| download | emacs-b1b96d7cd9433b6424ad12019f86c0eea29ab621.tar.gz emacs-b1b96d7cd9433b6424ad12019f86c0eea29ab621.zip | |
Update binding of 'M-.' in Intro to Emacs Lisp
* doc/lispintro/emacs-lisp-intro.texi (On Reading this Text)
(Finding More, Buffer Related Review, Buffer Exercises)
(Find a File, Conclusion): 'M-.' is now bound to
'xref-find-definitions'. (Bug#31542)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index 1a3081ca9f0..918e46205fb 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -822,10 +822,10 @@ programming language, the examples and guided tours will give you an | |||
| 822 | opportunity to get acquainted with Emacs as a Lisp programming | 822 | opportunity to get acquainted with Emacs as a Lisp programming |
| 823 | environment. GNU Emacs supports programming and provides tools that | 823 | environment. GNU Emacs supports programming and provides tools that |
| 824 | you will want to become comfortable using, such as @kbd{M-.} (the key | 824 | you will want to become comfortable using, such as @kbd{M-.} (the key |
| 825 | which invokes the @code{find-tag} command). You will also learn about | 825 | which invokes the @code{xref-find-definitions} command). You will |
| 826 | buffers and other objects that are part of the environment. | 826 | also learn about buffers and other objects that are part of the |
| 827 | Learning about these features of Emacs is like learning new routes | 827 | environment. Learning about these features of Emacs is like learning |
| 828 | around your home town. | 828 | new routes around your home town. |
| 829 | 829 | ||
| 830 | @ignore | 830 | @ignore |
| 831 | In addition, I have written several programs as extended examples. | 831 | In addition, I have written several programs as extended examples. |
| @@ -5357,7 +5357,7 @@ Here is a brief summary of the various functions discussed in this chapter. | |||
| 5357 | Print the documentation for a function or variable. | 5357 | Print the documentation for a function or variable. |
| 5358 | Conventionally bound to @kbd{C-h f} and @kbd{C-h v}. | 5358 | Conventionally bound to @kbd{C-h f} and @kbd{C-h v}. |
| 5359 | 5359 | ||
| 5360 | @item find-tag | 5360 | @item xref-find-definitions |
| 5361 | Find the file containing the source for a function or variable and | 5361 | Find the file containing the source for a function or variable and |
| 5362 | switch buffers to it, positioning point at the beginning of the item. | 5362 | switch buffers to it, positioning point at the beginning of the item. |
| 5363 | Conventionally bound to @kbd{M-.} (that's a period following the | 5363 | Conventionally bound to @kbd{M-.} (that's a period following the |
| @@ -5411,8 +5411,8 @@ Use @code{if} and @code{get-buffer} to write a function that prints a | |||
| 5411 | message telling you whether a buffer exists. | 5411 | message telling you whether a buffer exists. |
| 5412 | 5412 | ||
| 5413 | @item | 5413 | @item |
| 5414 | Using @code{find-tag}, find the source for the @code{copy-to-buffer} | 5414 | Using @code{xref-find-definitions}, find the source for the |
| 5415 | function. | 5415 | @code{copy-to-buffer} function. |
| 5416 | @end itemize | 5416 | @end itemize |
| 5417 | 5417 | ||
| 5418 | @node More Complex | 5418 | @node More Complex |
| @@ -14753,10 +14753,11 @@ creating one if none already exists." | |||
| 14753 | 14753 | ||
| 14754 | @noindent | 14754 | @noindent |
| 14755 | (The most recent version of the @code{find-file} function definition | 14755 | (The most recent version of the @code{find-file} function definition |
| 14756 | permits you to specify optional wildcards to visit multiple files; that | 14756 | permits you to specify optional wildcards to visit multiple files; |
| 14757 | makes the definition more complex and we will not discuss it here, | 14757 | that makes the definition more complex and we will not discuss it |
| 14758 | since it is not relevant. You can see its source using either | 14758 | here, since it is not relevant. You can see its source using either |
| 14759 | @kbd{M-.} (@code{find-tag}) or @kbd{C-h f} (@code{describe-function}).) | 14759 | @kbd{M-.} (@code{xref-find-definitions}) or @kbd{C-h f} |
| 14760 | (@code{describe-function}).) | ||
| 14760 | 14761 | ||
| 14761 | @ignore | 14762 | @ignore |
| 14762 | In Emacs 22 | 14763 | In Emacs 22 |
| @@ -18543,8 +18544,8 @@ introduction, it comes as a Texinfo source file, so you can read it | |||
| 18543 | on your computer and as a typeset, printed book.) | 18544 | on your computer and as a typeset, printed book.) |
| 18544 | 18545 | ||
| 18545 | Go to the other built-in help that is part of GNU Emacs: the built-in | 18546 | Go to the other built-in help that is part of GNU Emacs: the built-in |
| 18546 | documentation for all functions and variables, and @code{find-tag}, | 18547 | documentation for all functions and variables, and |
| 18547 | the program that takes you to sources. | 18548 | @code{xref-find-definitions}, the program that takes you to sources. |
| 18548 | 18549 | ||
| 18549 | Here is an example of how I explore the sources. Because of its name, | 18550 | Here is an example of how I explore the sources. Because of its name, |
| 18550 | @file{simple.el} is the file I looked at first, a long time ago. As | 18551 | @file{simple.el} is the file I looked at first, a long time ago. As |
| @@ -18580,7 +18581,7 @@ contains the name of the library containing the function's source. | |||
| 18580 | You can put point over the name of the library and press the @key{RET} key, | 18581 | You can put point over the name of the library and press the @key{RET} key, |
| 18581 | which in this situation is bound to @code{help-follow}, and be taken | 18582 | which in this situation is bound to @code{help-follow}, and be taken |
| 18582 | directly to the source, in the same way as @kbd{M-.} | 18583 | directly to the source, in the same way as @kbd{M-.} |
| 18583 | (@code{find-tag}). | 18584 | (@code{xref-find-definitions}). |
| 18584 | 18585 | ||
| 18585 | The definition for @code{describe-function} illustrates how to | 18586 | The definition for @code{describe-function} illustrates how to |
| 18586 | customize the @code{interactive} expression without using the standard | 18587 | customize the @code{interactive} expression without using the standard |
| @@ -18588,13 +18589,14 @@ character codes; and it shows how to create a temporary buffer. | |||
| 18588 | 18589 | ||
| 18589 | (The @code{indent-to} function is written in C rather than Emacs Lisp; | 18590 | (The @code{indent-to} function is written in C rather than Emacs Lisp; |
| 18590 | it is a built-in function. @code{help-follow} takes you to its | 18591 | it is a built-in function. @code{help-follow} takes you to its |
| 18591 | source as does @code{find-tag}, when properly set up.) | 18592 | source as does @code{xref-find-definitions}, when properly set up.) |
| 18592 | 18593 | ||
| 18593 | You can look at a function's source using @code{find-tag}, which is | 18594 | You can look at a function's source using |
| 18594 | bound to @kbd{M-.} Finally, you can find out what the Reference | 18595 | @code{xref-find-definitions}, which is bound to @kbd{M-.} Finally, |
| 18595 | Manual has to say by visiting the manual in Info, and typing @kbd{i} | 18596 | you can find out what the Reference Manual has to say by visiting the |
| 18596 | (@code{Info-index}) and the name of the function, or by looking up the | 18597 | manual in Info, and typing @kbd{i} (@code{Info-index}) and the name of |
| 18597 | function in the index to a printed copy of the manual. | 18598 | the function, or by looking up the function in the index to a printed |
| 18599 | copy of the manual. | ||
| 18598 | 18600 | ||
| 18599 | Similarly, you can find out what is meant by | 18601 | Similarly, you can find out what is meant by |
| 18600 | @code{insert-and-inherit}. | 18602 | @code{insert-and-inherit}. |