unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: "Snippet" database
Date: Fri, 06 Jan 2012 15:16:24 -0500	[thread overview]
Message-ID: <87obugwprb.fsf@lifelogs.com> (raw)
In-Reply-To: m3ehvcoeg1.fsf@stories.gnus.org

On Fri, 06 Jan 2012 19:47:58 +0100 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> In my various guises I find myself sending out the same rote email
LMI> answer to many people.  "Thanks for the patch; applied" and stuff.  It
LMI> would be nice if one could just mark the region, ask Emacs to pull it
LMI> into a database of snippets, and then have a command that would insert
LMI> them again.

LMI> Surely something like this already exists in Emacs, but I just can't
LMI> seem to find it.  Probably looking for the wrong thing...

I usually put it in the kill ring, since with session.el I have the kill
ring persistent between Emacs sessions.  Normally I just keep doing
`M-y' (`yank-pop') repeatedly to find the old text, which in an odd way
is similar to what you're suggesting.  So maybe a `yank-select' command
to select from the kill ring would be useful to you, coupled with a way
to persist the kill ring if session.el is too heavy for you?

Ted




  parent reply	other threads:[~2012-01-06 20:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-06 18:47 "Snippet" database Lars Magne Ingebrigtsen
2012-01-06 19:08 ` Drew Adams
2012-01-06 19:13 ` Masatake YAMATO
2012-01-06 21:49   ` Masatake YAMATO
2012-01-06 22:04     ` Lars Magne Ingebrigtsen
2012-01-06 22:17       ` Lennart Borgman
2012-01-06 22:33         ` Tassilo Horn
2012-01-06 19:56 ` Richard Riley
2012-01-06 20:16 ` Ted Zlatanov [this message]
2012-01-06 20:45   ` Eli Zaretskii
2012-01-06 21:07     ` Ted Zlatanov
2012-01-06 21:10       ` Lars Magne Ingebrigtsen
2012-01-09  6:02     ` Drew Adams
2012-01-07  3:06 ` John Wiegley

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=87obugwprb.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).