Article View: gnu.emacs.bug
Article #99127Changes to c++-mode.el
From: John Hagerman
Date: Tue, 30 Oct 1990 22:34
Date: Tue, 30 Oct 1990 22:34
60 lines
3043 bytes
3043 bytes
Here is a `diff -c' of some changes I just made to C++ Mode. The
starting point was the version modified June 1990 by dld@cs.cmu.edu.
- John
hagerman@ece.cmu.edu
*** /afs/cs/misc/gnu-emacs/common/latest/lisp/c++-mode.el Fri Jul 20 16:22:43 1990
--- /afs/ece/usr/hagerman/lib/elib/c++-mode.el Tue Oct 30 17:11:42 1990
***************
*** 4,9 ****
--- 4,14 ----
;; Done by fairly faithful modification of:
;; c-mode.el, Copyright (C) 1985 Richard M. Stallman.
;;
+ ;; Oct, 1990; John Hagerman (hagerman@ece.cmu.edu):
+ ;; Changed indent-line-function, comment-start, comment-end, comment-column,
+ ;; comment-start-skip, and comment-indent-hook back into local variables.
+ ;; These all used to be locals; I don't know why or when they were changed.
+ ;;
;; Jun, 1990 (Dave Detlefs, dld@cs.cmu.edu)
;; Incorporated stylistic changes from David Lawrence at FSF;
;; I think I've finally fixed C-style comments.
***************
*** 193,205 ****
(set-syntax-table c++-mode-syntax-table)
(setq major-mode 'c++-mode
mode-name "C++"
- indent-line-function 'c++-indent-line
- comment-start "// "
- comment-end ""
- comment-column 32
- comment-start-skip "/\\*+ *\\|// *"
- comment-indent-hook 'c++-comment-indent
local-abbrev-table c++-mode-abbrev-table)
(set (make-local-variable 'paragraph-start) (concat "^$\\|" page-delimiter))
(set (make-local-variable 'paragraph-separate) paragraph-start)
(set (make-local-variable 'paragraph-ignore-fill-prefix) t)
--- 198,210 ----
(set-syntax-table c++-mode-syntax-table)
(setq major-mode 'c++-mode
mode-name "C++"
local-abbrev-table c++-mode-abbrev-table)
+ (set (make-local-variable 'indent-line-function) 'c++-indent-line)
+ (set (make-local-variable 'comment-start) "// ")
+ (set (make-local-variable 'comment-end) "")
+ (set (make-local-variable 'comment-column) 32)
+ (set (make-local-variable 'comment-start-skip) "/\\*+ *\\|// *")
+ (set (make-local-variable 'comment-indent-hook) 'c++-comment-indent)
(set (make-local-variable 'paragraph-start) (concat "^$\\|" page-delimiter))
(set (make-local-variable 'paragraph-separate) paragraph-start)
(set (make-local-variable 'paragraph-ignore-fill-prefix) t)
***************
*** 975,979 ****
(next-line 1)
(beginning-of-line 1)))
(goto-char restore)))
-
-
--- 980,982 ----
Technical Details
Message-ID:
<9010302234.AA00399@rx7.ece.cmu.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!RX7.ECE.CMU.EDU!hagermanShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,ebd51ad94c7bf8a6,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-10-30 14:34:20 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!RX7.ECE.CMU.EDU!hagerman From: hagerman@RX7.ECE.CMU.EDU (John Hagerman) Newsgroups: gnu.emacs.bug Subject: Changes to c++-mode.el Message-ID: <9010302234.AA00399@rx7.ece.cmu.edu> Date: 30 Oct 90 22:34:20 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 60 Approved: bug-gnu-emacs@prep.ai.mit.edu Posted: Tue Oct 30 23:34:20 1990