comparison lisp/simple.el @ 109324:4773a5d3ff67

Fix last fix.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 10 Jul 2010 18:41:55 -0400
parents 3453c9fcaa97
children 548603211765
comparison
equal deleted inserted replaced
109323:3453c9fcaa97 109324:4773a5d3ff67
3628 "Return t if the region is active and it is appropriate to act on it. 3628 "Return t if the region is active and it is appropriate to act on it.
3629 This is used by commands that act specially on the region under 3629 This is used by commands that act specially on the region under
3630 Transient Mark mode. 3630 Transient Mark mode.
3631 3631
3632 The return value is t if Transient Mark mode is enabled and the 3632 The return value is t if Transient Mark mode is enabled and the
3633 mark is active; furthermore, if `use-empty-active-region' is 3633 mark is active; furthermore, if `use-empty-active-region' is nil,
3634 non-nil, the region must not be empty. Otherwise, the return 3634 the region must not be empty. Otherwise, the return value is nil.
3635 value is nil.
3636 3635
3637 For some commands, it may be appropriate to ignore the value of 3636 For some commands, it may be appropriate to ignore the value of
3638 `use-empty-active-region'; in that case, use `region-active-p'." 3637 `use-empty-active-region'; in that case, use `region-active-p'."
3639 (and (region-active-p) 3638 (and (region-active-p)
3640 (or use-empty-active-region (> (region-end) (region-beginning))))) 3639 (or use-empty-active-region (> (region-end) (region-beginning)))))