diff options
| author | Glenn Morris | 2018-02-09 11:12:48 -0800 |
|---|---|---|
| committer | Glenn Morris | 2018-02-09 11:12:48 -0800 |
| commit | 875cb835f00260d58c536b3a3f7c0343fd5f28dc (patch) | |
| tree | 4f59af87328e8d4d69667b3b35c42f795e7d3d29 /src | |
| parent | 05e8b4392be7fb368dcf4e4a19f75f94b323028d (diff) | |
| parent | 0276743672672ce0caec7861741293a4ae11cb52 (diff) | |
| download | emacs-875cb835f00260d58c536b3a3f7c0343fd5f28dc.tar.gz emacs-875cb835f00260d58c536b3a3f7c0343fd5f28dc.zip | |
Merge from origin/emacs-26
0276743 (origin/emacs-26) Doc string fix in latin-alt.el
c9269af Minor improvements in package.texi
898a3e4 Minor improvement in Emacs user manual
8f7d718 * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.
989d0af Improve documentation of mini-window resizing
923e415 More changes in the Emacs manual
565adf2 Clarify that text-quoting-style doesn't affect *Info* (Bug#24...
2dd273b Mention that shell quoting of % on w32 may fail (Bug#19350)
19fa6d5 Fix --no-build-details for w32 and macOS
979944c * doc/lispref/anti.texi (Antinews): Add some more antinews.
c2727e3 Fix crashes when run with --no-build-details
dc08490 More changes for the manual
04c5bd5 Doc fixes for process functions (Bug#30349)
e209034 Fix shr and CSS 4 color maps
5fe8192 Yet another round of improvements in the manual
Conflicts:
doc/emacs/files.texi
test/lisp/subr-tests.el
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 4 | ||||
| -rw-r--r-- | src/process.c | 18 | ||||
| -rw-r--r-- | src/w32term.c | 13 | ||||
| -rw-r--r-- | src/xrdb.c | 19 | ||||
| -rw-r--r-- | src/xterm.c | 16 |
5 files changed, 41 insertions, 29 deletions
| @@ -1023,8 +1023,8 @@ syms_of_doc (void) | |||
| 1023 | doc: /* Style to use for single quotes in help and messages. | 1023 | doc: /* Style to use for single quotes in help and messages. |
| 1024 | Its value should be a symbol. It works by substituting certain single | 1024 | Its value should be a symbol. It works by substituting certain single |
| 1025 | quotes for grave accent and apostrophe. This is done in help output | 1025 | quotes for grave accent and apostrophe. This is done in help output |
| 1026 | and in functions like `message' and `format-message'. It is not done | 1026 | \(but not for display of Info manuals) and in functions like `message' |
| 1027 | in `format'. | 1027 | and `format-message'. It is not done in `format'. |
| 1028 | 1028 | ||
| 1029 | `curve' means quote with curved single quotes ‘like this’. | 1029 | `curve' means quote with curved single quotes ‘like this’. |
| 1030 | `straight' means quote with straight apostrophes \\='like this\\='. | 1030 | `straight' means quote with straight apostrophes \\='like this\\='. |
diff --git a/src/process.c b/src/process.c index ff3edbb11a0..2cc2c86df39 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1615,9 +1615,8 @@ to make it unique. | |||
| 1615 | 1615 | ||
| 1616 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate | 1616 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate |
| 1617 | with the process. Process output goes at end of that buffer, unless | 1617 | with the process. Process output goes at end of that buffer, unless |
| 1618 | you specify an output stream or filter function to handle the output. | 1618 | you specify a filter function to handle the output. BUFFER may be |
| 1619 | BUFFER may be also nil, meaning that this process is not associated | 1619 | also nil, meaning that this process is not associated with any buffer. |
| 1620 | with any buffer. | ||
| 1621 | 1620 | ||
| 1622 | :command COMMAND -- COMMAND is a list starting with the program file | 1621 | :command COMMAND -- COMMAND is a list starting with the program file |
| 1623 | name, followed by strings to give to the program as arguments. | 1622 | name, followed by strings to give to the program as arguments. |
| @@ -2307,8 +2306,8 @@ arguments are defined: | |||
| 2307 | 2306 | ||
| 2308 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate | 2307 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate |
| 2309 | with the process. Process output goes at the end of that buffer, | 2308 | with the process. Process output goes at the end of that buffer, |
| 2310 | unless you specify an output stream or filter function to handle the | 2309 | unless you specify a filter function to handle the output. If BUFFER |
| 2311 | output. If BUFFER is not given, the value of NAME is used. | 2310 | is not given, the value of NAME is used. |
| 2312 | 2311 | ||
| 2313 | :coding CODING -- If CODING is a symbol, it specifies the coding | 2312 | :coding CODING -- If CODING is a symbol, it specifies the coding |
| 2314 | system used for both reading and writing for this process. If CODING | 2313 | system used for both reading and writing for this process. If CODING |
| @@ -3022,8 +3021,8 @@ the value of PORT is used. | |||
| 3022 | 3021 | ||
| 3023 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate | 3022 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate |
| 3024 | with the process. Process output goes at the end of that buffer, | 3023 | with the process. Process output goes at the end of that buffer, |
| 3025 | unless you specify an output stream or filter function to handle the | 3024 | unless you specify a filter function to handle the output. If BUFFER |
| 3026 | output. If BUFFER is not given, the value of NAME is used. | 3025 | is not given, the value of NAME is used. |
| 3027 | 3026 | ||
| 3028 | :coding CODING -- If CODING is a symbol, it specifies the coding | 3027 | :coding CODING -- If CODING is a symbol, it specifies the coding |
| 3029 | system used for both reading and writing for this process. If CODING | 3028 | system used for both reading and writing for this process. If CODING |
| @@ -3685,9 +3684,8 @@ to make it unique. | |||
| 3685 | 3684 | ||
| 3686 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate | 3685 | :buffer BUFFER -- BUFFER is the buffer (or buffer-name) to associate |
| 3687 | with the process. Process output goes at end of that buffer, unless | 3686 | with the process. Process output goes at end of that buffer, unless |
| 3688 | you specify an output stream or filter function to handle the output. | 3687 | you specify a filter function to handle the output. BUFFER may be |
| 3689 | BUFFER may be also nil, meaning that this process is not associated | 3688 | also nil, meaning that this process is not associated with any buffer. |
| 3690 | with any buffer. | ||
| 3691 | 3689 | ||
| 3692 | :host HOST -- HOST is name of the host to connect to, or its IP | 3690 | :host HOST -- HOST is name of the host to connect to, or its IP |
| 3693 | address. The symbol `local' specifies the local host. If specified | 3691 | address. The symbol `local' specifies the local host. If specified |
diff --git a/src/w32term.c b/src/w32term.c index 137c798c463..c1d039c1375 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -6922,10 +6922,15 @@ w32_initialize_display_info (Lisp_Object display_name) | |||
| 6922 | memset (dpyinfo, 0, sizeof (*dpyinfo)); | 6922 | memset (dpyinfo, 0, sizeof (*dpyinfo)); |
| 6923 | 6923 | ||
| 6924 | dpyinfo->name_list_element = Fcons (display_name, Qnil); | 6924 | dpyinfo->name_list_element = Fcons (display_name, Qnil); |
| 6925 | dpyinfo->w32_id_name = xmalloc (SCHARS (Vinvocation_name) | 6925 | if (STRINGP (Vsystem_name)) |
| 6926 | + SCHARS (Vsystem_name) + 2); | 6926 | { |
| 6927 | sprintf (dpyinfo->w32_id_name, "%s@%s", | 6927 | dpyinfo->w32_id_name = xmalloc (SCHARS (Vinvocation_name) |
| 6928 | SDATA (Vinvocation_name), SDATA (Vsystem_name)); | 6928 | + SCHARS (Vsystem_name) + 2); |
| 6929 | sprintf (dpyinfo->w32_id_name, "%s@%s", | ||
| 6930 | SDATA (Vinvocation_name), SDATA (Vsystem_name)); | ||
| 6931 | } | ||
| 6932 | else | ||
| 6933 | dpyinfo->w32_id_name = xlispstrdup (Vinvocation_name); | ||
| 6929 | 6934 | ||
| 6930 | /* Default Console mode values - overridden when running in GUI mode | 6935 | /* Default Console mode values - overridden when running in GUI mode |
| 6931 | with values obtained from system metrics. */ | 6936 | with values obtained from system metrics. */ |
diff --git a/src/xrdb.c b/src/xrdb.c index b55c0f9011e..836c147947a 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -376,15 +376,18 @@ get_environ_db (void) | |||
| 376 | 376 | ||
| 377 | if (!p) | 377 | if (!p) |
| 378 | { | 378 | { |
| 379 | /* Use ~/.Xdefaults-HOSTNAME. */ | ||
| 380 | char *home = gethomedir (); | ||
| 381 | ptrdiff_t homelen = strlen (home); | ||
| 382 | Lisp_Object system_name = Fsystem_name (); | 379 | Lisp_Object system_name = Fsystem_name (); |
| 383 | ptrdiff_t filenamesize = (homelen + sizeof xdefaults | 380 | if (STRINGP (system_name)) |
| 384 | + 1 + SBYTES (system_name)); | 381 | { |
| 385 | p = filename = xrealloc (home, filenamesize); | 382 | /* Use ~/.Xdefaults-HOSTNAME. */ |
| 386 | lispstpcpy (stpcpy (stpcpy (filename + homelen, xdefaults), "-"), | 383 | char *home = gethomedir (); |
| 387 | system_name); | 384 | ptrdiff_t homelen = strlen (home); |
| 385 | ptrdiff_t filenamesize = (homelen + sizeof xdefaults | ||
| 386 | + 1 + SBYTES (system_name)); | ||
| 387 | p = filename = xrealloc (home, filenamesize); | ||
| 388 | lispstpcpy (stpcpy (stpcpy (filename + homelen, xdefaults), "-"), | ||
| 389 | system_name); | ||
| 390 | } | ||
| 388 | } | 391 | } |
| 389 | 392 | ||
| 390 | db = XrmGetFileDatabase (p); | 393 | db = XrmGetFileDatabase (p); |
diff --git a/src/xterm.c b/src/xterm.c index 7603e4f3991..deae65d1d8a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12141,6 +12141,8 @@ same_x_server (const char *name1, const char *name2) | |||
| 12141 | { | 12141 | { |
| 12142 | bool seen_colon = false; | 12142 | bool seen_colon = false; |
| 12143 | Lisp_Object sysname = Fsystem_name (); | 12143 | Lisp_Object sysname = Fsystem_name (); |
| 12144 | if (! STRINGP (sysname)) | ||
| 12145 | sysname = empty_unibyte_string; | ||
| 12144 | const char *system_name = SSDATA (sysname); | 12146 | const char *system_name = SSDATA (sysname); |
| 12145 | ptrdiff_t system_name_length = SBYTES (sysname); | 12147 | ptrdiff_t system_name_length = SBYTES (sysname); |
| 12146 | ptrdiff_t length_until_period = 0; | 12148 | ptrdiff_t length_until_period = 0; |
| @@ -12563,15 +12565,19 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 12563 | #endif | 12565 | #endif |
| 12564 | 12566 | ||
| 12565 | Lisp_Object system_name = Fsystem_name (); | 12567 | Lisp_Object system_name = Fsystem_name (); |
| 12566 | ptrdiff_t nbytes; | 12568 | |
| 12567 | if (INT_ADD_WRAPV (SBYTES (Vinvocation_name), SBYTES (system_name) + 2, | 12569 | ptrdiff_t nbytes = SBYTES (Vinvocation_name) + 1; |
| 12568 | &nbytes)) | 12570 | if (STRINGP (system_name) |
| 12571 | && INT_ADD_WRAPV (nbytes, SBYTES (system_name) + 1, &nbytes)) | ||
| 12569 | memory_full (SIZE_MAX); | 12572 | memory_full (SIZE_MAX); |
| 12570 | dpyinfo->x_id = ++x_display_id; | 12573 | dpyinfo->x_id = ++x_display_id; |
| 12571 | dpyinfo->x_id_name = xmalloc (nbytes); | 12574 | dpyinfo->x_id_name = xmalloc (nbytes); |
| 12572 | char *nametail = lispstpcpy (dpyinfo->x_id_name, Vinvocation_name); | 12575 | char *nametail = lispstpcpy (dpyinfo->x_id_name, Vinvocation_name); |
| 12573 | *nametail++ = '@'; | 12576 | if (STRINGP (system_name)) |
| 12574 | lispstpcpy (nametail, system_name); | 12577 | { |
| 12578 | *nametail++ = '@'; | ||
| 12579 | lispstpcpy (nametail, system_name); | ||
| 12580 | } | ||
| 12575 | 12581 | ||
| 12576 | /* Figure out which modifier bits mean what. */ | 12582 | /* Figure out which modifier bits mean what. */ |
| 12577 | x_find_modifier_meanings (dpyinfo); | 12583 | x_find_modifier_meanings (dpyinfo); |