summaryrefslogtreecommitdiff
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2002-10-21 21:04:50 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2002-10-21 21:04:50 +0000
commit61ed2dcc9a5591801adbb99314a2827fcdae621e (patch)
tree73e47a8d37c02c24225aab08af100b4250cacab7 /lisp/textmodes
parentcdeb348047156fcd1d16566c0829d420342814fc (diff)
downloademacs-61ed2dcc9a5591801adbb99314a2827fcdae621e.tar.gz
(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.
Diffstat (limited to 'lisp/textmodes')
-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.")
(let ((st (make-syntax-table)))
(modify-syntax-entry ?\" ". " st)
(modify-syntax-entry ?\\ ". " st)
- (modify-syntax-entry ?' "w " st)
+ ;; We add `p' so that M-c on 'hello' leads to 'Hello' rather than 'hello'.
+ (modify-syntax-entry ?' "w p" st)
st)
"Syntax table used while in `text-mode'.")
@@ -70,8 +71,6 @@ Turning on Text mode runs the normal hook `text-mode-hook'."
(set (make-local-variable 'require-final-newline) t)
(set (make-local-variable 'indent-line-function) 'indent-relative))
-(defvar paragraph-indent-text-mode-abbrev-table text-mode-abbrev-table)
-(defvar paragraph-indent-text-mode-syntax-table text-mode-syntax-table)
(define-derived-mode paragraph-indent-text-mode text-mode "Parindent"
"Major mode for editing text, with leading spaces starting a paragraph.
In this mode, you do not need blank lines between paragraphs
@@ -81,6 +80,7 @@ Special commands:
\\{text-mode-map}
Turning on Paragraph-Indent Text mode runs the normal hooks
`text-mode-hook' and `paragraph-indent-text-mode-hook'."
+ :abbrev-table nil :syntax-table nil
(paragraph-indent-minor-mode))
(defun paragraph-indent-minor-mode ()