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: Luc Teirlinck
Subject: Re: org-mode and mode hooks.
Date: Mon, 6 Jun 2005 20:19:47 -0500 (CDT)

Richard Stallman wrote:

       To clarify, this is how comint enables Font Lock:

       (defcustom comint-mode-hook '(turn-on-font-lock)

   Shouldn't we remove that?  Is it a desirable thing, nowadays,
   for some modes to enable Font Lock on their own, instead of letting
   the user do so if he wants?

Unless Miles objects, I will install the following mini-patch to comint.el:

===File ~/comint-diff=======================================
*** comint.el   26 May 2005 09:05:21 -0500      1.319
--- comint.el   06 Jun 2005 20:01:06 -0500      
***************
*** 423,429 ****
  (make-obsolete-variable 'comint-use-prompt-regexp-instead-of-fields
                        'comint-use-prompt-regexp "22.1")
  
! (defcustom comint-mode-hook '(turn-on-font-lock)
    "Hook run upon entry to `comint-mode'.
  This is run before the process is cranked up."
    :type 'hook
--- 423,429 ----
  (make-obsolete-variable 'comint-use-prompt-regexp-instead-of-fields
                        'comint-use-prompt-regexp "22.1")
  
! (defcustom comint-mode-hook nil
    "Hook run upon entry to `comint-mode'.
  This is run before the process is cranked up."
    :type 'hook
============================================================




reply via email to

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