all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: 18197@debbugs.gnu.org
Subject: bug#18197: 24.3.92; Get rid of ellipsis at beginning of window
Date: Tue, 05 Aug 2014 12:07:50 +0200	[thread overview]
Message-ID: <87wqanw8p5.fsf@geodiff-mac3.ulb.ac.be> (raw)

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
| <a screenful of lines that do not start by a '*'>
| * 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.





             reply	other threads:[~2014-08-05 10:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 10:07 Nicolas Richard [this message]
2015-01-12 13:34 ` bug#18197: 24.3.92; Get rid of ellipsis at beginning of window Nicolas Richard
2015-01-12 16:22   ` Eli Zaretskii
     [not found]     ` <87si0rz795.fsf@mbork.pl>
2016-02-17 16:09       ` Eli Zaretskii
2016-02-18  8:47 ` bug#18197: change to wishlist as per Eli's suggestion Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wqanw8p5.fsf@geodiff-mac3.ulb.ac.be \
    --to=theonewiththeevillook@yahoo.fr \
    --cc=18197@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.