1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-24 10:38:38 +00:00

(generic-mode-set-comments): Use "" rather than nil for comment-end.

This commit is contained in:
Stefan Monnier 2001-03-29 14:16:37 +00:00
parent e2b8a83076
commit 1ac1fa9626
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,12 @@
2001-03-29 Stefan Monnier <monnier@cs.yale.edu>
* generic.el (generic-mode-set-comments): Use "" rather than nil
for comment-end.
2001-03-29 Gerd Moellmann <gerd@gnu.org>
* emacs-lisp/advice.el (ad-make-advised-definition): Call
interactive-form to obtain the interactive spec of subrs.
* emacs-lisp/advice.el (ad-make-advised-definition):
Call interactive-form to obtain the interactive spec of subrs.
* subr.el (interactive-form): New function.

View File

@ -309,7 +309,7 @@ Some generic modes are defined in `generic-x.el'."
(concat comment-start-skip "\\|" (regexp-quote start) "+\\s-*")))
;; First comment-style
(setq comment-start start)
(setq comment-end (unless (string-equal end "\n") end))
(setq comment-end (if (string-equal end "\n") "" end))
(setq comment-start-skip (concat (regexp-quote start) "+\\s-*")))
;; Reuse comstyles if necessary