diff options
| author | Paul Eggert | 2018-02-12 12:52:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-02-12 12:57:59 -0800 |
| commit | 3a718ffca097b35218c3e041a94adff937f3052f (patch) | |
| tree | eafff7d03915adfc1a6c8258f35e450d0ed4754c | |
| parent | 99cf1bb011e9a0848e0e1988c2441c472f8d9980 (diff) | |
| download | emacs-3a718ffca097b35218c3e041a94adff937f3052f.tar.gz emacs-3a718ffca097b35218c3e041a94adff937f3052f.zip | |
Finish renaming to internal--daemon-sockname
* doc/lispref/processes.texi (Misc Network): Omit discussion of
internal--daemon-sockname, as non-Emacs code shouldn't rely on it.
* src/process.c (syms_of_process): Rename internal-daemon-sockname
to internal--daemon-sockname. All uses changed.
| -rw-r--r-- | doc/lispref/processes.texi | 17 | ||||
| -rw-r--r-- | lisp/server.el | 10 | ||||
| -rw-r--r-- | src/process.c | 6 |
3 files changed, 11 insertions, 22 deletions
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index 07317dd0ddc..af177e053cc 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -2862,9 +2862,9 @@ non-@code{nil} if that particular network option is supported by | |||
| 2862 | @node Misc Network | 2862 | @node Misc Network |
| 2863 | @section Misc Network Facilities | 2863 | @section Misc Network Facilities |
| 2864 | 2864 | ||
| 2865 | These additional functions and variables are useful for creating and | 2865 | These additional functions are useful for creating and operating |
| 2866 | operating on network connections. Note that they are supported only | 2866 | on network connections. Note that they are supported only on some |
| 2867 | on some systems. | 2867 | systems. |
| 2868 | 2868 | ||
| 2869 | @defun network-interface-list | 2869 | @defun network-interface-list |
| 2870 | This function returns a list describing the network interfaces | 2870 | This function returns a list describing the network interfaces |
| @@ -2913,17 +2913,6 @@ If the vector does not include the port number, @var{p}, or if | |||
| 2913 | @code{:@var{p}} suffix. | 2913 | @code{:@var{p}} suffix. |
| 2914 | @end defun | 2914 | @end defun |
| 2915 | 2915 | ||
| 2916 | @defvar internal--daemon-sockname | ||
| 2917 | This variable is set to the full path of the socket that has been | ||
| 2918 | passed to Emacs during socket activation. This is then used to update | ||
| 2919 | the @code{server-name} and @code{server-socket-dir} variables to | ||
| 2920 | reflect the name and path of the socket that was used to launch the | ||
| 2921 | Emacs daemon process. | ||
| 2922 | |||
| 2923 | If Emacs wasn't started with socket activation, the value of this | ||
| 2924 | variable is @code{nil}. | ||
| 2925 | @end defvar | ||
| 2926 | |||
| 2927 | @node Serial Ports | 2916 | @node Serial Ports |
| 2928 | @section Communicating with Serial Ports | 2917 | @section Communicating with Serial Ports |
| 2929 | @cindex @file{/dev/tty} | 2918 | @cindex @file{/dev/tty} |
diff --git a/lisp/server.el b/lisp/server.el index 744568a77da..d3933883cf7 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -258,8 +258,8 @@ prevents multiple initializations when an external socket has | |||
| 258 | been consumed.") | 258 | been consumed.") |
| 259 | 259 | ||
| 260 | (defcustom server-name | 260 | (defcustom server-name |
| 261 | (if internal-daemon-sockname | 261 | (if internal--daemon-sockname |
| 262 | (file-name-nondirectory internal-daemon-sockname) | 262 | (file-name-nondirectory internal--daemon-sockname) |
| 263 | "server") | 263 | "server") |
| 264 | "The name of the Emacs server, if this Emacs process creates one. | 264 | "The name of the Emacs server, if this Emacs process creates one. |
| 265 | The command `server-start' makes use of this. It should not be | 265 | The command `server-start' makes use of this. It should not be |
| @@ -271,8 +271,8 @@ changed while a server is running." | |||
| 271 | ;; We do not use `temporary-file-directory' here, because emacsclient | 271 | ;; We do not use `temporary-file-directory' here, because emacsclient |
| 272 | ;; does not read the init file. | 272 | ;; does not read the init file. |
| 273 | (defvar server-socket-dir | 273 | (defvar server-socket-dir |
| 274 | (if internal-daemon-sockname | 274 | (if internal--daemon-sockname |
| 275 | (file-name-directory internal-daemon-sockname) | 275 | (file-name-directory internal--daemon-sockname) |
| 276 | (and (featurep 'make-network-process '(:family local)) | 276 | (and (featurep 'make-network-process '(:family local)) |
| 277 | (format "%s/emacs%d" (or (getenv "TMPDIR") "/tmp") (user-uid)))) | 277 | (format "%s/emacs%d" (or (getenv "TMPDIR") "/tmp") (user-uid)))) |
| 278 | "The directory in which to place the server socket. | 278 | "The directory in which to place the server socket. |
| @@ -631,7 +631,7 @@ To force-start a server, do \\[server-force-delete] and then | |||
| 631 | ;; Check to see if an uninitialized external socket has been | 631 | ;; Check to see if an uninitialized external socket has been |
| 632 | ;; passed in, if that is the case, skip checking | 632 | ;; passed in, if that is the case, skip checking |
| 633 | ;; `server-running-p' as this will return the wrong result. | 633 | ;; `server-running-p' as this will return the wrong result. |
| 634 | (if (and internal-daemon-sockname | 634 | (if (and internal--daemon-sockname |
| 635 | (not server--external-socket-initialized)) | 635 | (not server--external-socket-initialized)) |
| 636 | (setq server--external-socket-initialized t) | 636 | (setq server--external-socket-initialized t) |
| 637 | ;; Delete the socket files made by previous server invocations. | 637 | ;; Delete the socket files made by previous server invocations. |
diff --git a/src/process.c b/src/process.c index fe55a482f59..2ec10b12ecc 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -8023,7 +8023,7 @@ init_process_emacs (int sockfd) | |||
| 8023 | sockname = conv_sockaddr_to_lisp (&sa.sa, salen); | 8023 | sockname = conv_sockaddr_to_lisp (&sa.sa, salen); |
| 8024 | } | 8024 | } |
| 8025 | # endif | 8025 | # endif |
| 8026 | Vinternal_daemon_sockname = sockname; | 8026 | Vinternal__daemon_sockname = sockname; |
| 8027 | 8027 | ||
| 8028 | max_desc = -1; | 8028 | max_desc = -1; |
| 8029 | memset (fd_callback_info, 0, sizeof (fd_callback_info)); | 8029 | memset (fd_callback_info, 0, sizeof (fd_callback_info)); |
| @@ -8217,9 +8217,9 @@ These functions are called in the order of the list, until one of them | |||
| 8217 | returns non-`nil'. */); | 8217 | returns non-`nil'. */); |
| 8218 | Vinterrupt_process_functions = list1 (Qinternal_default_interrupt_process); | 8218 | Vinterrupt_process_functions = list1 (Qinternal_default_interrupt_process); |
| 8219 | 8219 | ||
| 8220 | DEFVAR_LISP ("internal-daemon-sockname", Vinternal_daemon_sockname, | 8220 | DEFVAR_LISP ("internal--daemon-sockname", Vinternal__daemon_sockname, |
| 8221 | doc: /* Name of external socket passed to Emacs, or nil if none. */); | 8221 | doc: /* Name of external socket passed to Emacs, or nil if none. */); |
| 8222 | Vinternal_daemon_sockname = Qnil; | 8222 | Vinternal__daemon_sockname = Qnil; |
| 8223 | 8223 | ||
| 8224 | DEFSYM (Qinternal_default_interrupt_process, | 8224 | DEFSYM (Qinternal_default_interrupt_process, |
| 8225 | "internal-default-interrupt-process"); | 8225 | "internal-default-interrupt-process"); |