unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Syntax highlighting and indentation fails when there are parenthesis in the doc string
@ 2004-10-10 12:14 Lennart Borgman
  0 siblings, 0 replies; 2+ messages in thread
From: Lennart Borgman @ 2004-10-10 12:14 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Syntax highlighting and indentation fails when there are parenthesis in the doc string
       [not found] <mailman.2425.1097435684.2017.bug-gnu-emacs@gnu.org>
@ 2004-10-10 20:26 ` Edi Weitz
  0 siblings, 0 replies; 2+ messages in thread
From: Edi Weitz @ 2004-10-10 20:26 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On Sun, 10 Oct 2004 14:14:14 +0200, "Lennart Borgman" <lennart.borgman.073@student.lu.se> 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.

Cheers,
Edi.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-10 20:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-10 12:14 Syntax highlighting and indentation fails when there are parenthesis in the doc string Lennart Borgman
     [not found] <mailman.2425.1097435684.2017.bug-gnu-emacs@gnu.org>
2004-10-10 20:26 ` Edi Weitz

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).