summaryrefslogtreecommitdiff
path: root/lisp/obsolete
diff options
context:
space:
mode:
authorSam Steingold <sds@gnu.org>2001-11-27 15:52:52 +0000
committerSam Steingold <sds@gnu.org>2001-11-27 15:52:52 +0000
commit8a9463543d5b82409a24e23905d271cdebf70059 (patch)
tree503c81c7058491327cc13ab0eff04ed5dc6dd855 /lisp/obsolete
parentc6aedc9284492c790448cce23b0e5cc134885148 (diff)
downloademacs-8a9463543d5b82409a24e23905d271cdebf70059.tar.gz
Converted backquote to the new style.
Diffstat (limited to 'lisp/obsolete')
-rw-r--r--lisp/obsolete/c-mode.el168
-rw-r--r--lisp/obsolete/cplus-md.el168
2 files changed, 166 insertions, 170 deletions
diff --git a/lisp/obsolete/c-mode.el b/lisp/obsolete/c-mode.el
index 2be4ea9ed18..a76d963283a 100644
--- a/lisp/obsolete/c-mode.el
+++ b/lisp/obsolete/c-mode.el
@@ -207,99 +207,97 @@ regardless of where in the line point is when the TAB command is used."
;; This is actually the expression for C++ mode, but it's used for C too.
(defvar c-imenu-generic-expression
- (`
- ((nil
- (,
- (concat
- "^" ; beginning of line is required
+ `((nil
+ ,(concat
+ "^" ; beginning of line is required
"\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
- "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
- "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
+ "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
+ "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
- "\\(" ; last type spec including */&
+ "\\(" ; last type spec including */&
"[a-zA-Z0-9_:]+"
- "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
- "\\)?" ; if there is a last type spec
- "\\(" ; name; take that into the imenu entry
- "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
- ; (may not contain * because then
- ; "a::operator char*" would become "char*"!)
+ "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
+ "\\)?" ; if there is a last type spec
+ "\\(" ; name; take that into the imenu entry
+ "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
+ ; (may not contain * because then
+ ; "a::operator char*" would become "char*"!)
"\\|"
"\\([a-zA-Z0-9_:~]*::\\)?operator"
- "[^a-zA-Z1-9_][^(]*" ; ...or operator
+ "[^a-zA-Z1-9_][^(]*" ; ...or operator
" \\)"
"[ \t]*([^)]*)[ \t\n]*[^ ;]" ; require something other than a ; after
- ; the (...) to avoid prototypes. Can't
- ; catch cases with () inside the parentheses
- ; surrounding the parameters
- ; (like "int foo(int a=bar()) {...}"
+ ; the (...) to avoid prototypes. Can't
+ ; catch cases with () inside the parentheses
+ ; surrounding the parameters
+ ; (like "int foo(int a=bar()) {...}"
- )) 6)
+ ) 6)
("Class"
- (, (concat
- "^" ; beginning of line is required
- "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
- "class[ \t]+"
- "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
- "[ \t]*[:{]"
- )) 2)
-;; Example of generic expression for finding prototypes, structs, unions, enums.
-;; Uncomment if you want to find these too. It will be a bit slower gathering
-;; the indexes.
-; ("Prototypes"
-; (,
-; (concat
-; "^" ; beginning of line is required
-; "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
-; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
-; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
-
-; "\\(" ; last type spec including */&
-; "[a-zA-Z0-9_:]+"
-; "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
-; "\\)?" ; if there is a last type spec
-; "\\(" ; name; take that into the imenu entry
-; "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
-; ; (may not contain * because then
-; ; "a::operator char*" would become "char*"!)
-; "\\|"
-; "\\([a-zA-Z0-9_:~]*::\\)?operator"
-; "[^a-zA-Z1-9_][^(]*" ; ...or operator
-; " \\)"
-; "[ \t]*([^)]*)[ \t\n]*;" ; require ';' after
-; ; the (...) Can't
-; ; catch cases with () inside the parentheses
-; ; surrounding the parameters
-; ; (like "int foo(int a=bar());"
-; )) 6)
-; ("Struct"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "struct[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
-; ("Enum"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "enum[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
-; ("Union"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "union[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
- ))
+ ,(concat
+ "^" ; beginning of line is required
+ "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
+ "class[ \t]+"
+ "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ "[ \t]*[:{]"
+ ) 2)
+ ;; Example of generic expression for finding prototypes, structs, unions, enums.
+ ;; Uncomment if you want to find these too. It will be a bit slower gathering
+ ;; the indexes.
+ ; ("Prototypes"
+ ; (,
+ ; (concat
+ ; "^" ; beginning of line is required
+ ; "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
+ ; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
+ ; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
+
+ ; "\\(" ; last type spec including */&
+ ; "[a-zA-Z0-9_:]+"
+ ; "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
+ ; "\\)?" ; if there is a last type spec
+ ; "\\(" ; name; take that into the imenu entry
+ ; "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
+ ; ; (may not contain * because then
+ ; ; "a::operator char*" would become "char*"!)
+ ; "\\|"
+ ; "\\([a-zA-Z0-9_:~]*::\\)?operator"
+ ; "[^a-zA-Z1-9_][^(]*" ; ...or operator
+ ; " \\)"
+ ; "[ \t]*([^)]*)[ \t\n]*;" ; require ';' after
+ ; ; the (...) Can't
+ ; ; catch cases with () inside the parentheses
+ ; ; surrounding the parameters
+ ; ; (like "int foo(int a=bar());"
+ ; )) 6)
+ ; ("Struct"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "struct[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ ; ("Enum"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "enum[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ ; ("Union"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "union[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ )
"Imenu generic expression for C mode. See `imenu-generic-expression'.")
(defun c-mode ()
@@ -1439,7 +1437,7 @@ If within a string or comment, move by sentences instead of statements."
(parse-partial-sexp beg (point)
nil nil state)))
(and (not (nth 3 new-state)) (not (nth 5 new-state))))
- (indent-for-comment)))))))))))
+ (indent-for-comment)))))))))))))
;; Look at all comment-start strings in the current line after point.
;; Return t if one of them starts a real comment.
diff --git a/lisp/obsolete/cplus-md.el b/lisp/obsolete/cplus-md.el
index 1b0c0e0b946..8df342ba4d2 100644
--- a/lisp/obsolete/cplus-md.el
+++ b/lisp/obsolete/cplus-md.el
@@ -174,99 +174,97 @@ list. Nil indicates to just after the paren."
:group 'old-c++)
(defvar c++-imenu-generic-expression
- (`
- ((nil
- (,
- (concat
- "^" ; beginning of line is required
+ `((nil
+ ,(concat
+ "^" ; beginning of line is required
"\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
- "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
- "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
+ "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
+ "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
- "\\(" ; last type spec including */&
+ "\\(" ; last type spec including */&
"[a-zA-Z0-9_:]+"
- "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
- "\\)?" ; if there is a last type spec
- "\\(" ; name; take that into the imenu entry
- "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
- ; (may not contain * because then
- ; "a::operator char*" would become "char*"!)
+ "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
+ "\\)?" ; if there is a last type spec
+ "\\(" ; name; take that into the imenu entry
+ "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
+ ; (may not contain * because then
+ ; "a::operator char*" would become "char*"!)
"\\|"
"\\([a-zA-Z0-9_:~]*::\\)?operator"
- "[^a-zA-Z1-9_][^(]*" ; ...or operator
+ "[^a-zA-Z1-9_][^(]*" ; ...or operator
" \\)"
"[ \t]*([^)]*)[ \t\n]*[^ ;]" ; require something other than a ; after
- ; the (...) to avoid prototypes. Can't
- ; catch cases with () inside the parentheses
- ; surrounding the parameters
- ; (like "int foo(int a=bar()) {...}"
+ ; the (...) to avoid prototypes. Can't
+ ; catch cases with () inside the parentheses
+ ; surrounding the parameters
+ ; (like "int foo(int a=bar()) {...}"
- )) 6)
+ ) 6)
("Class"
- (, (concat
- "^" ; beginning of line is required
- "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
- "class[ \t]+"
- "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
- "[ \t]*[:{]"
- )) 2)
-;; Example of generic expression for finding prototypes, structs, unions, enums.
-;; Uncomment if you want to find these too. It will be a bit slower gathering
-;; the indexes.
-; ("Prototypes"
-; (,
-; (concat
-; "^" ; beginning of line is required
-; "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
-; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
-; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
+ ,(concat
+ "^" ; beginning of line is required
+ "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
+ "class[ \t]+"
+ "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ "[ \t]*[:{]"
+ ) 2)
+ ;; Example of generic expression for finding prototypes, structs, unions, enums.
+ ;; Uncomment if you want to find these too. It will be a bit slower gathering
+ ;; the indexes.
+ ; ("Prototypes"
+ ; (,
+ ; (concat
+ ; "^" ; beginning of line is required
+ ; "\\(template[ \t]*<[^>]+>[ \t]*\\)?" ; there may be a "template <...>"
+ ; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; type specs; there can be no
+ ; "\\([a-zA-Z0-9_:]+[ \t]+\\)?" ; more than 3 tokens, right?
-; "\\(" ; last type spec including */&
-; "[a-zA-Z0-9_:]+"
-; "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
-; "\\)?" ; if there is a last type spec
-; "\\(" ; name; take that into the imenu entry
-; "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
-; ; (may not contain * because then
-; ; "a::operator char*" would become "char*"!)
-; "\\|"
-; "\\([a-zA-Z0-9_:~]*::\\)?operator"
-; "[^a-zA-Z1-9_][^(]*" ; ...or operator
-; " \\)"
-; "[ \t]*([^)]*)[ \t\n]*;" ; require ';' after
-; ; the (...) Can't
-; ; catch cases with () inside the parentheses
-; ; surrounding the parameters
-; ; (like "int foo(int a=bar());"
-; )) 6)
-; ("Struct"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "struct[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
-; ("Enum"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "enum[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
-; ("Union"
-; (, (concat
-; "^" ; beginning of line is required
-; "\\(static[ \t]+\\)?" ; there may be static or const.
-; "\\(const[ \t]+\\)?"
-; "union[ \t]+"
-; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
-; "[ \t]*[{]"
-; )) 3)
- ))
+ ; "\\(" ; last type spec including */&
+ ; "[a-zA-Z0-9_:]+"
+ ; "\\([ \t]*[*&]+[ \t]*\\|[ \t]+\\)" ; either pointer/ref sign or whitespace
+ ; "\\)?" ; if there is a last type spec
+ ; "\\(" ; name; take that into the imenu entry
+ ; "[a-zA-Z0-9_:~]+" ; member function, ctor or dtor...
+ ; ; (may not contain * because then
+ ; ; "a::operator char*" would become "char*"!)
+ ; "\\|"
+ ; "\\([a-zA-Z0-9_:~]*::\\)?operator"
+ ; "[^a-zA-Z1-9_][^(]*" ; ...or operator
+ ; " \\)"
+ ; "[ \t]*([^)]*)[ \t\n]*;" ; require ';' after
+ ; ; the (...) Can't
+ ; ; catch cases with () inside the parentheses
+ ; ; surrounding the parameters
+ ; ; (like "int foo(int a=bar());"
+ ; )) 6)
+ ; ("Struct"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "struct[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ ; ("Enum"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "enum[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ ; ("Union"
+ ; (, (concat
+ ; "^" ; beginning of line is required
+ ; "\\(static[ \t]+\\)?" ; there may be static or const.
+ ; "\\(const[ \t]+\\)?"
+ ; "union[ \t]+"
+ ; "\\([a-zA-Z0-9_]+\\)" ; this is the string we want to get
+ ; "[ \t]*[{]"
+ ; )) 3)
+ )
"Imenu generic expression for C++ mode. See `imenu-generic-expression'.")
(defun c++-mode ()
@@ -721,7 +719,7 @@ Returns nil if line starts inside a string, t if in a comment."
(if (eq (preceding-char) ?\))
(forward-sexp -1))
;; Get initial indentation of the line we are on.
- (current-indentation))))))))))
+ (current-indentation)))))))))))
(defun c++-backward-to-noncomment (lim)
(let (opoint stop)
@@ -880,7 +878,7 @@ Returns nil if line starts inside a string, t if in a comment."
(point)) t)
(progn
(indent-for-comment)
- (beginning-of-line))))))))))
+ (beginning-of-line)))))))))))
(defun fill-c++-comment ()
"Fill a comment contained in consecutive lines containing point.