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

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

bug#10264: 24.0.92; Indentation not working in pascal-mode


From: Stefan Monnier
Subject: bug#10264: 24.0.92; Indentation not working in pascal-mode
Date: Tue, 13 Dec 2011 10:34:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

> 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))






reply via email to

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