branch: scratch/rfc-mode
commit 55c0c24f9b2bcd3e5292d4b72e378b14c640d1cb
Author: Daniel Martín <mardan...@yahoo.es>
Commit: Nicolas Martyanoff <khae...@gmail.com>

    Make rfc-mode inherit from special-mode
    
    * rfc-mode.el (rfc-mode-init): Remove changing read-only status now
    that the mode inherits from special-mode.
    (rfc-mode): Make rfc-mode inherit from special-mode.
---
 rfc-mode.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rfc-mode.el b/rfc-mode.el
index d0ed2364c3..c7ee29b7b9 100644
--- a/rfc-mode.el
+++ b/rfc-mode.el
@@ -100,7 +100,6 @@ Assume RFC documents are named as e.g. rfc21.txt, 
rfc-index.txt."
 
 (defun rfc-mode-init ()
   "Initialize the current buffer for `rfc-mode'."
-  (setq-local buffer-read-only t)
   (setq-local page-delimiter "^.*?\n")
   (rfc-mode-highlight))
 
@@ -146,7 +145,7 @@ Assume RFC documents are named as e.g. rfc21.txt, 
rfc-index.txt."
         :sources (rfc-mode-browser-helm-sources rfc-mode-index-entries)))
 
 ;;;###autoload
-(define-derived-mode rfc-mode text-mode "rfc-mode"
+(define-derived-mode rfc-mode special-mode "rfc-mode"
   "Major mode to browse and read RFC documents."
   (rfc-mode-init))
 

Reply via email to