help-gnu-emacs
[Top][All Lists]
Advanced

[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: Kai Großjohann
Subject: Re: Why adding this write-file-hook makes save-buffer not work anymore!??
Date: Thu, 28 Aug 2003 22:06:51 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

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.
-- 
Two cafe au lait please, but without milk.


reply via email to

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