From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Edi Weitz Newsgroups: gmane.emacs.bugs Subject: Re: Syntax highlighting and indentation fails when there are parenthesis in the doc string Date: Sun, 10 Oct 2004 22:26:57 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1097440007 27552 80.91.229.6 (10 Oct 2004 20:26:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 10 Oct 2004 20:26:47 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 10 22:26:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CGkH8-0006aH-00 for ; Sun, 10 Oct 2004 22:26:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGkO2-0007zz-Ca for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Oct 2004 16:33:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CGkO1-0007zb-32 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 16:33:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CGkO0-0007zP-MH for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 16:33:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CGkO0-0007zM-J3 for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 16:33:44 -0400 Original-Received: from [62.159.208.90] (helo=miles.agharta.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CGkGw-0002f7-Qd for bug-gnu-emacs@gnu.org; Sun, 10 Oct 2004 16:26:27 -0400 Original-Received: from GROUCHO (trane.agharta.de [62.159.208.82]) by miles.agharta.de (Postfix) with ESMTP id D4AE42CC0F3; Sun, 10 Oct 2004 22:26:22 +0200 (CEST) Original-To: "Lennart Borgman" X-Home-Page: http://weitz.de/ Mail-Copies-To: never In-Reply-To: (Lennart Borgman's message of "Sun, 10 Oct 2004 14:14:14 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:9261 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:9261 On Sun, 10 Oct 2004 14:14:14 +0200, "Lennart Borgman" 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.