help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: elisp errors


From: Barry Margolin
Subject: Re: elisp errors
Date: Fri, 23 Jan 2009 23:19:52 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article 
<address@hidden>,
 address@hidden wrote:

> Yes , only 1 message is enough. Cool tourdotimes, I didn't know.
> So accordingly to your advice:
> 
> 
> (defun indentTabs()
>  (interactive)
>   (   save-excursion ; cf
> http://www.cs.tut.fi/lintula/manual/elisp/emacs-lisp-intro-1.05/emacs-lisp-int
> ro_13.html#SEC145
> restores point to its original position
>     (   message "coucou"   )
>     (goto-char (point-min))
> (dotimes (i 100)
>   (c-indent-command)
>   (move-beginning-of-line 0)
>   (next-line 1)
>   )(message "fin partielle") ))
> 
> But debbuger displays still an error on c-indent-command:
> Debugger entered--Lisp error: (void-function c-indent-command)
>   (c-indent-command)
>   (while (< i --dotimes-limit--) (c-indent-command) (move-beginning-of-
> line 0) (next-line 1) (message "fin partielle") (setq i (1+ i)))
>   (let ((--dotimes-limit-- 100) (i 0)) (while (< i --dotimes-limit--)
> (c-indent-command) (move-beginning-of-line 0) (next-line 1) (message
> "fin partielle") (setq i ...)))
>   (dotimes (i 100) (c-indent-command) (move-beginning-of-line 0) (next-
> line 1) (message "fin partielle"))
>   eval((dotimes (i 100) (c-indent-command) (move-beginning-of-line 0)
> (next-line 1) (message "fin partielle")))
>   eval-last-sexp-1(nil)
>   eval-last-sexp(nil)
>   call-interactively(eval-last-sexp)
> :
> What is false with this command?

Maybe you haven't loaded cc-mode yet, so the command isn't defined.  Put:

(require 'cc-mode)

before it.

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

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