On Tue, 11 Apr 2006 10:16:28 +0000
"Yakov Lerner" <[EMAIL PROTECTED]> wrote:
> On 4/11/06, Christoph Nodes <[EMAIL PROTECTED]> wrote:
> >
> > Is there a way to avoid that the changes a specific command makes are added
> > to the undo history. I am missing something like histdel("undo", -1).
> > "Set undolevels = -1" is no choice since I don't want to lose the changes
> > I made before.
>
> This does not make sense to me; I thought that if you
> delete one change from the history of changes, then
> you canot undo any previous change.
How do I delete one change from the history of changes? This exactly is my
question. As far as I know it is not possible. Histdel only works on the "cmd",
"search", "expr" and "input" history.
> I don't think it is possible at all, what you ask for, even
> if someone wanted to implemented it.
>
> Yakov
Another possibility could be to have a command in the manner of "silent", that
is prepended to another command and prevents the changes done beeing
added to the history of changes.
The reason for my question is our way of handling the
"Gtk-Utf-8-String-problem":
Gtk-2.0 functions take UTF-8-encoded strings as arguments. For constant strings
coded into the source code this can be a problem if you use characters not
included
in the ascii character set and you don't want to have UTF-8-encoded source
files.
Our way is to let vim do the encoding and call a vim function on every
BufReadPost and BufWritePre event that uses iconv() to convert these constant
strings. These changes however, are changes that we don't want to undo/redo.
Christoph