unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Edi Weitz <edi@agharta.de>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Syntax highlighting and indentation fails when there are parenthesis in the doc string
Date: Sun, 10 Oct 2004 22:26:57 +0200	[thread overview]
Message-ID: <uis9ipbe6.fsf@agharta.de> (raw)
In-Reply-To: <mailman.2425.1097435684.2017.bug-gnu-emacs@gnu.org> (Lennart Borgman's message of "Sun, 10 Oct 2004 14:14:14 +0200")

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.

       reply	other threads:[~2004-10-10 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2425.1097435684.2017.bug-gnu-emacs@gnu.org>
2004-10-10 20:26 ` Edi Weitz [this message]
2004-10-10 12:14 Syntax highlighting and indentation fails when there are parenthesis in the doc string Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uis9ipbe6.fsf@agharta.de \
    --to=edi@agharta.de \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).