diff options
| author | Eli Zaretskii | 2023-07-27 09:37:03 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2023-07-27 09:37:03 +0300 |
| commit | e650a14f64b9ebea69615c19ca4466c14af35857 (patch) | |
| tree | 68f2fe3b3ba066e35e1579e43d2bfdeaa9abe3cc | |
| parent | 27944247d161f0ed65bbb34959c4493f7984987a (diff) | |
| download | emacs-e650a14f64b9ebea69615c19ca4466c14af35857.tar.gz emacs-e650a14f64b9ebea69615c19ca4466c14af35857.zip | |
; Clarify documentation of 'server-after-make-frame-hook'
* doc/lispref/frames.texi (Creating Frames):
* lisp/server.el (server-after-make-frame-hook): Clarify
documentation of 'server-after-make-frame-hook'. (Bug#64873)
| -rw-r--r-- | doc/lispref/frames.texi | 10 | ||||
| -rw-r--r-- | lisp/server.el | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 5a2d9f29295..368def90d85 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -187,9 +187,13 @@ selected frame. | |||
| 187 | @end defvar | 187 | @end defvar |
| 188 | 188 | ||
| 189 | @defopt server-after-make-frame-hook | 189 | @defopt server-after-make-frame-hook |
| 190 | A normal hook run when the Emacs server creates a client frame. When | 190 | A normal hook run when the Emacs server starts using a client frame. |
| 191 | this hook is called, the created frame is the selected one. | 191 | When this hook is called, the client frame is the selected one. Note |
| 192 | @xref{Emacs Server,,, emacs, The GNU Emacs Manual}. | 192 | that, depending on how @command{emacsclient} was invoked |
| 193 | (@pxref{Invoking emacsclient,,, emacs, The GNU Emacs Manual}), this | ||
| 194 | client frame could be a new frame created for the client, or it could | ||
| 195 | be an existing frame that the server reused for handling the client | ||
| 196 | commands. @xref{Emacs Server,,, emacs, The GNU Emacs Manual}. | ||
| 193 | @end defopt | 197 | @end defopt |
| 194 | 198 | ||
| 195 | 199 | ||
diff --git a/lisp/server.el b/lisp/server.el index c3325e5a24c..ba7e02d2555 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -182,8 +182,10 @@ space (this means characters from ! to ~; or from code 33 to | |||
| 182 | :type 'hook) | 182 | :type 'hook) |
| 183 | 183 | ||
| 184 | (defcustom server-after-make-frame-hook nil | 184 | (defcustom server-after-make-frame-hook nil |
| 185 | "Hook run when the Emacs server creates a client frame. | 185 | "Hook run when the Emacs server starts using a client frame. |
| 186 | The created frame is selected when the hook is called." | 186 | The client frame is selected when the hook is called. |
| 187 | The client frame could be a newly-created frame, or an | ||
| 188 | existing frame reused for this purpose." | ||
| 187 | :type 'hook | 189 | :type 'hook |
| 188 | :version "27.1") | 190 | :version "27.1") |
| 189 | 191 | ||