aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-02 23:18:37 +0000
committerRichard M. Stallman1994-03-02 23:18:37 +0000
commit2d7e41fe756139ef519876f0fbf41137ba629bfc (patch)
tree4a1944eff380a5c2488ce050c17d907f256c4faf
parent3819736b9e2b195af5022bcdb3880dac0fdef93c (diff)
downloademacs-2d7e41fe756139ef519876f0fbf41137ba629bfc.tar.gz
emacs-2d7e41fe756139ef519876f0fbf41137ba629bfc.zip
(Fdisplay_completion_list): Restore original buffer
before running completion-setup-hook.
-rw-r--r--src/minibuf.c10
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\
1296Each element may be just a symbol or string\n\ 1296Each element may be just a symbol or string\n\
1297or may be a list of two strings to be printed as if concatenated.") 1297or may be a list of two strings to be printed as if concatenated.\n\
1298`standard-output' must be a buffer.\n\
1299At the end, run the normal hook `completion-setup-hook'.\n\
1300It 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