unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2496: 23.0.60; scroll-preserve-screen-position bug
@ 2009-02-27 13:52 MATSUI Nag.
  0 siblings, 0 replies; 9+ messages in thread
From: MATSUI Nag. @ 2009-02-27 13:52 UTC (permalink / raw)
  To: emacs-pretest-bug

scroll-preserve-screen-position bug?

1. emacs -nw large-text-file
2. (next-line)
3. (scroll-up)
4. repeat 2. and 3. several times
5. cursor position is not preserved


;-- minimum .emacs --
(setq scroll-preserve-screen-position t)

(require 'disp-table)
(defface highlight-eol-face '((() (:foreground "red"))) nil)
(defun set-standard-display-table-with-face (code string face)
  (aset standard-display-table code
        (vconcat (mapcar
                  (lambda (c) (logior c (lsh (face-id face) 22))) string))))
(set-standard-display-table-with-face ?\n "<\n" 'highlight-eol-face)
;-- minimum .emacs --




In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu)
 of 2009-01-24 on air
configured using `configure  '--without-x''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  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_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  tabbar-mode: t
  display-time-mode: t
  show-paren-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t






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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
@ 2009-03-15 15:53 Chong Yidong
  2009-03-16  2:21 ` MATSUI N.
  0 siblings, 1 reply; 9+ messages in thread
From: Chong Yidong @ 2009-03-15 15:53 UTC (permalink / raw)
  To: MATSUI Nag.; +Cc: 2496

> 1. emacs -nw large-text-file
> 2. (next-line)
> 3. (scroll-up)
> 4. repeat 2. and 3. several times
> 5. cursor position is not preserved

Sorry for the late response.  I can't reproduce this bug with the recipe
and .emacs you provided.  However, your version (23.0.60) is rather old,
so it may have been fixed already.  Could you check whether the bug
occurs with the latest CVS version?






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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2009-03-15 15:53 bug#2496: 23.0.60; scroll-preserve-screen-position bug Chong Yidong
@ 2009-03-16  2:21 ` MATSUI N.
  2011-09-11 21:30   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 9+ messages in thread
From: MATSUI N. @ 2009-03-16  2:21 UTC (permalink / raw)
  To: cyd; +Cc: 2496

  The bug still occurs.

| In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
| of 2009-03-16 on air

  I checked it from 3 types of terminal; Linux Console (TERM=Linux),
  Windows TeraTerm (TERM=vt100), Windows Putty (TERM=xterm). I used
  CentOS 5.2 and a pure new user environment only has .emacs.

  This never occurs "In GNU Emacs 22.3.1 (i686-pc-linux-gnu, X
  toolkit, Xaw3d scroll bars)".






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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2009-03-16  2:21 ` MATSUI N.
@ 2011-09-11 21:30   ` Lars Magne Ingebrigtsen
  2011-09-12  3:49     ` MATSUI N.
  0 siblings, 1 reply; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2011-09-11 21:30 UTC (permalink / raw)
  To: MATSUI N.; +Cc: cyd, 2496

"MATSUI N." <chousan@hotmint.com> writes:

>   The bug still occurs.
>
> | In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> | of 2009-03-16 on air
>
>   I checked it from 3 types of terminal; Linux Console (TERM=Linux),
>   Windows TeraTerm (TERM=vt100), Windows Putty (TERM=xterm). I used
>   CentOS 5.2 and a pure new user environment only has .emacs.
>
>   This never occurs "In GNU Emacs 22.3.1 (i686-pc-linux-gnu, X
>   toolkit, Xaw3d scroll bars)".

Does this bug still occur with a current Emacs?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2011-09-11 21:30   ` Lars Magne Ingebrigtsen
@ 2011-09-12  3:49     ` MATSUI N.
  2011-09-12  7:49       ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: MATSUI N. @ 2011-09-12  3:49 UTC (permalink / raw)
  To: larsi; +Cc: cyd, 2496

Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:

> "MATSUI N." <chousan@hotmint.com> writes:
> 
> >   The bug still occurs.
> >
> > | In GNU Emacs 23.0.91.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
> > | of 2009-03-16 on air
> >
> >   I checked it from 3 types of terminal; Linux Console (TERM=Linux),
> >   Windows TeraTerm (TERM=vt100), Windows Putty (TERM=xterm). I used
> >   CentOS 5.2 and a pure new user environment only has .emacs.
> >
> >   This never occurs "In GNU Emacs 22.3.1 (i686-pc-linux-gnu, X
> >   toolkit, Xaw3d scroll bars)".
> 
> Does this bug still occur with a current Emacs?

  Yes. 

  emacs version(latest trunk): "GNU Emacs 24.0.50.1
  (x86_64-unknown-linux-gnu) of 2011-09-12 on air"

  linux version(SL6.1): "Linux air 2.6.32-131.12.1.el6.x86_64 #1 SMP
  Tue Aug 23 11:13:45 CDT 2011 x86_64 x86_64 x86_64 GNU/Linux"

  terminal version(windows): PuTTY 0.61

