unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "B. T. Raven" <nihil@nihilo.net>
To: help-gnu-emacs@gnu.org
Subject: how to implement function copy-subword-to-irc-buffer
Date: Mon, 30 Nov 2009 11:39:16 -0600	[thread overview]
Message-ID: <Y9ednXLWW4GvnonWnZ2dnUVZ_oqdnZ2d@sysmatrix.net> (raw)

I think I need (thing-at-point 'word), (buffer-list), set point and
mark, copy-region-as-kill-no-mark, and other usual suspects to implement
this but really want to automatically copy the substring of the word
before point or the whole word if point is in whitespace after the word.
This (sub)string should go to the point in the irc buffer (one whose
buffer-name starts with #) and then make that irc buffer current.

Is this doable? I want to assign this function to some keychord but am
not sure what would be suitable (in keeping with traditional key
assignment philosophy). I have standard binding for almost every thing
but single character cursor movement. Is there a way of getting a list
of all key combos (and/or ranges of key combos) that are not currently
bound?

Thanks,

Ed


             reply	other threads:[~2009-11-30 17:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 17:39 B. T. Raven [this message]
2009-12-02  6:34 ` how to implement function copy-subword-to-irc-buffer Kevin Rodgers
     [not found] ` <mailman.12001.1259735672.2239.help-gnu-emacs@gnu.org>
2009-12-04  1:45   ` B. T. Raven
2009-12-04  5:02     ` Kevin Rodgers
     [not found]     ` <mailman.12154.1259902948.2239.help-gnu-emacs@gnu.org>
2009-12-04 21:12       ` B. T. Raven
2009-12-05  8:49         ` Kevin Rodgers
     [not found]         ` <mailman.12262.1260003007.2239.help-gnu-emacs@gnu.org>
2009-12-05 18:58           ` B. T. Raven
2009-12-05 21:25             ` Stefan Monnier
2009-12-05 21:43               ` B. T. Raven
2009-12-07 15:48                 ` Stefan Monnier
2009-12-05 21:46           ` B. T. Raven
2009-12-08  5:31             ` Kevin Rodgers

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=Y9ednXLWW4GvnonWnZ2dnUVZ_oqdnZ2d@sysmatrix.net \
    --to=nihil@nihilo.net \
    --cc=help-gnu-emacs@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.
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).