unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Olson <mwolson@gnu.org>
Cc: erc-discuss@gnu.org
Subject: Re: `comint-exec-hook'-like feature for erc?
Date: Fri, 23 Jun 2006 14:08:24 -0400	[thread overview]
Message-ID: <87d5cz68yv.fsf@tuxtanker.mwolson.org> (raw)
In-Reply-To: 20060623153206.3DA388197@planetmath.cc.vt.edu


[-- Attachment #1.1: Type: text/plain, Size: 1247 bytes --]

Joe Corneli <jcorneli@planetmath.org> writes:

> Is there (or should there be) a `comint-exec-hook'-like feature that
> runs after text has appeared in an ERC buffer (i.e. text that has been
> put there by anyone)?  I would personally find this useful, and did
> not see find such a hook in the code.  There is an
> `erc-send-completed-hook', but this only applies to text that
> originated locally.

One of the following hooks will do what you want, depending on whether
you want the hook to trigger before, after, or during ERC's auxiliary
text display functions (button highlighting, timestamps, et al).

erc-insert-modify-hook
  Variable: Insertion hook for functions that will change the text's appearance.
  ...

erc-insert-post-hook
  Variable: This hook is called just after `erc-insert-modify-hook'.
  ...

erc-insert-pre-hook
  Variable: Hook called first when some text is inserted through `erc-display-line'.
  ...

-- 
Michael Olson -- FSF Associate Member #652 -- http://www.mwolson.org/
Interests: Emacs Lisp, text markup, protocols -- Jabber: mwolson_at_hcoop.net
  /` |\ | | | IRC: mwolson on freenode.net: #hcoop, #muse, #PurdueLUG
 |_] | \| |_| Project involvement: Emacs, Muse, Planner, ERC, EMMS

[-- Attachment #1.2: Type: application/pgp-signature, Size: 190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2006-06-23 18:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-23 15:32 `comint-exec-hook'-like feature for erc? Joe Corneli
2006-06-23 18:08 ` Michael Olson [this message]
2006-06-23 21:33   ` Lawrence Mitchell

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=87d5cz68yv.fsf@tuxtanker.mwolson.org \
    --to=mwolson@gnu.org \
    --cc=erc-discuss@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).