aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2002-10-21 21:04:50 +0000
committerStefan Monnier2002-10-21 21:04:50 +0000
commit61ed2dcc9a5591801adbb99314a2827fcdae621e (patch)
tree73e47a8d37c02c24225aab08af100b4250cacab7
parentcdeb348047156fcd1d16566c0829d420342814fc (diff)
downloademacs-61ed2dcc9a5591801adbb99314a2827fcdae621e.tar.gz
emacs-61ed2dcc9a5591801adbb99314a2827fcdae621e.zip
(text-mode-syntax-table): Make ' a prefix.
(paragraph-indent-text-mode-abbrev-table) (paragraph-indent-text-mode-syntax-table): Remove. (paragraph-indent-text-mode): Use the :abbrev and :syntax-table args.
-rw-r--r--lisp/textmodes/text-mode.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index f243aff940b..069942c69cb 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -43,7 +43,8 @@ Use (derived-mode-p 'text-mode) instead.")
43 (let ((st (make-syntax-table))) 43 (let ((st (make-syntax-table)))
44 (modify-syntax-entry ?\" ". " st) 44 (modify-syntax-entry ?\" ". " st)
45 (modify-syntax-entry ?\\ ". " st) 45 (modify-syntax-entry ?\\ ". " st)
46 (modify-syntax-entry ?' "w " st) 46 ;; We add `p' so that M-c on 'hello' leads to 'Hello' rather than 'hello'.
47 (modify-syntax-entry ?' "w p" st)
47 st) 48 st)
48 "Syntax table used while in `text-mode'.") 49 "Syntax table used while in `text-mode'.")
49 50
@@ -70,8 +71,6 @@ Turning on Text mode runs the normal hook `text-mode-hook'."
70 (set (make-local-variable 'require-final-newline) t) 71 (set (make-local-variable 'require-final-newline) t)
71 (set (make-local-variable 'indent-line-function) 'indent-relative)) 72 (set (make-local-variable 'indent-line-function) 'indent-relative))
72 73
73(defvar paragraph-indent-text-mode-abbrev-table text-mode-abbrev-table)
74(defvar paragraph-indent-text-mode-syntax-table text-mode-syntax-table)
75(define-derived-mode paragraph-indent-text-mode text-mode "Parindent" 74(define-derived-mode paragraph-indent-text-mode text-mode "Parindent"
76 "Major mode for editing text, with leading spaces starting a paragraph. 75 "Major mode for editing text, with leading spaces starting a paragraph.
77In this mode, you do not need blank lines between paragraphs 76In this mode, you do not need blank lines between paragraphs
@@ -81,6 +80,7 @@ Special commands:
81\\{text-mode-map} 80\\{text-mode-map}
82Turning on Paragraph-Indent Text mode runs the normal hooks 81Turning on Paragraph-Indent Text mode runs the normal hooks
83`text-mode-hook' and `paragraph-indent-text-mode-hook'." 82`text-mode-hook' and `paragraph-indent-text-mode-hook'."
83 :abbrev-table nil :syntax-table nil
84 (paragraph-indent-minor-mode)) 84 (paragraph-indent-minor-mode))
85 85
86(defun paragraph-indent-minor-mode () 86(defun paragraph-indent-minor-mode ()