emacs-devel
[Top][All Lists]
Advanced

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

Re: remember-region should be autoloaded


From: Juri Linkov
Subject: Re: remember-region should be autoloaded
Date: Sun, 23 Dec 2007 19:51:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

> However there is a small bug in remember in the way it handles the
> region. Beside that it would be nice if it used the region when it is
> visible. Something like this in the beginning of remember:
>
> (defun remember (&optional initial)
>   "Remember an arbitrary piece of data.
> With a prefix or a visible region, uses the region as INITIAL."
>   (interactive
>    (list (when (or current-prefix-arg
>                    (and mark-active
>                         transient-mark-mode))
>            (buffer-substring-noproperties
>             (region-beginning) (region-end)))))

This is nice, but what was the conclusion about adding a special function
to check the active region with just one function call?

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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