GNU bug report logs - #3371
23.0.94; doc of `comment-style'

Previous Next

Package: emacs;

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

Date: Mon, 25 May 2009 02:20:03 UTC

Severity: minor

Tags: notabug

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 3371 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Drew Adams <drew.adams <at> oracle.com>, 3371 <at> debbugs.gnu.org
Subject: Re: bug#3371: 23.0.94; doc of `comment-style'
Date: Mon, 25 May 2009 09:04:35 +0200
[Message part 1 (text/plain, inline)]
> "Style to be used for `comment-region'.
> See `comment-styles' for a list of available styles."
>
> 1. Put the available styles here.
>
> 2. There is no such function or variable as `comment-styles'.

We probably could add two autoload cookies to newcomment.el (I don't
recall why I wanted the one for `comment-empty-lines' once).

martin
[newcomment.el.diff (text/plain, inline)]
*** newcomment.el.~1.116.~	2009-01-05 09:59:16.000000000 +0100
--- newcomment.el	2009-05-25 08:36:37.000000000 +0200
***************
*** 185,190 ****
--- 185,191 ----
  This should generally stay 0, except for a few modes like Lisp where
  it is 1 so that regions are commented with two or three semi-colons.")
  
+ ;;;###autoload
  (defconst comment-styles
    '((plain	. (nil nil nil nil))
      (indent	. (nil nil nil t))
***************
*** 240,245 ****
--- 241,247 ----
    :type 'boolean
    :group 'comment)
  
+ ;;;###autoload
  (defcustom comment-empty-lines nil
    "If nil, `comment-region' does not comment out empty lines.
  If t, it always comments out empty lines.
***************
*** 1232,1238 ****
                               (buffer-substring (point)
                                                 (progn (move-to-left-margin)
                                                        (point)))))))))))))
!                     
  
  ;;;###autoload
  (defun comment-indent-new-line (&optional soft)
--- 1234,1240 ----
                               (buffer-substring (point)
                                                 (progn (move-to-left-margin)
                                                        (point)))))))))))))
! 
  
  ;;;###autoload
  (defun comment-indent-new-line (&optional soft)

This bug report was last modified 13 years and 319 days ago.

Previous Next


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