unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: Line Continuation Bugs & Patch
       [not found] <20020520033228O.applause@elfmimi.jp>
@ 2002-05-20 14:48 ` Richard Stallman
  2002-05-21 22:19   ` Ein Terakawa
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2002-05-20 14:48 UTC (permalink / raw)
  Cc: emacs-devel

    Emacs-21 currently has a number of bugs concerning line continuation.
    That is mainly in the code which handle !it->truncate_lines_p.
    I checked Emacs-21.1 , Emacs-21.2 and one in the cvs tree (21.2.50).

Could you send us the patches that apply to Emacs 21.2 and to the CVS
tree (21.2.50)?  We would probably like to install the patches.

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

* Re: Line Continuation Bugs & Patch
  2002-05-20 14:48 ` Line Continuation Bugs & Patch Richard Stallman
@ 2002-05-21 22:19   ` Ein Terakawa
  2002-05-26 22:25     ` Richard Stallman
  0 siblings, 1 reply; 4+ messages in thread
From: Ein Terakawa @ 2002-05-21 22:19 UTC (permalink / raw)



Well, I just created patches for 21.2 and 21.2.50 .

There is one thing I'm not clear.
That is the follwing line in window_scroll_pixel_based of window.c .
      w->start_at_line_beg = Fbolp ();
I think we can't say  PT == window-start  here. Am I right?

I'll be happy if you can decide to install the patch just by looking at
the chages the patch makes, and if I don't have to do things like detailed
description. If so I'can just proceed to the farther step of line
continuation issue.
Please let me know if there is something I'm supposed to do.


Notice:

* As for 21.2.50 the patch intentionally overrides a change
  done by gerd at revision 1.150 of indent.c .

* Some messy keywords ('XXX' and 'XXXX') are contained.

* No change logs.


Here are the new patches.
http://applause.elfmimi.jp/emacs-lisp/emacs-21.1-proper-continuation-20020520.diff.gz
http://applause.elfmimi.jp/emacs-lisp/emacs-21.2-proper-continuation-20020520.diff.gz
http://applause.elfmimi.jp/emacs-lisp/emacs-21.2.50-proper-continuation-20020520.diff.gz
# Thanks to the flexibility of the patch command
# patch for 21.1 can also be applied to 21.2 .

----
Ein Terakawa <applause@elfmimi.jp>

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

* Re: Line Continuation Bugs & Patch
  2002-05-21 22:19   ` Ein Terakawa
@ 2002-05-26 22:25     ` Richard Stallman
  2002-05-27 20:08       ` Ein Terakawa
  0 siblings, 1 reply; 4+ messages in thread
From: Richard Stallman @ 2002-05-26 22:25 UTC (permalink / raw)
  Cc: emacs-devel

    That is the follwing line in window_scroll_pixel_based of window.c .
	  w->start_at_line_beg = Fbolp ();
    I think we can't say  PT == window-start  here. Am I right?

You are right.  So it is a bug to use Fbolp there.
Does this fix it?

*** window.c.~1.414.~	Sat Apr 27 15:54:02 2002
--- window.c	Sun May 26 14:30:50 2002
***************
*** 4162,4171 ****
  
    if (! vscrolled)
      {
        /* Set the window start, and set up the window for redisplay.  */
!       set_marker_restricted (w->start, make_number (IT_CHARPOS (it)),
  			     w->buffer);
!       w->start_at_line_beg = Fbolp ();
        w->update_mode_line = Qt;
        XSETFASTINT (w->last_modified, 0);
        XSETFASTINT (w->last_overlay_modified, 0);
--- 4162,4175 ----
  
    if (! vscrolled)
      {
+       int pos = IT_CHARPOS (it);
+       int bytepos;
        /* Set the window start, and set up the window for redisplay.  */
!       set_marker_restricted (w->start, make_number (pos),
  			     w->buffer);
!       bytepos = XMARKER (w->start)->bytepos;
!       w->start_at_line_beg = ((pos == BEGV || FETCH_BYTE (bytepos - 1) == '\n')
! 			      ? Qt : Qnil);
        w->update_mode_line = Qt;
        XSETFASTINT (w->last_modified, 0);
        XSETFASTINT (w->last_overlay_modified, 0);

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

* Re: Line Continuation Bugs & Patch
  2002-05-26 22:25     ` Richard Stallman
@ 2002-05-27 20:08       ` Ein Terakawa
  0 siblings, 0 replies; 4+ messages in thread
From: Ein Terakawa @ 2002-05-27 20:08 UTC (permalink / raw)
  Cc: emacs-devel

> Does this fix it?
Yes, it is mostly the same change that I included in the patch.
Besides, it didn't seem to be causing any noticeable bug for a user.
At this point of time I mean.

----
Ein Terakawa <applause@elfmimi.jp>

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

end of thread, other threads:[~2002-05-27 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20020520033228O.applause@elfmimi.jp>
2002-05-20 14:48 ` Line Continuation Bugs & Patch Richard Stallman
2002-05-21 22:19   ` Ein Terakawa
2002-05-26 22:25     ` Richard Stallman
2002-05-27 20:08       ` Ein Terakawa

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