Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
608d9d7c
Commit
608d9d7c
authored
Oct 23, 2012
by
Chong Yidong
Browse files
* lisp/newcomment.el (comment-normalize-vars): Doc fix.
Fixes: debbugs:12583
parent
4ff5b1b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/newcomment.el
lisp/newcomment.el
+12
-5
No files found.
lisp/ChangeLog
View file @
608d9d7c
2012-10-23 Chong Yidong <cyd@gnu.org>
* newcomment.el (comment-normalize-vars): Doc fix (Bug#12583).
2012-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
* subr.el (internal-temp-output-buffer-show): Rename from
...
...
lisp/newcomment.el
View file @
608d9d7c
...
...
@@ -24,7 +24,13 @@
;;; Commentary:
;; A replacement for simple.el's comment-related functions.
;; This library contains functions and variables for commenting and
;; uncommenting source code.
;; Prior to calling any `comment-*' function, you should ensure that
;; `comment-normalize-vars' is first called to set up the appropriate
;; variables; except for the `comment-*' commands, which call
;; `comment-normalize-vars' automatically as a subroutine.
;;; Bugs:
...
...
@@ -326,10 +332,11 @@ terminated by the end of line (i.e. `comment-end' is empty)."
;;;###autoload
(
defun
comment-normalize-vars
(
&optional
noerror
)
"Check and setup the variables needed by other commenting functions.
Any command calling functions from newcomment.el should call this function
before any other, so the rest of the code can assume that the variables are
properly set."
"Check and set up variables needed by other commenting functions.
All the `comment-*' commands call this function to set up various
variables, like `comment-start', to ensure that the commenting
functions work correctly. Lisp callers of any other `comment-*'
function should first call this function explicitly."
(
unless
(
and
(
not
comment-start
)
noerror
)
(
unless
comment-start
(
let
((
cs
(
read-string
"No comment syntax is defined. Use: "
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment