GNU bug report logs -
#14589
24.3; lisp-mode and parenthesis in multi-line string
Previous Next
Reported by: andy peterson <andrewp <at> terra.com.br>
Date: Tue, 11 Jun 2013 15:49:01 UTC
Severity: minor
Tags: notabug
Found in version 24.3
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14589 in the body.
You can then email your comments to 14589 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14589
; Package
emacs
.
(Tue, 11 Jun 2013 15:49:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
andy peterson <andrewp <at> terra.com.br>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 11 Jun 2013 15:49:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
1. open emacs. emacs -q
2. open new buffer ^X b foo
3. enter lisp mode, M-x lisp-mode
4. enter the following multi-line lisp string:
"
()
"
The opening parenthesis has to be the first character on the line.
Note that the opening parenthesis remains highlighted.
I believe this bug has consequences for Slime and Paredit.
Slime won't let me evaluate expressions with such a string.
And Paredit is confused.
In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.0)
of 2013-04-14 on marid, modified by Debian
Windowing system distributor `The X.Org Foundation
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14589
; Package
emacs
.
(Tue, 11 Jun 2013 16:04:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 14589 <at> debbugs.gnu.org (full text, mbox):
andy peterson wrote:
> 1. open emacs. emacs -q
> 2. open new buffer ^X b foo
> 3. enter lisp mode, M-x lisp-mode
> 4. enter the following multi-line lisp string:
> "
> ()
> "
>
> The opening parenthesis has to be the first character on the line.
>
> Note that the opening parenthesis remains highlighted.
This is an extremely long-standing convention. See
C-h i m emacs RET
i parenthesis in column zero and fontification RET
Comment and string fontification (or "syntactic" fontification)
relies on analysis of the syntactic structure of the buffer text. For
the sake of speed, some modes, including Lisp mode, rely on a special
convention: an open-parenthesis or open-brace in the leftmost column
always defines the beginning of a defun, and is thus always outside any
string or comment. Therefore, you should avoid placing an
open-parenthesis or open-brace in the leftmost column, if it is inside
a string or comment. See Left Margin Paren, for details.
> I believe this bug has consequences for Slime and Paredit.
> Slime won't let me evaluate expressions with such a string.
> And Paredit is confused.
Probably expected behaviour. You could ask the maintainers of those
(external) modes about it.
bug closed, send any further explanations to
14589 <at> debbugs.gnu.org and andy peterson <andrewp <at> terra.com.br>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 11 Jun 2013 17:07:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 10 Jul 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 41 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.