# HG changeset patch # User Richard M. Stallman # Date 882774619 0 # Node ID 07a8c7f7cfe8e3629e264d10dcb369a119311709 # Parent c096aa58101355cf5d8c6e95f134418b239b806c (cc-imenu-objc-function): Use bufsubst-fun as a variable, not as a function. diff -r c096aa581013 -r 07a8c7f7cfe8 lisp/progmodes/cc-menus.el --- a/lisp/progmodes/cc-menus.el Mon Dec 22 06:06:54 1997 +0000 +++ b/lisp/progmodes/cc-menus.el Mon Dec 22 07:10:19 1997 +0000 @@ -279,9 +279,9 @@ ;; ;; Does this emacs has buffer-substring-no-properties? ;; - (fset 'bufsubst-fun (if (fboundp 'buffer-substring-no-properties) - (symbol-function 'buffer-substring-no-properties) - (symbol-function 'buffer-substring))) + (setq bufsubst-fun (if (fboundp 'buffer-substring-no-properties) + (symbol-function 'buffer-substring-no-properties) + (symbol-function 'buffer-substring))) (goto-char (point-max)) (imenu-progress-message stupid 0) ;; @@ -293,7 +293,8 @@ ((match-beginning C3) C3) ((match-beginning C2) C2) ((match-beginning C1) C1)))) - (setq str (bufsubst-fun (match-beginning langnum) (match-end langnum))) + (setq str (funcall bufsubst-fun + (match-beginning langnum) (match-end langnum))) ;; (cond ;;