+2003-10-20 Dave Love <fx@gnu.org>
+
+ * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation): Avoid
+ incf in macro expansion.
+
2003-10-20 John Paul Wallington <jpw@gnu.org>
* emacs-lisp/elint.el (elint-check-defcustom-form): Don't use
;;; easy-mmode.el --- easy definition for major and minor modes
-;; Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
+;; Copyright (C) 1997, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
;; Author: Georges Brun-Cottan <Georges.Brun-Cottan@inria.fr>
;; Maintainer: Stefan Monnier <monnier@gnu.org>
(interactive)
(unless count (setq count 1))
(if (< count 0) (,prev-sym (- count))
- (if (looking-at ,re) (incf count))
+ (if (looking-at ,re) (setq count (1+ count)))
(if (not (re-search-forward ,re nil t count))
(if (looking-at ,re)
(goto-char (or ,(if endfun `(,endfun)) (point-max)))