[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Syntax highlighting and indentation fails when there are parenthesis
Re: Syntax highlighting and indentation fails when there are parenthesis in the doc string
Sun, 10 Oct 2004 22:26:57 +0200
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt)
On Sun, 10 Oct 2004 14:14:14 +0200, "Lennart Borgman" <address@hidden> wrote:
> This is for emacs 21.3. To show the bug take the code below and put
> it in a buffer in emacs-lisp-mode. Then follow the instructions in
> the doc string.
> I have tested this on ms windows.
> - Lennart
> (defcustom some-variable t
> "Some doc with paretheses:
> (this is the line that give the error)
> This will mess indentation and syntax coloring in the properties part below.
> Please delete and put back lines below to show the problem!
> Do the same thing with the line above with parenthesis deleted."
> :tag "Some Tag"
> :group 'some-group
> :type 'boolean
> :set (lambda (symbol value)
> (add-to-list 'some-hook 'the-hook-fun)
> (set-default symbol value)
> (unless (boundp 'some-key) (setq some-key "\C-c\C-z"))
This is not a bug, it's documented somewhere (although I can't find
the reference right now). To prevent this either prepend open
parentheses in a docstring with a backslash - I think that's the
recommended way - or set open-paren-in-column-0-is-defun-start to NIL.
|[Prev in Thread]
||[Next in Thread]|
- Re: Syntax highlighting and indentation fails when there are parenthesis in the doc string,
Edi Weitz <=