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

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

Re: How to write the "interactive" form for a command acting on a region


From: Nicolas Richard
Subject: Re: How to write the "interactive" form for a command acting on a region
Date: Wed, 14 Jan 2015 00:24:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hello,


Marcin Borkowski <address@hidden> writes:
>    (if (use-region-p)
>        (list (region-beginning) (region-end) t)
>      (list (point-min) (point-max) t)))

You could do
(if (use-region-p)
    (list (region-beginning) (region-end) t)
  (list nil nil t))

(naive suggestion -- I have no experience !)

-- 
Nicolas Richard



reply via email to

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