From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.bugs Subject: bug#18197: 24.3.92; Get rid of ellipsis at beginning of window Date: Tue, 05 Aug 2014 12:07:50 +0200 Message-ID: <87wqanw8p5.fsf@geodiff-mac3.ulb.ac.be> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1407233248 22618 80.91.229.3 (5 Aug 2014 10:07:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 10:07:28 +0000 (UTC) To: 18197@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 12:07:22 2014 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 1XEbeL-0007EF-6E for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 12:07:21 +0200 Original-Received: from localhost ([::1]:58356 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbeK-0005Kp-Gb for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 06:07:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbeA-0005JM-If for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEbe2-0003hM-KP for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:07:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbe2-0003hI-HO for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEbe2-0002xZ-7h for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nicolas Richard Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Aug 2014 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18197 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.140723317711319 (code B ref -1); Tue, 05 Aug 2014 10:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2014 10:06:17 +0000 Original-Received: from localhost ([127.0.0.1]:58293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEbdI-0002wV-CI for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:06:16 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48019) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEbdE-0002wB-Tt for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:06:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEbd1-0003Bu-Tv for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:06:07 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:55457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbd1-0003Bq-Qk for submit@debbugs.gnu.org; Tue, 05 Aug 2014 06:05:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49716) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbcv-0005EH-Gy for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:05:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEbcp-00039n-69 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:05:53 -0400 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:41905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEbco-00039i-VH for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 06:05:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AksFAKar4FOkD4Xx/2dsb2JhbABbg19XriwBAQEBAQEGBZ0xiHx3hHhHNAEEiQkBFJxckR2NcQGHUYV8giKHS4Q1BZBfkjWNVINPOy8 Original-Received: from mathsrv4.ulb.ac.be (HELO geodiff-mac3.ulb.ac.be) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 05 Aug 2014 12:05:45 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:92125 Archived-At: I'm not sure this is a bug, or simply a feature that annoys me. I'm sorry if I picked the wrong mailing list. When running the following emacs -Q /tmp/foo.outline -f outline-mode -f end-of-buffer --eval '(forward-line -2)' -f hide-body with /tmp/foo.outline containing: ,---- | * foo | | * bar `---- My window then looks like: ,---- | ... | * bar `---- When I hit M-<, my window will look like: ,---- | * foo... | * bar `---- I would expect the screen to not go through the intermediate state with an ellipsis at the beginning of the window. If this is not a bug, what is a workaround ? The best I came up with is : (let ((ws (window-start))) (save-excursion (goto-char ws) (skip-chars-backward "^\n") (while (and (not (bobp)) (invisible-p (1- (point)))) (goto-char (previous-char-property-change (point))) (skip-chars-backward "^\n")) (redisplay))) (the code to skip invisible text comes from move-beginning-of-line). Thanks, In GNU Emacs 24.3.92.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2014-07-11 on geodiff-mac3 Windowing system distributor `The X.Org Foundation', version 11.0.11304000 System Description: Gentoo Base System release 2.2 Configured using: `configure --with-x-toolkit=lucid --enable-checking 'CFLAGS= -O0 -g3'' -- Nico.