help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] smalltalk-mode typo


From: Mathieu Suen
Subject: Re: [Help-smalltalk] smalltalk-mode typo
Date: Mon, 10 Jan 2011 20:58:16 +0100

Hi Denis

On Jan 10, 2011, at 8:11 PM, Denis Washington wrote:

> Hi,
> 
> With today's git master, smalltalk-mode stopped working for me with Emacs 23 
> (void-variable smalltalk-previous-keyword). After a little investigation, I 
> found what seems to be a simple typo in today's changes to smalltalk-mode.el:
> 
> (defun* smalltalk-previous-keyword ...
> 
> (defun* smalltalk-next-keyword ...
> 
> Removing the '*' symbol from both function definitions removed the problem 
> and makes smalltalk-mode work again from me. A patch is attached.

defun* is provided by cl so I suggest this instead:
diff --git a/smalltalk-mode.el b/smalltalk-mode.el
index fc2a587..7284900 100644
--- a/smalltalk-mode.el
+++ b/smalltalk-mode.el
@@ -25,6 +25,8 @@
 ;;; Incorporates Frank Caggiano's changes for Emacs 19.
 ;;; Updates and changes for Emacs 20 and 21 by David Forster
 
+(require 'cl)
+
 ;; ===[ Variables and constants ]=====================================
 
 (defvar smalltalk-name-regexp "[A-z][A-z0-9_]*"

You can fetch it from my repository:
rev:
cdff882 https://github.com/mathk/smalltalk/commit/cdff882

Let me know if that fix the issue.


> 
> Regards,
> Denis
> <smalltalk-mode.diff>_______________________________________________
> help-smalltalk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-smalltalk

        Mathieu

__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible 
contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail



reply via email to

[Prev in Thread] Current Thread [Next in Thread]