bugMIT/GNU Scheme - Bugs: bug #12430, Newline in Edwin doesn't result in...

 
 

bug #12430: Newline in Edwin doesn't result in break in `auto-fill-mode'

Submitted by:  Aaron Hawley <ashawley>
Submitted on:  Wed 23 Mar 2005 02:36:01 PM UTC  
 
Category: edwinSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Suboptimal behavior
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: Closed
Keywords: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 24 Oct 2005 01:55:51 AM UTC, comment #2:

Fixed in source. The problem is that the newline was being inserted before auto-fill-break was called, which did nothing.

Chris Hanson <cph>
Project Administrator
Wed 23 Mar 2005 02:39:57 PM UTC, comment #1:

Yuck, patches don't paste well. It's now attached.

Aaron Hawley <ashawley>
Wed 23 Mar 2005 02:36:01 PM UTC, original submission:

When the cursor (`current-point') goes just beyond `fill-column' and you hit RET, you get a newline without the previous last line being auto-filled. I was unable to figure out what was going on in the source code. I tried the following change to Edwin's Scheme code with no success, so I'm not sure where the problem exists:

--- basic.scm 14 Feb 2003 18:28:11 -0000 1.143
+++ basic.scm 23 Mar 2005 14:31:10 -0000
@@ -51,10 +51,11 @@
(if (not (fix:= t (group-modified-tick (mark-group point))))
(set! hairy? #t))))
(insert-chars char n)
(if (and allow-auto-fill?
(or (char=? #\space char)
+ (char=? #\return char)
(char=? #\newline char))
(current-minor-mode? (ref-mode-object auto-fill)))
(let ((t (group-modified-tick (mark-group point))))
(auto-fill-break (current-point))
(if (not (fix:= t (group-modified-tick (mark-group point))))

Aaron Hawley <ashawley>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #2775:  basic.scm_auto-fill-bug.diff added by ashawley (832B - text/plain - Here is the pasted patch.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 24 Oct 2005 01:55:51 AM UTCcphStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Wed 23 Mar 2005 02:39:57 PM UTCashawleyAttached File-=>Added basic.scm_auto-fill-bug.diff, #2341

Back to the top


Powered by Savane 3.1-cleanup1