[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why adding this write-file-hook makes save-buffer not work anymore!?
From: |
Christian Seberino |
Subject: |
Re: Why adding this write-file-hook makes save-buffer not work anymore!?? |
Date: |
28 Aug 2003 19:46:54 -0700 |
Kai
Thanks for your help. What makes my function return non-nil
and how do I make it return nil???
Chris
kai.grossjohann@gmx.net (Kai Großjohann) wrote in message
news:<84isohfsx0.fsf@slowfox.is.informatik.uni-duisburg.de>...
> seberino@spawar.navy.mil (Christian Seberino) writes:
>
> > (defun cs-delete-trailing-whitespace() (interactive)
> > (delete-trailing-whitespace)
> > (let ((original-pos (point)))
> > (goto-char (point-max))
> > (delete-blank-lines)
> > (goto-char original-pos)))
>
> I think this returns non-nil, and as the docs say, "if one of them
> returns non-nil, then ... the others are not called".
>
> From C-h v write-file-functions RET.