* bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode
@ 2009-03-02 18:38 Markus Triska
2011-01-11 21:13 ` Tassilo Horn
2019-09-29 13:32 ` Lars Ingebrigtsen
0 siblings, 2 replies; 4+ messages in thread
From: Markus Triska @ 2009-03-02 18:38 UTC (permalink / raw)
To: emacs-pretest-bug
Given p.ps from:
http://www.logic.at/prolog/p.ps
when I do:
1) $ emacs -Q p.ps
2) M-: (setq doc-view-ghostscript-options (list "-dSAFER" "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-dEPSCrop")) RET
3) C-u - 1 M-r C-c C-c C-v C-c C-c
then (as expected) doc-view returns to text mode, and point is on the
same position where it was before entering graphics mode. When I then
press C-p repeatedly, instead of moving point to the previous line,
the text is unexpectedly scrolled down without moving point.
In GNU Emacs 23.0.91.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
of 2009-03-01 on mt-computer.local
Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: en_GB.UTF-8
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode
2009-03-02 18:38 bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode Markus Triska
@ 2011-01-11 21:13 ` Tassilo Horn
2019-09-29 13:32 ` Lars Ingebrigtsen
1 sibling, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-01-11 21:13 UTC (permalink / raw)
To: Markus Triska; +Cc: 2541, emacs-pretest-bug
Markus Triska <markus.triska@gmx.at> writes:
> Given p.ps from:
>
> http://www.logic.at/prolog/p.ps
>
> when I do:
>
> 1) $ emacs -Q p.ps
>
> 2) M-: (setq doc-view-ghostscript-options (list "-dSAFER" "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-dEPSCrop")) RET
>
> 3) C-u - 1 M-r C-c C-c C-v C-c C-c
>
> then (as expected) doc-view returns to text mode, and point is on the
> same position where it was before entering graphics mode. When I then
> press C-p repeatedly, instead of moving point to the previous line,
> the text is unexpectedly scrolled down without moving point.
I can reproduce that (even without step 2) using
GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu) of 2011-01-11 on thinkpad
However, C-p is bound to `previous-line' as usual in that context.
After edebugging a bit, I found that the reasion is that in
--8<---------------cut here---------------start------------->8---
(defun line-move (arg &optional noerror to-end try-vscroll)
(unless (and auto-window-vscroll try-vscroll
;; Only vscroll for single line moves
(= (abs arg) 1)
;; But don't vscroll in a keyboard macro.
(not defining-kbd-macro)
(not executing-kbd-macro)
(line-move-partial arg noerror to-end))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(set-window-vscroll nil 0 t)
(if line-move-visual
(line-move-visual arg noerror)
(line-move-1 arg noerror to-end))))
--8<---------------cut here---------------end--------------->8---
the underlined call scrolls one line and returns some integer in that
context. That makes the and clause return non-nil, and so the unless
body is not executed. I don't know this part of emacs, so I don't know
how to fix the issue...
But I don't think that has something to do with doc-view.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode
2009-03-02 18:38 bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode Markus Triska
2011-01-11 21:13 ` Tassilo Horn
@ 2019-09-29 13:32 ` Lars Ingebrigtsen
2019-10-14 5:56 ` Lars Ingebrigtsen
1 sibling, 1 reply; 4+ messages in thread
From: Lars Ingebrigtsen @ 2019-09-29 13:32 UTC (permalink / raw)
To: Markus Triska; +Cc: 2541
Markus Triska <markus.triska@gmx.at> writes:
> Given p.ps from:
>
> http://www.logic.at/prolog/p.ps
>
> when I do:
>
> 1) $ emacs -Q p.ps
>
> 2) M-: (setq doc-view-ghostscript-options (list "-dSAFER" "-dNOPAUSE" "-sDEVICE=png16m" "-dTextAlphaBits=4" "-dBATCH" "-dGraphicsAlphaBits=4" "-dQUIET" "-dEPSCrop")) RET
>
> 3) C-u - 1 M-r C-c C-c C-v C-c C-c
>
> then (as expected) doc-view returns to text mode, and point is on the
> same position where it was before entering graphics mode. When I then
> press C-p repeatedly, instead of moving point to the previous line,
> the text is unexpectedly scrolled down without moving point.
I tried this in Emacs 27, but was unable to reproduce the error -- `C-p'
moves around as usual, as far as I can tell.
Are you still seeing this problem in modern versions of Emacs?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-10-14 5:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-02 18:38 bug#2541: 23.0.91; doc-view: unexpected scrolling after returning to text mode Markus Triska
2011-01-11 21:13 ` Tassilo Horn
2019-09-29 13:32 ` Lars Ingebrigtsen
2019-10-14 5:56 ` Lars Ingebrigtsen
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).