jed-users mailing list

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

Re: bug in what_abbrev_table


Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>abbrev.c:what_abbrev_table() leaves "Global" and "" on the stack if no
>abbrevivation table is associated with the current buffer. But
>abbrmisc.sl:define_abbreviation() expects there is an empty string
>(instead of Global) on the stack, which makes define_abbreviation()
>believe Global is defined and it tries to insert in it. This fails.

Does this patch correct the bug?  Thanks, --John

--- abbrev.c~	Sat Feb 26 13:24:15 2005
+++ abbrev.c	Thu Aug 18 13:05:23 2005
@@ -375,7 +375,7 @@
    
 	if (tbl == NULL)
 	  {
-	     (void) SLang_push_string ("Global");
+	     (void) SLang_push_string ("");
 	     (void) SLang_push_string ("");
 	     return;
 	  }

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


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