unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* called by a process filter?
@ 2005-05-11 19:39 Kevin Rodgers
  2005-05-11 20:06 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Kevin Rodgers @ 2005-05-11 19:39 UTC (permalink / raw)


Is there a way to tell whether a function was called via process filter?

I have a function that is installed on after-change-functions, and which
tries to detect whether the change that triggered it is a user-invoked
character insertion and thus of interest.  But if the change was done by
a process filter (in particular gnuserv-process-filter -> gnuserv-eval),
examining this-command, last-command-event, and/or the result of
(this-command-keys) is completely unreliable because the process filter
runs independently of the command loop.

It might be nice if Emacs temporarily bound all the command loop info
variables to nil while it runs the process filters.  But since it
doesn't seem to, how can I detect that situation?

Thanks,
-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2005-05-14  4:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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