emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Longlines and insert


From: Chong Yidong
Subject: Re: Longlines and insert
Date: Tue, 15 Nov 2005 22:02:24 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Chong Yidong <address@hidden> writes:

> One possibility is to define a new variable `insert-filters', to store
> a list of filter functions to run on strings before they are inserted
> (analogous to `buffer-substring-filters').

Let me be a little more specific: this would be a variable
`insert-string-filters', normally bound to nil.  insert_string (in
insdel.c) checks the value of insert-string-filters passed to it.  If
non-nil, it makes use of it as follows:

Like `buffer-substring-filters', `insert-string-filters' would contain
a list of function, each of which accepts a single argument, a string,
and returns a string.  The string argument is passed to the first
function in the list, and the return value of each function is passed
to the next.  The last return value is the one actually inserted.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]