aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2018-05-21 18:01:57 +0300
committerEli Zaretskii2018-05-21 18:01:57 +0300
commitb1b96d7cd9433b6424ad12019f86c0eea29ab621 (patch)
tree5335be08c07627648b0b0639c227d3087e10eafa /doc
parentb239a096f1a4f8a05db859019a048190ea2f94a0 (diff)
downloademacs-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.texi44
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
822opportunity to get acquainted with Emacs as a Lisp programming 822opportunity to get acquainted with Emacs as a Lisp programming
823environment. GNU Emacs supports programming and provides tools that 823environment. GNU Emacs supports programming and provides tools that
824you will want to become comfortable using, such as @kbd{M-.} (the key 824you will want to become comfortable using, such as @kbd{M-.} (the key
825which invokes the @code{find-tag} command). You will also learn about 825which invokes the @code{xref-find-definitions} command). You will
826buffers and other objects that are part of the environment. 826also learn about buffers and other objects that are part of the
827Learning about these features of Emacs is like learning new routes 827environment. Learning about these features of Emacs is like learning
828around your home town. 828new routes around your home town.
829 829
830@ignore 830@ignore
831In addition, I have written several programs as extended examples. 831In 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.
5357Print the documentation for a function or variable. 5357Print the documentation for a function or variable.
5358Conventionally bound to @kbd{C-h f} and @kbd{C-h v}. 5358Conventionally bound to @kbd{C-h f} and @kbd{C-h v}.
5359 5359
5360@item find-tag 5360@item xref-find-definitions
5361Find the file containing the source for a function or variable and 5361Find the file containing the source for a function or variable and
5362switch buffers to it, positioning point at the beginning of the item. 5362switch buffers to it, positioning point at the beginning of the item.
5363Conventionally bound to @kbd{M-.} (that's a period following the 5363Conventionally 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
5411message telling you whether a buffer exists. 5411message telling you whether a buffer exists.
5412 5412
5413@item 5413@item
5414Using @code{find-tag}, find the source for the @code{copy-to-buffer} 5414Using @code{xref-find-definitions}, find the source for the
5415function. 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
14756permits you to specify optional wildcards to visit multiple files; that 14756permits you to specify optional wildcards to visit multiple files;
14757makes the definition more complex and we will not discuss it here, 14757that makes the definition more complex and we will not discuss it
14758since it is not relevant. You can see its source using either 14758here, 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
14762In Emacs 22 14763In Emacs 22
@@ -18543,8 +18544,8 @@ introduction, it comes as a Texinfo source file, so you can read it
18543on your computer and as a typeset, printed book.) 18544on your computer and as a typeset, printed book.)
18544 18545
18545Go to the other built-in help that is part of GNU Emacs: the built-in 18546Go to the other built-in help that is part of GNU Emacs: the built-in
18546documentation for all functions and variables, and @code{find-tag}, 18547documentation for all functions and variables, and
18547the program that takes you to sources. 18548@code{xref-find-definitions}, the program that takes you to sources.
18548 18549
18549Here is an example of how I explore the sources. Because of its name, 18550Here 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.
18580You can put point over the name of the library and press the @key{RET} key, 18581You can put point over the name of the library and press the @key{RET} key,
18581which in this situation is bound to @code{help-follow}, and be taken 18582which in this situation is bound to @code{help-follow}, and be taken
18582directly to the source, in the same way as @kbd{M-.} 18583directly to the source, in the same way as @kbd{M-.}
18583(@code{find-tag}). 18584(@code{xref-find-definitions}).
18584 18585
18585The definition for @code{describe-function} illustrates how to 18586The definition for @code{describe-function} illustrates how to
18586customize the @code{interactive} expression without using the standard 18587customize 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;
18590it is a built-in function. @code{help-follow} takes you to its 18591it is a built-in function. @code{help-follow} takes you to its
18591source as does @code{find-tag}, when properly set up.) 18592source as does @code{xref-find-definitions}, when properly set up.)
18592 18593
18593You can look at a function's source using @code{find-tag}, which is 18594You can look at a function's source using
18594bound to @kbd{M-.} Finally, you can find out what the Reference 18595@code{xref-find-definitions}, which is bound to @kbd{M-.} Finally,
18595Manual has to say by visiting the manual in Info, and typing @kbd{i} 18596you 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 18597manual in Info, and typing @kbd{i} (@code{Info-index}) and the name of
18597function in the index to a printed copy of the manual. 18598the function, or by looking up the function in the index to a printed
18599copy of the manual.
18598 18600
18599Similarly, you can find out what is meant by 18601Similarly, you can find out what is meant by
18600@code{insert-and-inherit}. 18602@code{insert-and-inherit}.