From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Sebastian Luque Newsgroups: gmane.emacs.help Subject: Re: title function for boxquote Date: Mon, 31 Jan 2005 08:43:33 -0600 Message-ID: <87ekg1irqi.fsf@mun.ca> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1107183560 11622 80.91.229.6 (31 Jan 2005 14:59:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 31 Jan 2005 14:59:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 31 15:59:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cvd1E-0006rw-00 for ; Mon, 31 Jan 2005 15:59:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CvdDw-0006By-R3 for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jan 2005 10:12:20 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cvd7Y-00036z-Pb for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 10:05:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cvd7S-00032a-UN for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 10:05:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cvd7R-0002z3-Eu for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 10:05:37 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Cvch8-00036A-Lq for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 09:38:26 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Cvcgs-0001tY-Qj for help-gnu-emacs@gnu.org; Mon, 31 Jan 2005 15:38:10 +0100 Original-Received: from s0106000ae61de208.wp.shawcable.net ([24.77.59.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 15:38:10 +0100 Original-Received: from sluque by s0106000ae61de208.wp.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 31 Jan 2005 15:38:10 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s0106000ae61de208.wp.shawcable.net User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:BejxROAPs188rDB2BkOtpzl5BDo= X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: geh-help-gnu-emacs@m.gmane.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23775 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23775 On Mon, 31 Jan 2005 10:46:06 +0100, sigurd@12move.de (Karl Pflästerer) wrote: [...] > `from' and `to' are variables but you used them like functions. > Furthermore you write it as an interactive function but that function > should get called from `boxquote-kill-ring-save'; on the other hand > `buffer-name' is a function not a variable. Thanks for pointing those out, I should read the lisp intro again! [...] > Or you forget about the name and write: > > (setq boxquote-kill-ring-save-title > (lambda () > (save-restriction > (widen) > (format "%s [Lines: %s --- %s]" > (buffer-name) > (line-number-at-pos (region-beginning)) > (line-number-at-pos (region-end)))))) That's much more efficient than mine. Thank you! -- Best wishes, Sebastian