GNU bug report logs - #10264
24.0.92; Indentation not working in pascal-mode

Previous Next

Package: emacs;

Reported by: Grzegorz Kowzan <grzegorz.kowzan <at> gmail.com>

Date: Sat, 10 Dec 2011 16:56:02 UTC

Severity: important

Found in version 24.0.92

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 10264-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Grzegorz Kowzan <grzegorz.kowzan <at> gmail.com>
Cc: 10264-done <at> debbugs.gnu.org
Subject: Re: bug#10264: 24.0.92; Indentation not working in pascal-mode
Date: Tue, 13 Dec 2011 10:34:35 -0500
> 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))





This bug report was last modified 13 years and 241 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.