Hello, I found a bug concerning the function calculate-lisp-indent in lisp-mode.el. It is triggered in the following scenarios (-!- marks the point): ---begin scenario 1 buffer *scratch*--- (,@foo :bar)-!- ---end scenario 1 buffer *scratch*--- ---begin scenario 2 buffer *scratch*--- ( foo :bar)-!- ---end scenario 2 buffer *scratch*--- Using (bound to the function lisp-indent-line) triggers the following error in both scenarios: ---begin error--- forward-sexp: Scan error: "Containing expression ends prematurely", 192, 192 ---end error--- I traced this bug to the function calculate-lisp-indent. As far as I understand the code, the characters ",@" in scenario 1 and the spaces in scenario 2 are not treated correctly. In this E-Mail I included a patch, that solves the problems for me, and was created with the command mhoram@revelstone:~/emacs/trunk/emacs/lisp$ cvs diff -c > ~/emacs-bugreport.txt The patch works for scenario 1 by an additional call of the (backward-prefix-chars) function, which sets point back to the beginning of ",@". For scenario 2 the addition of "\\|([ \t]+" solves the problem, by not entering the while-loop (and thus calling the function (forward-sexp -1)), if there are only spaces between the "(" and the first object. Regards, Markus Sauermann In GNU Emacs 22.3.1 (i386-mingw-nt6.0.6001) of 2008-09-06 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (3.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: encoded-kbd-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t Recent input: q ( , @ f o o : b a r ) M-x r e p o r t Recent messages: ("D:\\Uninstalled\\emacs-22.3\\bin\\emacs.exe" "-q") Loading encoded-kb...done For information about GNU Emacs and the GNU system, type C-h C-a. forward-sexp: Scan error: "Containing expression ends prematurely", 192, 192 Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done -- Markus Sauermann E-Mail: info@sauermann-consulting.de Clemensstr. 55 Rgb. Web: http://www.sauermann-consulting.de 80803 München Tel: 089/337707, 0179/9879005, Fax: 089/38476434