]> git.eshelyaron.com Git - emacs.git/commitdiff
* textmodes/paragraphs.el (mark-paragraph):
authorJuri Linkov <juri@jurta.org>
Mon, 13 Dec 2004 03:11:09 +0000 (03:11 +0000)
committerJuri Linkov <juri@jurta.org>
Mon, 13 Dec 2004 03:11:09 +0000 (03:11 +0000)
Extend the region when mark is active in transient-mark-mode,
regardless of the last command.  Doc fix.

lisp/textmodes/paragraphs.el

index 206f7a42f78cccbb89cd3e1cdd7a5a88fb596c32..353aa0ee8a2174d52014aa59d0d799193d7763fe 100644 (file)
@@ -357,13 +357,15 @@ the number of paragraphs marked equals ARG.
 If ARG is negative, point is put at end of this paragraph, mark is put
 at beginning of this or a previous paragraph.
 
-If this command is repeated, it marks the next ARG paragraphs after (or
-before, if arg is negative) the ones already marked."
+If this command is repeated or mark is active in Transient Mark mode,
+it marks the next ARG paragraphs after (or before, if arg is negative)
+the ones already marked."
   (interactive "p")
   (unless arg (setq arg 1))
   (when (zerop arg)
     (error "Cannot mark zero paragraphs"))
-  (cond ((and (eq last-command this-command) (mark t))
+  (cond ((or (and (eq last-command this-command) (mark t))
+            (and transient-mark-mode mark-active))
         (set-mark
          (save-excursion
            (goto-char (mark))