From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: remember-region should be autoloaded Date: Sun, 23 Dec 2007 19:04:36 +0100 Message-ID: <476EA334.3080203@gmail.com> References: <87mys73r3l.fsf@tarn.lan> <4768FD4B.2060809@gmail.com> <87tzm9xptb.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1198433143 12119 80.91.229.12 (23 Dec 2007 18:05:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Dec 2007 18:05:43 +0000 (UTC) Cc: Sacha Chua , Ryan Yeske , emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 23 19:05:54 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J6VCT-0008M6-BC for ged-emacs-devel@m.gmane.org; Sun, 23 Dec 2007 19:05:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6VC9-0003eQ-4t for ged-emacs-devel@m.gmane.org; Sun, 23 Dec 2007 13:05:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J6VC4-0003eE-Qn for emacs-devel@gnu.org; Sun, 23 Dec 2007 13:04:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J6VC1-0003cj-Ar for emacs-devel@gnu.org; Sun, 23 Dec 2007 13:04:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J6VC1-0003cg-4k for emacs-devel@gnu.org; Sun, 23 Dec 2007 13:04:53 -0500 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J6VC0-0004pV-A7 for emacs-devel@gnu.org; Sun, 23 Dec 2007 13:04:52 -0500 Original-Received: from c83-254-148-228.bredband.comhem.se ([83.254.148.228]:64393 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1J6VBs-0001tS-4C; Sun, 23 Dec 2007 19:04:44 +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 In-Reply-To: <87tzm9xptb.fsf@jurta.org> X-Antivirus: avast! (VPS 071222-0, 2007-12-22), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.148.228 X-Scan-Result: No virus found in message 1J6VBs-0001tS-4C. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1J6VBs-0001tS-4C 472ad7202da86ec4989c1ee6e9558c7a X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85412 Archived-At: 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.