[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!?
Re: Why adding this write-file-hook makes save-buffer not work anymore!??
28 Aug 2003 19:46:54 -0700
Thanks for your help. What makes my function return non-nil
and how do I make it return nil???
address@hidden (Kai Großjohann) wrote in message news:<address@hidden>...
> address@hidden (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.