From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: How to follow the end of *Messages* buffer in Emacs? Date: Sun, 11 Nov 2012 12:25:34 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352655012 25177 80.91.229.3 (11 Nov 2012 17:30:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 11 Nov 2012 17:30:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 11 18:30:23 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TXbMU-000104-KZ for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 18:30:22 +0100 Original-Received: from localhost ([::1]:40558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TXbML-00031F-3y for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Nov 2012 12:30:13 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Injection-Info: mx04.eternal-september.org; posting-host="921e29d1e196afb8f9ddf8bfca084239"; logging-data="10561"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/XnN2JnMWULKWAo6vm8uLD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:3mxMfCz23oCFVs00vS6VLPBrmKI= sha1:8YKxCNTRb2BLkLGv+CN2o/dctOI= Original-Xref: usenet.stanford.edu gnu.emacs.help:195322 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:87644 Archived-At: > This would be tedious. We have to fix this in the window code. More > precisely, we need a buffer local variable which when set and > `window-point' equals `point-max' for that buffer at the time of saving > the buffer's window's `window-point' (in your case that would be the > time when the help buffer is displayed) we would store nil in the > corresponding slot. When restoring the buffer in the window (via > `quit-window' in your case) and we find that that slot contains nil, > we'd use the buffer's `point' as new position of `window-point'. IIUC we already have that buffer-local variable (it's called window-point-insertion-type). Stefan