From: Sebastian Luque <sluque@mun.ca>
Subject: Re: title function for boxquote
Date: Mon, 31 Jan 2005 08:43:33 -0600 [thread overview]
Message-ID: <87ekg1irqi.fsf@mun.ca> (raw)
In-Reply-To: u651ex933.fsf@hamster.pflaesterer.de
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
next prev parent reply other threads:[~2005-01-31 14:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.56.1107127949.2841.help-gnu-emacs@gnu.org>
2005-01-31 9:46 ` title function for boxquote Karl Pflästerer
2005-01-31 14:43 ` Sebastian Luque [this message]
2005-01-30 22:19 Sebastian Luque
2005-01-31 0:49 ` Sebastian Luque
[not found] ` <mailman.61.1107133370.2841.help-gnu-emacs@gnu.org>
2005-01-31 11:10 ` Sébastien Kirche
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ekg1irqi.fsf@mun.ca \
--to=sluque@mun.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).