GNU bug report logs - #31623
27.0; Elisp manual, index entry "; in comment"

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 28 May 2018 14:36:01 UTC

Severity: minor

Tags: fixed

Found in version 27.0

Fixed in version 26.2

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Drew Adams <drew.adams <at> oracle.com>
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: 31623 <at> debbugs.gnu.org
Subject: bug#31623: 27.0; Elisp manual, index entry "; in comment"
Date: Tue, 29 May 2018 16:47:07 -0700 (PDT)
> > From the text of index entry "; in comment" I would expect a node that
> > talks about the use of `;' inside a comment.  I cannot imagine what
> > other sense someone might make of this index-entry text.
> >
> > But the target of the index entry, node `Comments', does not seem to
> > say anything about a `;' character inside a comment.
> 
> As far as I can tell, it refers to this sentence:
> 
>     In Lisp, a semicolon (`;') starts a comment if it is not
>     within a string or character constant.
> 
> So, if it is not "within a string or character constant" then the
> semicolon is in a comment.

OK, if you say so. ;-)  I was thinking more about "in"
meaning after `comment-start'.  But yes, I guess that's
what was intended.

If that's the intention then I think it might be clearer
if the index entry were "; outside a comment" or maybe
"; not in a comment".

In any case, that statement is not really true: a semicolon
does not always start a comment in Lisp whenever it is not
within a string or a character constant.  There is also the
case of it being escaped in a symbol name.  E.g.,

(setq a\;b  42)

(Dunno whether there are additional cases - perhaps not.)




This bug report was last modified 6 years and 339 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.