[Top][All Lists]

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

Re: Interactive specs

From: Richard M. Stallman
Subject: Re: Interactive specs
Date: Sun, 11 Dec 2005 17:56:59 -0500

      (interactive (if current-prefix-arg
                       (list (mark) (point))
                     (list (point-min) (point-max))))

It could be improved as

      (interactive (list (if current-prefix-arg (region-beginning) (point-min))
                         (if current-prefix-arg (region-end) (point-max))))

or perhaps replace current-prefix-arg with testing transient-mark-mode.

That won't be recognized by the current definition of fix_command, or
even with my patch, but it would be recognized with my patch if we add
point-min and point-max to the list preserved_fns.

reply via email to

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