[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v
From: |
Juri Linkov |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v |
Date: |
Sat, 06 Oct 2007 22:15:11 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Juri Linkov <jurta> 07/10/06 22:15:10
Index: fill.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/textmodes/fill.el,v
retrieving revision 1.205
retrieving revision 1.206
diff -u -b -r1.205 -r1.206
--- fill.el 26 Jul 2007 05:27:32 -0000 1.205
+++ fill.el 6 Oct 2007 22:15:10 -0000 1.206
@@ -1007,6 +1007,18 @@
(goto-char end))))
fill-pfx))
+(defun fill-paragraph-or-region (arg)
+ "Fill the active region or current paragraph.
+In Transient Mark mode, when the mark is active, it calls `fill-region'
+on the active region. Otherwise, it calls `fill-paragraph'."
+ (interactive (progn
+ (barf-if-buffer-read-only)
+ (list (if current-prefix-arg 'full))))
+ (if (and transient-mark-mode mark-active
+ (not (eq (region-beginning) (region-end))))
+ (fill-region (region-beginning) (region-end) arg)
+ (fill-paragraph arg)))
+
(defcustom default-justification 'left
"*Method of justifying text not otherwise specified.
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v,
Juri Linkov <=
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v, Juri Linkov, 2007/10/17
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v, Juanma Barranquero, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v, Juanma Barranquero, 2007/10/18
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v, Juri Linkov, 2007/10/20
- [Emacs-diffs] Changes to emacs/lisp/textmodes/fill.el,v, Dan Nicolaescu, 2007/10/26