aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-10-24 21:01:20 +0000
committerLuc Teirlinck2004-10-24 21:01:20 +0000
commit6faab05fa2df75c4423b2017a4ce7645f7a1170b (patch)
tree58b797414fb14be559ef067493c6f880a26c35d9
parentd1eb6c47fa00d7f3e5b13b2138555e581768df55 (diff)
downloademacs-6faab05fa2df75c4423b2017a4ce7645f7a1170b.tar.gz
emacs-6faab05fa2df75c4423b2017a4ce7645f7a1170b.zip
(set-left-margin, set-right-margin): Delete redundant code.
(increase-right-margin): Remove erroneous call to `interactive-p'.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/indent.el8
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f613fda3035..e99856fe5f3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-10-24 Luc Teirlinck <teirllm@auburn.edu>
2
3 * indent.el (set-left-margin, set-right-margin): Delete redundant
4 code.
5 (increase-right-margin): Remove erroneous call to `interactive-p'.
6
12004-10-24 Kim F. Storm <storm@cua.dk> 72004-10-24 Kim F. Storm <storm@cua.dk>
2 8
3 * help.el (describe-mode): Fix 2004-10-13 change. 9 * help.el (describe-mode): Fix 2004-10-13 change.
diff --git a/lisp/indent.el b/lisp/indent.el
index e1a9cae4819..9713268f03b 100644
--- a/lisp/indent.el
+++ b/lisp/indent.el
@@ -205,7 +205,6 @@ If `auto-fill-mode' is active, re-fill the region to fit the new margin.
205Interactively, WIDTH is the prefix argument, if specified. 205Interactively, WIDTH is the prefix argument, if specified.
206Without prefix argument, the command prompts for WIDTH." 206Without prefix argument, the command prompts for WIDTH."
207 (interactive "r\nNSet left margin to column: ") 207 (interactive "r\nNSet left margin to column: ")
208 (if (interactive-p) (setq width (prefix-numeric-value width)))
209 (save-excursion 208 (save-excursion
210 ;; If inside indentation, start from BOL. 209 ;; If inside indentation, start from BOL.
211 (goto-char from) 210 (goto-char from)
@@ -229,7 +228,6 @@ If `auto-fill-mode' is active, re-fill the region to fit the new margin.
229Interactively, WIDTH is the prefix argument, if specified. 228Interactively, WIDTH is the prefix argument, if specified.
230Without prefix argument, the command prompts for WIDTH." 229Without prefix argument, the command prompts for WIDTH."
231 (interactive "r\nNSet right margin to width: ") 230 (interactive "r\nNSet right margin to width: ")
232 (if (interactive-p) (setq width (prefix-numeric-value width)))
233 (save-excursion 231 (save-excursion
234 (goto-char from) 232 (goto-char from)
235 (skip-chars-backward " \t") 233 (skip-chars-backward " \t")
@@ -289,12 +287,10 @@ to change the margin by, in characters. A negative argument decreases
289the right margin width. 287the right margin width.
290If `auto-fill-mode' is active, re-fill the region to fit the new margin." 288If `auto-fill-mode' is active, re-fill the region to fit the new margin."
291 (interactive "r\nP") 289 (interactive "r\nP")
292 (if (interactive-p) 290 (setq inc (if inc (prefix-numeric-value inc) standard-indent))
293 (setq inc (if inc (prefix-numeric-value current-prefix-arg)
294 standard-indent)))
295 (save-excursion 291 (save-excursion
296 (alter-text-property from to 'right-margin 292 (alter-text-property from to 'right-margin
297 (lambda (v) (+ inc (or v 0)))) 293 (lambda (v) (+ inc (or v 0))))
298 (if auto-fill-function 294 (if auto-fill-function
299 (fill-region from to nil t t)))) 295 (fill-region from to nil t t))))
300 296