unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
@ 2009-03-03  1:39 Markus Triska
  0 siblings, 0 replies; 6+ messages in thread
From: Markus Triska @ 2009-03-03  1:39 UTC (permalink / raw)
  To: emacs-pretest-bug


With p.ps from:

   http://www.logic.at/prolog/p.ps

when I do:

   $ emacs -Q p.ps

and press:

   C-c C-c C-x 2

and then press C-M-v repeatedly, the other window eventually wraps
around instead of stopping at the image border like C-v does.


In GNU Emacs 23.0.60.2 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9)
 of 2009-01-06 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] 6+ messages in thread

* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
       [not found] <mailman.2246.1236045825.31690.bug-gnu-emacs@gnu.org>
@ 2009-03-03 12:00 ` Tassilo Horn
  2009-03-03 16:44   ` Stefan Monnier
  2009-03-04 12:44   ` martin rudalics
  0 siblings, 2 replies; 6+ messages in thread
From: Tassilo Horn @ 2009-03-03 12:00 UTC (permalink / raw)
  To: Markus Triska; +Cc: 2549, emacs-pretest-bug

Markus Triska <markus.triska@gmx.at> writes:

Hi Markus,

> With p.ps from:
>
>    http://www.logic.at/prolog/p.ps
>
> when I do:
>
>    $ emacs -Q p.ps
>
> and press:
>
>    C-c C-c C-x 2
>
> and then press C-M-v repeatedly, the other window eventually wraps
> around instead of stopping at the image border like C-v does.

That's because `scroll-other-window' calls scroll-up/down in the other
window, but if the other window contains an doc-view buffer it should
ideally call image-scroll-up/down.

The only good solution I see is to define buffer local variables
`scroll-up-function' and `scroll-down-function' which are used by
`scroll-up' and `scroll-down' and then binding them appropriate in each
mode.

Anyway, that's not really related to doc-view.  All non-text modes are
pertained here.  Comments?

Bye,
Tassilo






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

* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
  2009-03-03 12:00 ` bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly Tassilo Horn
@ 2009-03-03 16:44   ` Stefan Monnier
  2009-03-03 19:14     ` Tassilo Horn
  2009-03-04 12:44   ` martin rudalics
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2009-03-03 16:44 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: 2549, Markus Triska

> That's because `scroll-other-window' calls scroll-up/down in the other
> window, but if the other window contains an doc-view buffer it should
> ideally call image-scroll-up/down.

> The only good solution I see is to define buffer local variables
> `scroll-up-function' and `scroll-down-function' which are used by
> `scroll-up' and `scroll-down' and then binding them appropriate in
> each mode.

Indeed, something like a hook seems necessary.  I'd rather leave it as
is for Emacs-23.1, tho.  Makes me wonder: do we have a way to tag bugs
as "post-23.1"?


        Stefan






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

* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
  2009-03-03 16:44   ` Stefan Monnier
@ 2009-03-03 19:14     ` Tassilo Horn
  2009-03-04  1:16       ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Tassilo Horn @ 2009-03-03 19:14 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 2549, Markus Triska

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> That's because `scroll-other-window' calls scroll-up/down in the
>> other window, but if the other window contains an doc-view buffer it
>> should ideally call image-scroll-up/down.
>
>> The only good solution I see is to define buffer local variables
>> `scroll-up-function' and `scroll-down-function' which are used by
>> `scroll-up' and `scroll-down' and then binding them appropriate in
>> each mode.
>
> Indeed, something like a hook seems necessary.  I'd rather leave it as
> is for Emacs-23.1, tho.  Makes me wonder: do we have a way to tag bugs
> as "post-23.1"?

We could abuse the "Version:" pseudo-header for that or create a new tag
for that.  The latter seems more desirable, but I don't know how to
create a tag.  Maybe they're created automagically?  I'll try by sending

  tags 2549 + post-23.1

to the control server address...

Bye,
Tassilo






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

* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
  2009-03-03 19:14     ` Tassilo Horn
@ 2009-03-04  1:16       ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-03-04  1:16 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: 2549, don, Markus Triska

> We could abuse the "Version:" pseudo-header for that or create a new tag
> for that.  The latter seems more desirable, but I don't know how to
> create a tag.  Maybe they're created automagically?  I'll try by sending

>   tags 2549 + post-23.1

> to the control server address...

Actually, I think there's a way to classify bugs w.r.t releases.
So probably not tagging this as "post-23.1" but rather tagging the
others as "needs to be fixed before we can release Emacs-23.1".
But I can't figure out how to do it.


        Stefan






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

* bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly
  2009-03-03 12:00 ` bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly Tassilo Horn
  2009-03-03 16:44   ` Stefan Monnier
@ 2009-03-04 12:44   ` martin rudalics
  1 sibling, 0 replies; 6+ messages in thread
From: martin rudalics @ 2009-03-04 12:44 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: 2549

 > That's because `scroll-other-window' calls scroll-up/down in the other
 > window, but if the other window contains an doc-view buffer it should
 > ideally call image-scroll-up/down.

Just a technical note: `scroll-other-window' calls window_scroll and not
scroll-up/down.

martin






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

end of thread, other threads:[~2009-03-04 12:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.2246.1236045825.31690.bug-gnu-emacs@gnu.org>
2009-03-03 12:00 ` bug#2549: 23.0.60; doc-view: scrolling other window wraps unexpectedly Tassilo Horn
2009-03-03 16:44   ` Stefan Monnier
2009-03-03 19:14     ` Tassilo Horn
2009-03-04  1:16       ` Stefan Monnier
2009-03-04 12:44   ` martin rudalics
2009-03-03  1:39 Markus Triska

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).