bhx2@mevik.net
2005-May-22 22:56 UTC
[Rd] R-exts.texi: nuke-trailing-whitespace has changed name (PR#7888)
Full_Name: Bj?rn-Helge Mevik Version: 2.1.0 OS: GNU/Debian 3.0 Linux Submission from: (NULL) (80.111.104.162) In Appendix B R coding standards of the Writing R Extensions manual, Emacs/ESS users are encouraged to use (add-hook 'ess-mode-hook (lambda () (ess-set-style 'C++) ;; [snip] (add-hook 'local-write-file-hooks (lambda () (nuke-trailing-whitespace))))) However, as of ess-5.2.4 (current is 5.2.8) `nuke-trailing-whitespace' has changed name to `ess-nuke-trailing-whitespace'. In addition: by default, ess-nuke-trailing-whitespace is a no-op (as was nuke-trailing-whitespace). To `activate' it one must set ess-nuke-trailing-whitespace-p to t or 'ask (default is nil), e.g. (setq ess-nuke-trailing-whitespace-p t)
Martin Maechler
2005-May-25 15:22 UTC
[Rd] R-exts.texi: nuke-trailing-whitespace has changed name (PR#7888)
Thank you, Bj?rn-Helge,>>>>> "Bj?HM" == Bj?rn-Helge Mevik <bhx2@mevik.net> >>>>> on Sun, 22 May 2005 22:56:49 +0200 (CEST) writes:...... Bj?HM> In Appendix B R coding standards of the Writing R Bj?HM> Extensions manual, Emacs/ESS users are encouraged to Bj?HM> use Bj?HM> .............. Bj?HM> However, as of ess-5.2.4 (current is 5.2.8) Bj?HM> `nuke-trailing-whitespace' has changed name to Bj?HM> `ess-nuke-trailing-whitespace'. Bj?HM> In addition: by default, ess-nuke-trailing-whitespace Bj?HM> is a no-op (as was nuke-trailing-whitespace). To Bj?HM> `activate' it one must set Bj?HM> ess-nuke-trailing-whitespace-p to t or 'ask (default Bj?HM> is nil), e.g. (setq ess-nuke-trailing-whitespace-p t) Thank you. I've now changed it to --------------------------------------------- ................. ................. (add-hook 'local-write-file-hooks (lambda () (ess-nuke-trailing-whitespace))))) (setq ess-nuke-trailing-whitespace-p 'ask) ;; or even ;; (setq ess-nuke-trailing-whitespace-p t)