emacs-devel
[Top][All Lists]
Advanced

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

Re: whitespace-cleanup from /etc/TODO


From: Adrian Aichner
Subject: Re: whitespace-cleanup from /etc/TODO
Date: Mon, 14 Aug 2006 07:43:59 +0200
User-agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.5-b27 (windows-nt)

Yoni Rabkin Katzenell <address@hidden> writes:

> The following trivial patch will print an appropriate message when
> `whitespace-cleanup' is run on a region, otherwise it will print that
> `whitespace-cleanup' has run on the entire buffer.
>
> diff -c /home/yrk/devel/sandbox/emacs-hacking/whitespace-original.el 
> /home/yrk/devel/sandbox/emacs-hacking/whitespace.el
> *** /home/yrk/devel/sandbox/emacs-hacking/whitespace-original.el      
> 2006-08-13 21:23:58.542642560 +0300
> --- /home/yrk/devel/sandbox/emacs-hacking/whitespace.el       2006-08-13 
> 21:12:38.085087832 +0300
> ***************
> --- 575,586 ----
>       ;; Call this recursively till everything is taken care of
>       (if whitespace-any
>           (whitespace-cleanup-internal)
> +       ;; if we are done, talk to the user
>         (progn
> !         (unless whitespace-silent
> !           (if whitespace-region-only
> !               (message "The region is now clean")

I suggest to retain the buffer-file-name argument in the case above.

Otherwise you're trading an old piece of valuable information against
a new (perhaps less important) one.

Adrian

> !             (message "%s is now clean" buffer-file-name)))
>           (whitespace-update-modeline)))
>       (setq tab-width whitespace-tabwith-saved))))
>   

-- 
Adrian Aichner
 mailto:address@hidden
 http://www.xemacs.org/





reply via email to

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