bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1436: marked as done (23.0.60; region-active-p and kill-ring-save)


From: Emacs bug Tracking System
Subject: bug#1436: marked as done (23.0.60; region-active-p and kill-ring-save)
Date: Thu, 27 Nov 2008 09:20:03 -0800

Your message dated Thu, 27 Nov 2008 12:11:50 -0500
with message-id <87myflayax.fsf@cyd.mit.edu>
and subject line Re: 23.0.60; region-active-p and kill-ring-save
has caused the Emacs bug report #1436,
regarding 23.0.60; region-active-p and kill-ring-save
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don@donarmstrong.com
immediately.)


-- 
1436: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1436
Emacs Bug Tracking System
Contact don@donarmstrong.com with problems
--- Begin Message --- Subject: 23.0.60; region-active-p and kill-ring-save Date: Wed, 26 Nov 2008 17:46:22 +0000 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)
Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

The news says:

*** `region-active-p' returns non-nil when Transient Mark mode is
enabled and there is an active region.  This is NOT the best function
to use to test whether a command should operate on the region instead
of the usual behavior -- for that, use `use-region-p'.

However, kill-ring-save uses region-active-p, is that not contradictory?

BTW, the doc string of use-region-p seems to make little sense.

Best,

Leo



--- End Message ---
--- Begin Message --- Subject: Re: 23.0.60; region-active-p and kill-ring-save Date: Thu, 27 Nov 2008 12:11:50 -0500
> *** `region-active-p' returns non-nil when Transient Mark mode is
> enabled and there is an active region.  This is NOT the best function
> to use to test whether a command should operate on the region instead
> of the usual behavior -- for that, use `use-region-p'.
>
> However, kill-ring-save uses region-active-p, is that not contradictory?

No, because this use-region-p is intended for commands that do one thing
when the region is inactive (usually acting on the text near point), and
another thing when the region is active (usually acting on the text in
the region).  Such commands use use-region-p to decide whether to act on
the region.  That's not what kill-ring-save is using region-active-p for
(kill-ring-save always acts on the region).

> BTW, the doc string of use-region-p seems to make little sense.

I rewrote the docstrings to make them a little clearer.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]