Subject: Re: bug#10264: 24.0.92; Indentation not working in pascal-mode
From: Stefan Monnier <[email-masked]>
To: Grzegorz Kowzan <[email-masked]>
Cc: [email-masked]
Date: Tue, 13 Dec 2011 10:34:35 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

> Create a buffer and enter pascal-mode, then write for example:
> program some_program;

> begin

> end.

> and press <TAB> between "begin" and "end."  Produces an error message in
> minibuffer "Symbol's value as variable void: ind" and does nothing else.

Duh!
I've install the patch below which should fix this problem.
Sorry 'bout that.

        Stefan

--- lisp/progmodes/pascal.el	2011-11-20 03:48:53 +0000
+++ lisp/progmodes/pascal.el	2011-12-13 15:16:53 +0000
@@ -786,6 +786,7 @@
     (if (looking-at "[ \t]+$")
 	(skip-chars-forward " \t"))))
 
+(defvar ind)			       ;Used via `eval' in pascal-indent-alist.
 (defun pascal-indent-line ()
   "Indent current line as a Pascal statement."
   (let* ((indent-str (pascal-calculate-indent))