diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index c160711f903..abfa26178ec 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1294,7 +1294,10 @@ DEFUN ("display-completion-list", Fdisplay_completion_list, Sdisplay_completion_ | |||
| 1294 | 1, 1, 0, | 1294 | 1, 1, 0, |
| 1295 | "Display the list of completions, COMPLETIONS, using `standard-output'.\n\ | 1295 | "Display the list of completions, COMPLETIONS, using `standard-output'.\n\ |
| 1296 | Each element may be just a symbol or string\n\ | 1296 | Each element may be just a symbol or string\n\ |
| 1297 | or may be a list of two strings to be printed as if concatenated.") | 1297 | or may be a list of two strings to be printed as if concatenated.\n\ |
| 1298 | `standard-output' must be a buffer.\n\ | ||
| 1299 | At the end, run the normal hook `completion-setup-hook'.\n\ | ||
| 1300 | It can find the completion buffer in `standard-output'.") | ||
| 1298 | (completions) | 1301 | (completions) |
| 1299 | Lisp_Object completions; | 1302 | Lisp_Object completions; |
| 1300 | { | 1303 | { |
| @@ -1365,11 +1368,12 @@ or may be a list of two strings to be printed as if concatenated.") | |||
| 1365 | } | 1368 | } |
| 1366 | } | 1369 | } |
| 1367 | 1370 | ||
| 1371 | if (XTYPE (Vstandard_output) == Lisp_Buffer) | ||
| 1372 | set_buffer_internal (old); | ||
| 1373 | |||
| 1368 | if (!NILP (Vrun_hooks)) | 1374 | if (!NILP (Vrun_hooks)) |
| 1369 | call1 (Vrun_hooks, intern ("completion-setup-hook")); | 1375 | call1 (Vrun_hooks, intern ("completion-setup-hook")); |
| 1370 | 1376 | ||
| 1371 | if (XTYPE (Vstandard_output) == Lisp_Buffer) | ||
| 1372 | set_buffer_internal (old); | ||
| 1373 | return Qnil; | 1377 | return Qnil; |
| 1374 | } | 1378 | } |
| 1375 | 1379 | ||