summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Távora <joaotavora@gmail.com>2022-10-20 11:42:25 +0100
committerJoão Távora <joaotavora@gmail.com>2022-10-20 11:42:25 +0100
commit0e7361a5ccce084613d54d6ba3954ffca6074817 (patch)
treef0c48c71e3cbba55d3cce345969b886acf988ca2
parent2a9797b422fe8a28bfaab49974ea2be21ae2502e (diff)
downloademacs-feature/eglot-texi-manual.tar.gz
Revert "eglot.texi: Make example more realistic"feature/eglot-texi-manual
This quest for realism ignores the fact that a previous example for a hypothetical language Foo and a language server "fools" already exists. It also undermines the intended generality of the instructions. This reverts commit 16986a9cc42ef4de580456f4acc5feba682ac8b1.
-rw-r--r--doc/misc/eglot.texi12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi
index a05e7fd7ee8..c1de1e818dc 100644
--- a/doc/misc/eglot.texi
+++ b/doc/misc/eglot.texi
@@ -525,13 +525,13 @@ directory, which is usually the top-level directory of the project's
directory hierarchy. This ensures the language server has the same
comprehensive view of the project's files as you do.
-For example, if you visit the file @file{~/projects/fooey/lib/x.c}
-and @file{x.c} belongs to a project rooted at
+For example, if you visit the file @file{~/projects/fooey/lib/x.foo}
+and @file{x.foo} belongs to a project rooted at
@file{~/projects/fooey} (perhaps because a @file{.git} directory
exists there), then @kbd{M-x eglot} causes the server program to start
with that root as the current working directory. The server then will
-analyze not only the file @file{lib/x.c} you visited, but likely
-also all the other @file{*.c} files under the
+analyze not only the file @file{lib/x.foo} you visited, but likely
+also all the other @file{*.foo} files under the
@file{~/projects/fooey} directory.
In some cases, additional information specific to a given project will
@@ -594,8 +594,8 @@ When you visit a file under the same project, whether an existing or a
new file, its buffer is automatically added to the set of buffers
managed by Eglot, and the server which supports the buffer's
major-mode is notified about that. Thus, visiting a non-existent file
-@file{/home/joe/projects/fooey/lib/y.c} in the above example will
-notify the server of the @file{*.c} files' language that a new file
+@file{/home/joe/projects/fooey/lib/y.foo} in the above example will
+notify the server of the @file{*.foo} files' language that a new file
was added to the project, even before the file appears on disk. The
special Eglot minor mode is also turned on automatically in the buffer
visiting the file.