From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dieter Wilhelm Newsgroups: gmane.emacs.help Subject: goto-char with set-buffer operations take only effect when buffer is not visible! Date: Sat, 09 Dec 2006 20:32:52 +0100 Organization: The Church of Emacs Message-ID: <8764ckeufv.fsf@hans.local.net> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165697643 19108 80.91.229.10 (9 Dec 2006 20:54:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 20:54:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 09 21:54:02 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1Gt9Co-00010G-Q1 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 21:53:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt9Co-0006lu-Ag for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 15:53:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Gt9Cb-0006io-H9 for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 15:53:45 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Gt9Ca-0006hu-UQ for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 15:53:45 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gt9Ca-0006hW-JD for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 15:53:44 -0500 Original-Received: from [212.227.126.187] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Gt9Ca-0004fI-Dd for help-gnu-emacs@gnu.org; Sat, 09 Dec 2006 15:53:44 -0500 Original-Received: from [84.167.67.132] (helo=duenenhof-wilhelm.de) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis), id 0MKwtQ-1Gt9CY1IsA-0007QY; Sat, 09 Dec 2006 21:53:42 +0100 Original-Received: by duenenhof-wilhelm.de (Postfix, from userid 1000) id C338A7668E; Sat, 9 Dec 2006 20:32:52 +0100 (CET) Original-To: help-gnu-emacs@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:d7ab225b98a136e1c2910381f940ecb9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39377 Archived-At: Hi I catch the output from a program which runs under `start-process' in a buffer called *Ansys*. I'd like to have that the buffer scrolls always to the end of the latest output (like tail -f). This works automatically when the cursor in this buffer is below the current output. Then I can work in a certain buffer and see the output scroll by in the neighbouring *Ansys* buffer. Unfortunately when the process is created the cursor is not at the end of the output but remains at (point-min). So I wrote this snippet: (let ((cb (buffer-name))) (set-buffer "*Ansys*") ;make buffer scroll with output (goto-char (point-max)) (set-buffer cb)) To my astonishment this works only when the buffer *Ansys* is not visible! When the buffer is visible and I call this snippet in another one the cursor in *Ansys* won't budge a single character. This seems like a bug to me, isn't it? -- Best wishes H. Dieter Wilhelm Darmstadt, Germany