emacs-devel
[Top][All Lists]
Advanced

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

Re: Indentation of constants in LISP


From: A Soare
Subject: Re: Indentation of constants in LISP
Date: Tue, 20 Feb 2007 16:28:50 +0100 (CET)

I forgot to check that I am inside a LISP expression in order to make sense to 
align constant symbols.

Here is a patch that fixes the bug just reported.

Alin Soare

cvs -d:pserver:address@hidden:/sources/emacs diff -c 
emacs/lisp/emacs-lisp/lisp-mode.el

Index: emacs/lisp/emacs-lisp/lisp-mode.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/emacs-lisp/lisp-mode.el,v
retrieving revision 1.199
diff -c -r1.199 lisp-mode.el
*** emacs/lisp/emacs-lisp/lisp-mode.el  17 Feb 2007 11:34:22 -0000      1.199
--- emacs/lisp/emacs-lisp/lisp-mode.el  20 Feb 2007 15:26:46 -0000
***************
*** 913,919 ****
                   ;; test whether current line begins with a constant
                   (goto-char indent-point)
                   (skip-chars-forward " \t")
!                  (looking-at ":"))
                 (let ((desired-indent
                        (save-excursion
                          (goto-char (1+ containing-sexp))
--- 913,920 ----
                   ;; test whether current line begins with a constant
                   (goto-char indent-point)
                   (skip-chars-forward " \t")
!                  (and (looking-at ":")
!                       containing-sexp))
                 (let ((desired-indent
                        (save-excursion
                          (goto-char (1+ containing-sexp))






reply via email to

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