aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Andrus2015-09-23 09:21:32 -0600
committerIvan Andrus2015-09-23 17:49:50 -0600
commitf247147d1646e1d80068d5d8aaf284707606fe9d (patch)
treeebf007beaa072edd01bcce8287960e682e468748
parentec0ddb5c7a27dd600a68940db762fc5c92550b08 (diff)
downloademacs-f247147d1646e1d80068d5d8aaf284707606fe9d.tar.gz
emacs-f247147d1646e1d80068d5d8aaf284707606fe9d.zip
; Implement Stefan's feedback on last two commits
-rw-r--r--lisp/newcomment.el5
-rw-r--r--lisp/nxml/nxml-mode.el3
2 files changed, 3 insertions, 5 deletions
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 765e60a5bcf..0c49211869e 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -418,7 +418,6 @@ If UNP is non-nil, unquote nested comment markers."
418 (setq cs (comment-string-strip cs t t)) 418 (setq cs (comment-string-strip cs t t))
419 (setq ce (comment-string-strip ce t t)) 419 (setq ce (comment-string-strip ce t t))
420 (when (and comment-quote-nested 420 (when (and comment-quote-nested
421 comment-quote-nested-function
422 (> (length ce) 0)) 421 (> (length ce) 0))
423 (funcall comment-quote-nested-function cs ce unp))) 422 (funcall comment-quote-nested-function cs ce unp)))
424 423
@@ -427,8 +426,8 @@ If UNP is non-nil, unquote nested comment markers."
427It expects to be called with the buffer narrowed to a single comment. 426It expects to be called with the buffer narrowed to a single comment.
428It is used as a default for `comment-quote-nested-function'. 427It is used as a default for `comment-quote-nested-function'.
429 428
430The arguments CS and CE are regular expressions matching comment 429The arguments CS and CE are strings matching comment starting and
431starting and ending delimiters respectively. 430ending delimiters respectively.
432 431
433If UNP is non-nil, comments are unquoted instead. 432If UNP is non-nil, comments are unquoted instead.
434 433
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el
index dc151a3c650..8b0dc9278c5 100644
--- a/lisp/nxml/nxml-mode.el
+++ b/lisp/nxml/nxml-mode.el
@@ -546,8 +546,7 @@ Many aspects this mode can be customized using
546 (setq comment-end-skip "[ \t\r\n]*-->") 546 (setq comment-end-skip "[ \t\r\n]*-->")
547 (make-local-variable 'comment-line-break-function) 547 (make-local-variable 'comment-line-break-function)
548 (setq comment-line-break-function 'nxml-newline-and-indent) 548 (setq comment-line-break-function 'nxml-newline-and-indent)
549 (make-local-variable 'comment-quote-nested-function) 549 (setq-local comment-quote-nested-function 'nxml-comment-quote-nested)
550 (setq comment-quote-nested-function 'nxml-comment-quote-nested)
551 (use-local-map nxml-mode-map) 550 (use-local-map nxml-mode-map)
552 (save-excursion 551 (save-excursion
553 (save-restriction 552 (save-restriction