all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#72634: Documentation correction in eglot.texi
@ 2024-08-15  4:09 david edmonds
  2024-08-17 10:08 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: david edmonds @ 2024-08-15  4:09 UTC (permalink / raw)
  To: 72634

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

eglot-managed-p is a function, not a variable.

The documentation states that to check whether a buffer is managed by
eglot the user should, for example:  (if eglot-managed-p ...). But in
fact, what is required is: (if (eglot-managed-p) ...).
---
 doc/misc/eglot.texi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/misc/eglot.texi b/doc/misc/eglot.texi
index ba7aeb448e5..fb5b618bd84 100644
--- a/doc/misc/eglot.texi
+++ b/doc/misc/eglot.texi
@@ -600,7 +600,7 @@ user, but automatically, as the result of starting an
Eglot session
 for the buffer.  However, this minor mode provides a hook variable
 @code{eglot-managed-mode-hook} that can be used to customize the Eglot
 management of the buffer.  This hook is run both when the minor mode
-is turned on and when it's turned off; use the variable
+is turned on and when it's turned off; use the function
 @code{eglot-managed-p} to tell if current buffer is still being
 managed or not.  When Eglot stops managing the buffer, this minor mode
 is turned off, and all the settings that Eglot changed are restored to
-- 
2.46.0

[-- Attachment #2: Type: text/html, Size: 1223 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#72634: Documentation correction in eglot.texi
  2024-08-15  4:09 bug#72634: Documentation correction in eglot.texi david edmonds
@ 2024-08-17 10:08 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2024-08-17 10:08 UTC (permalink / raw)
  To: david edmonds; +Cc: 72634-done

> From: david edmonds <edmonds.david.a@gmail.com>
> Date: Thu, 15 Aug 2024 14:09:59 +1000
> 
> eglot-managed-p is a function, not a variable.
> 
> The documentation states that to check whether a buffer is managed by
> eglot the user should, for example:  (if eglot-managed-p ...). But in
> fact, what is required is: (if (eglot-managed-p) ...).

Thanks, installed on the emacs-30 branch, and closing the bug.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-08-17 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-15  4:09 bug#72634: Documentation correction in eglot.texi david edmonds
2024-08-17 10:08 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.