From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nils Klarlund Newsgroups: gmane.emacs.bugs Subject: Emacs 21.2: set-window-start doesn't work Date: Tue, 14 Jan 2003 10:23:38 -0500 (EST) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <200301141523.KAA13720@alliance.research.att.com> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1042557849 10180 80.91.224.249 (14 Jan 2003 15:24:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2003 15:24:09 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18YSv9-0002du-00 for ; Tue, 14 Jan 2003 16:24:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18YSvw-0004sY-07 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 14 Jan 2003 10:24:56 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18YSvS-00049D-00 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2003 10:24:26 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18YSv0-00035p-00 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2003 10:23:59 -0500 Original-Received: from h-135-207-30-103.research.att.com ([135.207.30.103] helo=mail-green.research.att.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18YSui-0002i6-00 for bug-gnu-emacs@gnu.org; Tue, 14 Jan 2003 10:23:40 -0500 Original-Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-green.research.att.com (Postfix) with ESMTP id DC7A91E35F for ; Tue, 14 Jan 2003 10:23:39 -0500 (EST) Original-Received: from GREMLIN-1.reseach.att.com (dhcp-new117.research.att.com [135.207.19.117]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id KAA13720 for ; Tue, 14 Jan 2003 10:23:38 -0500 (EST) Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4199 Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) and Emacs 21.2.93 (Windows) The code below should make frame fr show "50 51 ..." to the left on the window. That's what you get on Emacs 20. Instead the display starts at the beginning of the buffer. (defun f () (get-buffer-create "*test*") (with-current-buffer "*test*" (let* ((fr (make-frame)) (wnd (frame-first-window fr)) (n 1)) (setq truncate-lines t) (while (< n 100) (incf n) (insert (format "%s " n))) (set-window-start wnd (search-backward "50"))))) (f) This bug report will be sent to the Free Software Foundation, not to your local site managers!! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. In GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy configured using `configure NT' Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Recent input: down-mouse-1 mouse-1 backspace backspace return M-p backspace backspace backspace return down-mouse-1 mouse-1 down-mouse-1 mouse-1 down-mouse-1 mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement mouse-movement drag-mouse-1 down-mouse-1 mouse-1 down-mouse-1 mouse-1 down-mouse-1 mouse-1 down-mouse-3 mouse-3 down-mouse-1 mouse-1 down-mouse-1 mouse-1 C-x C-e switch-frame down-mouse-1 mouse-1 C-e right C-e left left left left C-a C-SPC C-e M-w switch-frame down-mouse-1 mouse-1 down-mouse-1 drag-mouse-1 return C-y switch-frame down-mouse-1 mouse-1 C-a C-SPC C-e M-w switch-frame down-mouse-1 drag-mouse-1 menu-bar help-menu report-emacs-bug Recent messages: History item: 1 [5 times] Auto-saving... Auto-saving...done 1297 End of buffer Mark set [3 times] Auto-saving... Mark set [3 times] Loading emacsbug... Loading emacsbug...done