--
chousan@hotmint.com





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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2011-09-12  3:49     ` MATSUI N.
@ 2011-09-12  7:49       ` Eli Zaretskii
  2011-09-12 12:04         ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2011-09-12  7:49 UTC (permalink / raw)
  To: MATSUI N.; +Cc: larsi, cyd, 2496

> Date: Mon, 12 Sep 2011 12:49:44 +0900 (JST)
> From: "MATSUI N." <chousan@hotmint.com>
> Cc: cyd@stupidchicken.com, 2496@debbugs.gnu.org
> 
> > Does this bug still occur with a current Emacs?
> 
>   Yes. 

Can you please tell more details about the expected behavior and the
actual one?  What exactly do you mean (in the original report) by
"cursor position is not preserved"?  scroll-up scrolls the display
such that the previous point generally goes out of the window, so
Emacs _must_ adjust the cursor position (which shows where point is).
And next-line moves cursor as expected, which again changes cursor
position.

So I'm having hard time figuring out what is the problem you are
complaining about.

Thanks in advance.





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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2011-09-12  7:49       ` Eli Zaretskii
@ 2011-09-12 12:04         ` Eli Zaretskii
  2011-09-12 13:32           ` MATSUI N.
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2011-09-12 12:04 UTC (permalink / raw)
  To: chousan; +Cc: larsi, cyd, 2496

> Date: Mon, 12 Sep 2011 03:49:00 -0400
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: larsi@gnus.org, cyd@stupidchicken.com, 2496@debbugs.gnu.org
> 
> Can you please tell more details about the expected behavior and the
> actual one?  What exactly do you mean (in the original report) by
> "cursor position is not preserved"?  scroll-up scrolls the display
> such that the previous point generally goes out of the window, so
> Emacs _must_ adjust the cursor position (which shows where point is).
> And next-line moves cursor as expected, which again changes cursor
> position.
> 
> So I'm having hard time figuring out what is the problem you are
> complaining about.

I spotted something that could be the subject of your report, and it
certainly is a bug, if not _the_ bug: the column of the cursor
position is not preserved (it is off by one).

So I went ahead and fixed that bug.  Please try the latest development
version and see if it fixed your problem; then I will close the bug
report.  If the bug is still there, please do provide the details I
requested in my previous message.

Thanks.





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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2011-09-12 12:04         ` Eli Zaretskii
@ 2011-09-12 13:32           ` MATSUI N.
  2011-09-12 13:35             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: MATSUI N. @ 2011-09-12 13:32 UTC (permalink / raw)
  To: eliz; +Cc: larsi, cyd, 2496

Eli Zaretskii <eliz@gnu.org> wrote:

> I spotted something that could be the subject of your report, and it
> certainly is a bug, if not _the_ bug: the column of the cursor
> position is not preserved (it is off by one).
> 
> So I went ahead and fixed that bug.  Please try the latest development
> version and see if it fixed your problem; then I will close the bug
> report.  If the bug is still there, please do provide the details I
> requested in my previous message.

  Yes, it was my problem and is now fixed. Thank you very much, sorry
  for my poor explanation.

--
chousan@hotmint.com





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

* bug#2496: 23.0.60; scroll-preserve-screen-position bug
  2011-09-12 13:32           ` MATSUI N.
@ 2011-09-12 13:35             ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2011-09-12 13:35 UTC (permalink / raw)
  To: MATSUI N.; +Cc: larsi, cyd, 2496-done

> Date: Mon, 12 Sep 2011 22:32:40 +0900 (JST)
> Cc: larsi@gnus.org, cyd@stupidchicken.com, 2496@debbugs.gnu.org
> From: "MATSUI N." <chousan@hotmint.com>
> 
> Eli Zaretskii <eliz@gnu.org> wrote:
> 
> > I spotted something that could be the subject of your report, and it
> > certainly is a bug, if not _the_ bug: the column of the cursor
> > position is not preserved (it is off by one).
> > 
> > So I went ahead and fixed that bug.  Please try the latest development
> > version and see if it fixed your problem; then I will close the bug
> > report.  If the bug is still there, please do provide the details I
> > requested in my previous message.
> 
>   Yes, it was my problem and is now fixed. Thank you very much, sorry
>   for my poor explanation.

Thanks, I'm closing the bug.





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

end of thread, other threads:[~2011-09-12 13:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-15 15:53 bug#2496: 23.0.60; scroll-preserve-screen-position bug Chong Yidong
2009-03-16  2:21 ` MATSUI N.
2011-09-11 21:30   ` Lars Magne Ingebrigtsen
2011-09-12  3:49     ` MATSUI N.
2011-09-12  7:49       ` Eli Zaretskii
2011-09-12 12:04         ` Eli Zaretskii
2011-09-12 13:32           ` MATSUI N.
2011-09-12 13:35             ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2009-02-27 13:52 MATSUI Nag.

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