unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#18197: 24.3.92; Get rid of ellipsis at beginning of window
@ 2014-08-05 10:07 Nicolas Richard
  2015-01-12 13:34 ` Nicolas Richard
  2016-02-18  8:47 ` bug#18197: change to wishlist as per Eli's suggestion Marcin Borkowski
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas Richard @ 2014-08-05 10:07 UTC (permalink / raw)
  To: 18197

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.





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-18  8:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-05 10:07 bug#18197: 24.3.92; Get rid of ellipsis at beginning of window Nicolas Richard
2015-01-12 13:34 ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).