bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C-comments in sgml-mode's html-mode


From: Edward Welbourne
Subject: Re: C-comments in sgml-mode's html-mode
Date: Mon, 23 Jul 2007 18:59:43 +0200

> Could you please, in the running session, move the cursor before
> instances of the involved characters (in all four positions), do M-x
> describe-char, and post the results here.  In addition, please tell us
> the values (with C-h v) for comment-start and comment-end in the
> affected buffer.

comment-start is a variable defined in `newcomment.el'.
Its value is "<!-- "
Local in buffer comment.html; global value is nil

This variable is safe as a file local variable if its value
satisfies the predicate `string-or-null-p'.

Documentation:
*String to insert to start a new comment, or nil if no comment syntax.


comment-end is a variable defined in `newcomment.el'.
Its value is " -->"
Local in buffer comment.html; global value is ""

This variable is safe as a file local variable if its value
satisfies the predicate `string-or-null-p'.

Documentation:
*String to insert to end a new comment.
Should be an empty string if comments are terminated by end-of-line.


Not sure what you mean by "in all four positions", but here are the
results for each of the four characters in " /* " in the title:

  character: SPC (32, #o40, #x20, U+0020)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x20
     syntax:    which means: whitespace
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x20
  file code: #x20 (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x20)

There are text properties here:
  face                 (bold underline)
  fontified            t


  character: / (47, #o57, #x2f, U+002F)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x2F
     syntax: . 14       which means: punctuation,
          is the first character of a comment-start sequence,
          is the second character of a comment-end sequence
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x2F
  file code: #x2F (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x2F)

There are text properties here:
  face                 (bold underline font-lock-comment-face)
  fontified            t


  character: * (42, #o52, #x2a, U+002A)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x2A
     syntax: . 23       which means: punctuation,
          is the second character of a comment-start sequence,
          is the first character of a comment-end sequence
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x2A
  file code: #x2A (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x2A)

There are text properties here:
  face                 (bold underline font-lock-comment-face)
  fontified            t


  character: SPC (32, #o40, #x20, U+0020)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x20
     syntax:    which means: whitespace
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x20
  file code: #x20 (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x20)

There are text properties here:
  face                 (bold underline font-lock-comment-face)
  fontified            t


Similarly, for " */ " in the comment after the title:


  character: SPC (32, #o40, #x20, U+0020)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x20
     syntax:    which means: whitespace
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x20
  file code: #x20 (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x20)

There are text properties here:
  face                 font-lock-comment-face
  fontified            t


  character: * (42, #o52, #x2a, U+002A)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x2A
     syntax: . 23       which means: punctuation,
          is the second character of a comment-start sequence,
          is the first character of a comment-end sequence
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x2A
  file code: #x2A (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x2A)

There are text properties here:
  face                 font-lock-comment-face
  fontified            t


  character: / (47, #o57, #x2f, U+002F)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x2F
     syntax: . 14       which means: punctuation,
          is the first character of a comment-start sequence,
          is the second character of a comment-end sequence
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x2F
  file code: #x2F (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x2F)

There are text properties here:
  face                 font-lock-comment-face
  fontified            t


  character: SPC (32, #o40, #x20, U+0020)
    charset: ascii (ASCII (ISO646 IRV))
 code point: #x20
     syntax:    which means: whitespace
   category: a:ASCII graphic characters 32-126 (ISO646 IRV:1983[4/0]) l:Latin
buffer code: #x20
  file code: #x20 (encoded by coding system undecided-unix)
    display: by this font (glyph code)
     -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO8859-1 (#x20)

There are text properties here:
  fontified            t


Is that what you wanted ?

        Eddy.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]