[Top][All Lists]

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

Re: Proper use of `deactivate-mark'?

From: Kevin Rodgers
Subject: Re: Proper use of `deactivate-mark'?
Date: Thu, 13 Feb 2014 23:51:09 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv: Gecko/20120306 Thunderbird/3.1.20

On 2/13/14 11:07 AM, Barry Margolin wrote:
Maybe it should be:

     (copy-to-register ?s (region-beginning) (region0end))

;; As a matter of style, `when' is normally used to conditionally produce
;; some side effects, and the value of the when form is normally not
;; used. If the value is relevant, then it may be stylistically more
;; appropriate to use `and' or `if'.

(when (use-region-p)
  (copy-to-register ?s (region-beginning) (region0end))

Kevin Rodgers
Denver, Colorado, USA

reply via email to

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