* 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
* bug#18197: 24.3.92; Get rid of ellipsis at beginning of window
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
2016-02-18 8:47 ` bug#18197: change to wishlist as per Eli's suggestion Marcin Borkowski
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Richard @ 2015-01-12 13:34 UTC (permalink / raw
To: Nicolas Richard; +Cc: 18197
Hello,
TL;DR: Ping?
FWIW, this bug came from the Org mode ML, see
http://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00795.html
but can be reproduced with outline-mode only (which is what I did in the
recipe).
I still don't have a good solution for this problem. My best idea is
something along the lines of
(defun fix-ellipsis ()
(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))))
(add-hook 'post-command-hook 'fix-ellipsis)
which is awful.
Does someone know if this is actually a bug or just me having weird
expectations ?
TIA,
--
Nicolas Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18197: 24.3.92; Get rid of ellipsis at beginning of window
2015-01-12 13:34 ` Nicolas Richard
@ 2015-01-12 16:22 ` Eli Zaretskii
[not found] ` <87si0rz795.fsf@mbork.pl>
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2015-01-12 16:22 UTC (permalink / raw
To: Nicolas Richard; +Cc: theonewiththeevillook, 18197
> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
> Date: Mon, 12 Jan 2015 14:34:48 +0100
> Cc: 18197@debbugs.gnu.org
>
> Does someone know if this is actually a bug or just me having weird
> expectations ?
It's not a bug, in the sense that the code does what it was supposed
to do in this situation. IOW, no one coded any special treatment for
this situation, AFAIK.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18197: 24.3.92; Get rid of ellipsis at beginning of window
[not found] ` <87si0rz795.fsf@mbork.pl>
@ 2016-02-17 16:09 ` Eli Zaretskii
0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2016-02-17 16:09 UTC (permalink / raw
To: Marcin Borkowski; +Cc: 18197
> From: Marcin Borkowski <mbork@mbork.pl>
> Date: Wed, 17 Feb 2016 16:28:06 +0100
>
> On 2015-01-12, at 18:22, Eli Zaretskii <eliz@gnu.org> wrote:
>
> >> From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
> >> Date: Mon, 12 Jan 2015 14:34:48 +0100
> >> Cc: 18197@debbugs.gnu.org
> >>
> >> Does someone know if this is actually a bug or just me having weird
> >> expectations ?
> >
> > It's not a bug, in the sense that the code does what it was supposed
> > to do in this situation. IOW, no one coded any special treatment for
> > this situation, AFAIK.
>
> Hi all,
>
> does the above mean that this bug should be closed?
I think it should become wishlist.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18197: change to wishlist as per Eli's suggestion
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
@ 2016-02-18 8:47 ` Marcin Borkowski
1 sibling, 0 replies; 5+ messages in thread
From: Marcin Borkowski @ 2016-02-18 8:47 UTC (permalink / raw
To: control; +Cc: 18197
severity 18197 wishlist
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
^ 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 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.