mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(comment-with-narrowing): Use the `declare' thingy.
This commit is contained in:
parent
12a1174598
commit
4745e73833
1 changed files with 1 additions and 2 deletions
|
|
@ -734,12 +734,11 @@ This is used for `extra-line' style (or `box' style if BLOCK is specified)."
|
|||
(cons (concat cs "\n" (make-string min-indent ? ) ccs)
|
||||
(concat cce "\n" (make-string (+ min-indent eindent) ? ) ce))))
|
||||
|
||||
(def-edebug-spec comment-with-narrowing t)
|
||||
(put 'comment-with-narrowing 'lisp-indent-function 2)
|
||||
(defmacro comment-with-narrowing (beg end &rest body)
|
||||
"Execute BODY with BEG..END narrowing.
|
||||
Space is added (and then removed) at the beginning for the text's
|
||||
indentation to be kept as it was before narrowing."
|
||||
(declare (debug t) (indent 2))
|
||||
(let ((bindent (make-symbol "bindent")))
|
||||
`(let ((,bindent (save-excursion (goto-char beg) (current-column))))
|
||||
(save-restriction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue