all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Kevin Rodgers <ihs_4664@yahoo.com>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: called by a process filter?
Date: Thu, 12 May 2005 09:32:24 -0400	[thread overview]
Message-ID: <87hdh81srh.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m3is1oy5vn.fsf@kfs-l.imdomain.dk> (Kim F. Storm's message of "Thu, 12 May 2005 14:40:28 +0200")

> Doesn't the following work?

> (defvar in-my-filter-p nil)

> (defun my-filter (proc text)
>   (let ((in-my-filter-p t))
>     ...))

> (defun my-after-change-function ()
>   (if in-my-filter-p
>     ...

No, because the after-change-function is generic and doesn't know about all
the various filter functions it might interact with (which it'd have to
tweak with defadvice in order to do what you suggest).

My guess is that after-change-function is the wrong place to do what the OP
wants to do.


        Stefan

  reply	other threads:[~2005-05-12 13:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-11 19:39 called by a process filter? Kevin Rodgers
2005-05-11 20:06 ` Kevin Rodgers
2005-05-11 20:19 ` Stefan Monnier
2005-05-12 16:10   ` Kevin Rodgers
2005-05-13  9:34     ` Kim F. Storm
2005-05-13 17:46       ` Kevin Rodgers
2005-05-13 18:55         ` David Kastrup
2005-05-14  4:07         ` Richard Stallman
2005-05-12 11:16 ` Richard Stallman
2005-05-12 12:40   ` Kim F. Storm
2005-05-12 13:32     ` Stefan Monnier [this message]
2005-05-12 13:58       ` Kim F. Storm
2005-05-12 14:37         ` Stefan Monnier
2005-05-12 16:25         ` Kevin Rodgers
2005-05-13  9:31           ` Kim F. Storm
2005-05-13  1:33     ` Richard Stallman
2005-05-13 10:21       ` Kim F. Storm
2005-05-14  0:25         ` Richard Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hdh81srh.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=ihs_4664@yahoo.com \
    --cc=rms@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.