From 61b80ebf7f608cc2914d706ea4d167598e0d1b10 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 29 Jun 2002 18:13:06 +0000 Subject: [PATCH] (display-message-or-buffer): Fix last change. --- lisp/ChangeLog | 1 + lisp/simple.el | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 63a07fa7933..85069b254ee 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2,6 +2,7 @@ * simple.el (shell-command-on-region): Handle errors and signals from shell command execution. + (display-message-or-buffer): Fix last change. * dired.el (dired-view-file): Quote file name for dired-run-shell-command. diff --git a/lisp/simple.el b/lisp/simple.el index 0b91abb8ecb..416b6934f5e 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1348,7 +1348,7 @@ and only used if a buffer is displayed." 1))) ;; Don't use the echo area if the output buffer is ;; already dispayed in the selected frame. - (not (get-buffer-window buffer))) + (not (get-buffer-window (current-buffer)))) ;; Echo area (goto-char (point-max)) (when (bolp) -- 2.39.2