jed-users mailing list

[2002 Date Index] [2002 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: cmode custom_variable C_Autoinsert_CPP_Comments


Charl P. Botha <c.p.botha@xxxxxxxxxxxxxx> wrote:
>JED still automatically adds "//" to the beginning of newlines if the
>previous line had something after the initial "//" (e.g. // hello).  If the
>previous line had only "//", the beginning of the new line doesn't have "//"
>automatically prepended.  With C_Autoinsert_CPP_Comments, it automatically
>prepends a "//" the new line even if the previous line only had "//" with
>nothing after.

I am unable to reproduce this behavior.  Ok, I know why --- I already
fixed it:

--- /nfs/cxc/h1/davis/src/release/jed/jed-B0.99-15/lib/cmode.sl	Mon Oct  8 00:48:16 2001
+++ /nfs/cxc/h1/davis/src/jed/lib/cmode.sl	Thu Feb  7 01:23:25 2002
@@ -559,7 +559,7 @@
 	!if ((looking_at(notCcomment)) or not(eolp()))
 	  {
 	     goto_column(col);
-	     insert(notCcomment);
+	     if (C_Autoinsert_CPP_Comments) insert(notCcomment);
 	  }
 	return;
      }

--John

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2002 date index] [2002 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]