From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Hagerman Newsgroups: gmane.emacs.bugs Subject: bug#15760: 24.3; move-to-window-line goes to wrong line Date: Wed, 30 Oct 2013 18:22:42 +0000 Message-ID: <72E011E11337B24D9D93F8DDEFEC7F30D6983CEC@us01wembx1.internal.synopsys.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1383157519 19424 80.91.229.3 (30 Oct 2013 18:25:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Oct 2013 18:25:19 +0000 (UTC) To: 15760@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Oct 30 19:25:23 2013 Return-path: Envelope-to: geb-bug-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 1VbaSH-0004TP-7b for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 19:25:21 +0100 Original-Received: from localhost ([::1]:53834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaSG-00040e-N5 for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Oct 2013 14:25:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaS6-0003uC-IY for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:25:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbaRz-0004KZ-Jw for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:25:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaRz-0004JF-Fd for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:25:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VbaRy-0000Kp-A7 for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:25:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Hagerman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Oct 2013 18:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15760 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.13831574461209 (code B ref -1); Wed, 30 Oct 2013 18:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2013 18:24:06 +0000 Original-Received: from localhost ([127.0.0.1]:53236 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbaR3-0000JO-0w for submit@debbugs.gnu.org; Wed, 30 Oct 2013 14:24:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53236) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VbaQ7-0000He-NO for submit@debbugs.gnu.org; Wed, 30 Oct 2013 14:23:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbaPw-0003If-Qr for submit@debbugs.gnu.org; Wed, 30 Oct 2013 14:23:02 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:49242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaPw-0003Ib-OY for submit@debbugs.gnu.org; Wed, 30 Oct 2013 14:22:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaPr-00038l-Mf for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbaPm-0003FV-5K for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:22:51 -0400 Original-Received: from alvesta.synopsys.com ([198.182.60.77]:40843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbaPl-0003Ex-KF for bug-gnu-emacs@gnu.org; Wed, 30 Oct 2013 14:22:46 -0400 Original-Received: from WBSNus02mta1 (us02secmta1.synopsys.com [10.12.235.96]) by alvesta.synopsys.com (Postfix) with ESMTP id D600A8C28 for ; Wed, 30 Oct 2013 11:22:43 -0700 (PDT) Original-Received: from us02secmta1.internal.synopsys.com (us02secmta1.internal.synopsys.com [127.0.0.1]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id C97524E213 for ; Wed, 30 Oct 2013 11:22:43 -0700 (PDT) Original-Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by us02secmta1.internal.synopsys.com (Service) with ESMTP id 9B4894E202 for ; Wed, 30 Oct 2013 11:22:43 -0700 (PDT) Original-Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 8EEEAB4C for ; Wed, 30 Oct 2013 11:22:43 -0700 (PDT) Original-Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 896D1B4B for ; Wed, 30 Oct 2013 11:22:43 -0700 (PDT) Original-Received: from us01wembx1.internal.synopsys.com ([fe80::d537:87d2:2d88:a96]) by US01WEHTC3.internal.synopsys.com ([::1]) with mapi id 14.02.0298.004; Wed, 30 Oct 2013 11:22:43 -0700 Thread-Topic: 24.3; move-to-window-line goes to wrong line Thread-Index: Ac7VnObJKZud5hJiRX29sxstzD1+1g== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.9.64.240] X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Wed, 30 Oct 2013 14:24:02 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79790 Archived-At: Using X Windows, I start 'emacs -Q' and get a window of height "30". I need a buffer with more lines than window height, so I enter 35 lines into an empty buffer. At that point the last line of the buffer is somewhere in the middle of the window. Since 'point' is at the end of the buffer, doing (move-to-window-line -1) does not move point, as expected. Then, since 'point' is at the end of the buffer, doing ESC - ^L adjusts the display so the last line of the buffer is on the last line of the window. Now doing (move-to-window-line -1) _does_ move point, to the previous line. I believe this is incorrect behavior. Then, since 'point' has moved, doing ESC - ^L puts the second-to-last line of the buffer on the last line of the window. And now doing (move-to-window-line -1) does not move point, as expected. Dribble file (unprintable chars edited to, eg, "^X"): ^Xbfoo1234567890123456= 7890123456789012345-1xmove-to-window-line= -^L-1xmove-to-window-line-^L-1xmove-to-window-line^X^C Thanks ~ John In GNU Emacs 24.3.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2013-05-03 on depbldrh55 Windowing system distributor `The X.Org Foundation', version 11.0.70101000 System Description: Red Hat Enterprise Linux Client release 5.7 (Tikanga) Configured using: `configure '--prefix=3D/depot/emacs-24.3' '--with-gif=3Dno' '--with-x-toolkit=3Dyes'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)