[ESS-bugs] ess-mode 5.3.8; after-change-functions; RET at end of file

Rodney Sparapani rsparapa at mcw.edu
Mon Nov 10 17:03:12 CET 2008


Markus Triska wrote:
> After opening any Rnw file in Emacs 22.2 or 23.0:
>
>    A) The *global* value of after-change-functions is set to
>       (noweb-after-change-function). Only the buffer-local variable
>       should be modified to avoid problems in other modes.
>   
A) A little help? I'm not a noweb-mode user other than some testing.
I can see this line 443 in noweb-mode.el:

(add-hook 'after-change-functions 'noweb-after-change-function)

Which I guess you are suggesting should be:

(make-local-hook 'after-change-functions)
(add-local-hook 'after-change-functions 'noweb-after-change-function)

Which would also require changing line 456 to:

(remove-local-hook 'after-change-functions 'noweb-after-change-function)

Is this what you are suggesting? Have you tried it? Thanks for the report.

-- 
Rodney Sparapani      Center for Patient Care & Outcomes Research (PCOR)
Sr. Biostatistician              http://www.mcw.edu/pcor
4 wheels good, 2 wheels better!  Medical College of Wisconsin (MCW)
WWLD?:  What Would Lombardi Do?  Milwaukee, WI, USA



More information about the ESS-bugs mailing list