changeset 52881:a2ef3d8f83d4

(easy-mmode-define-navigation): Avoid incf in macro expansion.
author Dave Love <fx@gnu.org>
date Mon, 20 Oct 2003 19:05:51 +0000
parents 9417a94488d3
children 23548da8a10f
files lisp/emacs-lisp/easy-mmode.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/easy-mmode.el	Mon Oct 20 17:16:16 2003 +0000
+++ b/lisp/emacs-lisp/easy-mmode.el	Mon Oct 20 19:05:51 2003 +0000
@@ -1,6 +1,6 @@
 ;;; 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>
@@ -440,7 +440,7 @@
 	 (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)))