emacs-devel
[Top][All Lists]
Advanced

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

Re: org-mode and mode hooks.


From: Richard Stallman
Subject: Re: org-mode and mode hooks.
Date: Wed, 01 Jun 2005 13:23:49 -0400

             (buffers (intern (concat global-mode-name "-buffers")))
    !    (buffers-check (intern (concat global-mode-name "-check-buffers")))
    !    (cmmh (intern (concat global-mode-name "-cmmh")))
    !    (stored-mode (intern (concat (symbol-name mode) "-stored-mode"))))

The code would be easier to read if these four variables were renamed
to

         (thismode-enable-in-buffers (intern (concat global-mode-name 
"-enable-in-buffers")))
    !    (thismode-check-buffers (intern (concat global-mode-name 
"-check-buffers")))
    !    (thismode-cmmh (intern (concat global-mode-name "-cmmh")))
    !    (thismode-recorded-major-mode (intern (concat (symbol-name mode) 
"-recorded-major-mode"))))


Meanwhile, I see that the function named ,buffers and the function
named ,buffers-check are almost identical.  The only difference, it
appears, is that the latter sets ,buffers to nil.  Why not make
it call the other one?




reply via email to

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