aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2001-12-07 03:34:59 +0000
committerRichard M. Stallman2001-12-07 03:34:59 +0000
commitc3f9a06ab999435ee7ef049803614c4c03e55656 (patch)
tree028bc8b1bc2c4ec3611e666feff5d3b02fed2e29
parentf00d330457b37733ab98886bf3354c9145ab1fbb (diff)
downloademacs-c3f9a06ab999435ee7ef049803614c4c03e55656.tar.gz
emacs-c3f9a06ab999435ee7ef049803614c4c03e55656.zip
(set-justification): Rename arg VALUE to STYLE.
(set-justification-left, set-justification-right): Doc fix.
-rw-r--r--lisp/textmodes/fill.el19
1 files changed, 11 insertions, 8 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index 4995e25d674..34fa1f544bb 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -841,13 +841,15 @@ However, it returns nil rather than `none' to mean \"don't justify\"."
841 nil 841 nil
842 j))) 842 j)))
843 843
844(defun set-justification (begin end value &optional whole-par) 844(defun set-justification (begin end style &optional whole-par)
845 "Set the region's justification style. 845 "Set the region's justification style to STYLE.
846The kind of justification to use is prompted for. 846This commands prompts for the kind of justification to use.
847If the mark is not active, this command operates on the current paragraph. 847If the mark is not active, this command operates on the current paragraph.
848If the mark is active, the region is used. However, if the beginning and end 848If the mark is active, it operates on the region. However, if the
849of the region are not at paragraph breaks, they are moved to the beginning and 849beginning and end of the region are not at paragraph breaks, they are
850end of the paragraphs they are in. 850moved to the beginning and end \(respectively) of the paragraphs they
851are in.
852
851If `use-hard-newlines' is true, all hard newlines are taken to be paragraph 853If `use-hard-newlines' is true, all hard newlines are taken to be paragraph
852breaks. 854breaks.
853 855
@@ -881,7 +883,7 @@ extended to include entire paragraphs as in the interactive command."
881 883
882 (narrow-to-region (point-min) end) 884 (narrow-to-region (point-min) end)
883 (unjustify-region begin (point-max)) 885 (unjustify-region begin (point-max))
884 (put-text-property begin (point-max) 'justification value) 886 (put-text-property begin (point-max) 'justification style)
885 (fill-region begin (point-max) nil t)))) 887 (fill-region begin (point-max) nil t))))
886 888
887(defun set-justification-none (b e) 889(defun set-justification-none (b e)
@@ -893,6 +895,7 @@ If the mark is not active, this applies to the current paragraph."
893 895
894(defun set-justification-left (b e) 896(defun set-justification-left (b e)
895 "Make paragraphs in the region left-justified. 897 "Make paragraphs in the region left-justified.
898This means they are flush at the left margin and ragged on the right.
896This is usually the default, but see the variable `default-justification'. 899This is usually the default, but see the variable `default-justification'.
897If the mark is not active, this applies to the current paragraph." 900If the mark is not active, this applies to the current paragraph."
898 (interactive (list (if mark-active (region-beginning) (point)) 901 (interactive (list (if mark-active (region-beginning) (point))
@@ -901,7 +904,7 @@ If the mark is not active, this applies to the current paragraph."
901 904
902(defun set-justification-right (b e) 905(defun set-justification-right (b e)
903 "Make paragraphs in the region right-justified. 906 "Make paragraphs in the region right-justified.
904Flush at the right margin and ragged on the left. 907This means they are flush at the right margin and ragged on the left.
905If the mark is not active, this applies to the current paragraph." 908If the mark is not active, this applies to the current paragraph."
906 (interactive (list (if mark-active (region-beginning) (point)) 909 (interactive (list (if mark-active (region-beginning) (point))
907 (if mark-active (region-end) (point)))) 910 (if mark-active (region-end) (point))))