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: Lennart Borgman (gmail)
Subject: Re: remember-region should be autoloaded
Date: Sun, 23 Dec 2007 19:04:36 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

Juri Linkov wrote:
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?

I do not remember the name of that function.




reply via email to

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