unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor]
@ 2004-02-01  8:02 Richard Stallman
  2004-02-01 21:46 ` Kim F. Storm
  2004-02-07  1:06 ` Kim F. Storm
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Stallman @ 2004-02-01  8:02 UTC (permalink / raw)


Can someone who has been working on the display code recently
investigate this bug?

------- Start of forwarded message -------
To: bug-gnu-emacs@gnu.org
From: Dan Jacobson <jidanni@jidanni.org>
Date: Fri, 30 Jan 2004 09:03:24 +0800
Subject: pin the right edge of the text to the right edge of the monitor
Sender: bug-gnu-emacs-bounces+rms=gnu.org@gnu.org

Gentlemen, do
$ perl -wle "for (1..50){print 'z' x $((${COLUMNS-99}+10))}" > wide_file
#I.e. make a file with lines longer than your monitor can handle without wrapping.
$ emacs -q --no-site-file wide_file
M-x toggle-truncate-lines
C-e or C-x <
Note how there is tons of space wasted as there is no way to pin the
right edge of the text to the right edge of the monitor.
A C-a gets the left edge of the text nicely fixed to the left edge of
the monitor, but no consideration is given to us right-wingers.


_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

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

* Re: [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor]
  2004-02-01  8:02 [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor] Richard Stallman
@ 2004-02-01 21:46 ` Kim F. Storm
  2004-02-07  1:06 ` Kim F. Storm
  1 sibling, 0 replies; 4+ messages in thread
From: Kim F. Storm @ 2004-02-01 21:46 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Can someone who has been working on the display code recently
> investigate this bug?

I can look into it.

However, it is not a new bug; 21.2 also behaves like this.



> 
> From: Dan Jacobson <jidanni@jidanni.org>
> Subject: pin the right edge of the text to the right edge of the monitor
> To: bug-gnu-emacs@gnu.org
> Date: Fri, 30 Jan 2004 09:03:24 +0800
> 
> Gentlemen, do
> $ perl -wle "for (1..50){print 'z' x $((${COLUMNS-99}+10))}" > wide_file
> #I.e. make a file with lines longer than your monitor can handle without wrapping.
> $ emacs -q --no-site-file wide_file
> M-x toggle-truncate-lines
> C-e or C-x <
> Note how there is tons of space wasted as there is no way to pin the
> right edge of the text to the right edge of the monitor.
> A C-a gets the left edge of the text nicely fixed to the left edge of
> the monitor, but no consideration is given to us right-wingers.
> 

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor]
  2004-02-01  8:02 [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor] Richard Stallman
  2004-02-01 21:46 ` Kim F. Storm
@ 2004-02-07  1:06 ` Kim F. Storm
  2004-02-08  7:29   ` Juri Linkov
  1 sibling, 1 reply; 4+ messages in thread
From: Kim F. Storm @ 2004-02-07  1:06 UTC (permalink / raw)
  Cc: Dan Jacobson, emacs-devel

Richard Stallman <rms@gnu.org> writes:

> Can someone who has been working on the display code recently
> investigate this bug?

I have just installed a patch which should improve on this behaviour.  

Now the cursor is positioned nearer to the right margin when jumping to
the end of a long line (C-e), rather than centering the cursor as is
usually done when hscrolling.

Note that my fix only applies to the default hscroll settings; if you
have modified the hscroll parameters, your setting still apply.

> 
> From: Dan Jacobson <jidanni@jidanni.org>
> Subject: pin the right edge of the text to the right edge of the monitor
> To: bug-gnu-emacs@gnu.org
> Date: Fri, 30 Jan 2004 09:03:24 +0800
> 
> Gentlemen, do
> $ perl -wle "for (1..50){print 'z' x $((${COLUMNS-99}+10))}" > wide_file
> #I.e. make a file with lines longer than your monitor can handle without wrapping.
> $ emacs -q --no-site-file wide_file
> M-x toggle-truncate-lines
> C-e or C-x <
> Note how there is tons of space wasted as there is no way to pin the
> right edge of the text to the right edge of the monitor.
> A C-a gets the left edge of the text nicely fixed to the left edge of
> the monitor, but no consideration is given to us right-wingers.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor]
  2004-02-07  1:06 ` Kim F. Storm
@ 2004-02-08  7:29   ` Juri Linkov
  0 siblings, 0 replies; 4+ messages in thread
From: Juri Linkov @ 2004-02-08  7:29 UTC (permalink / raw)
  Cc: emacs-devel, rms, Dan Jacobson

no-spam@cua.dk (Kim F. Storm) writes:
> I have just installed a patch which should improve on this behaviour.  
>
> Now the cursor is positioned nearer to the right margin when jumping to
> the end of a long line (C-e), rather than centering the cursor as is
> usually done when hscrolling.

Instead of constant 4 it would be more correct to use either
`hscroll-margin' or `hscroll-step'.  However, I'm not sure which one.
Each of them makes sense:

- hscroll-margin defines how many columns away from the window edge
  point is allowed to get.  So after reaching the end of a long line
  inside this margin point could be moved outside the scroll margin
  to the column defined by the value of hscroll-margin.  Its current
  default value 5 is a good value for this functionality and will
  remain unchanged.

- hscroll-step defines how many columns to scroll the window when
  point gets too close to the edge.  This variable could be used
  to define how many columns to scroll from the window edge when
  point jumps to the end of a long line.  Its current default
  value 0 (center) would be changed to 5.

> Note that my fix only applies to the default hscroll settings; if you
> have modified the hscroll parameters, your setting still apply.

Currently, with modified hscroll parameters point is positioned to the
sum of (hscroll-margin + hscroll-step) columns from the right edge
which is too far.  It should move by either hscroll-margin or hscroll-step.

-- 
http://www.jurta.org/emacs/

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

end of thread, other threads:[~2004-02-08  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-01  8:02 [jidanni@jidanni.org: pin the right edge of the text to the right edge of the monitor] Richard Stallman
2004-02-01 21:46 ` Kim F. Storm
2004-02-07  1:06 ` Kim F. Storm
2004-02-08  7:29   ` Juri Linkov

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