Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
bf5367b9
Commit
bf5367b9
authored
Nov 29, 2001
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comment change.
parent
ea8c55c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
105 additions
and
105 deletions
+105
-105
lisp/obsolete/c-mode.el
lisp/obsolete/c-mode.el
+53
-53
lisp/obsolete/cplus-md.el
lisp/obsolete/cplus-md.el
+52
-52
No files found.
lisp/obsolete/c-mode.el
View file @
bf5367b9
...
...
@@ -244,59 +244,59 @@ regardless of where in the line point is when the TAB command is used."
;; 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)
;;
; ("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'."
)
...
...
lisp/obsolete/cplus-md.el
View file @
bf5367b9
...
...
@@ -211,59 +211,59 @@ list. Nil indicates to just after the paren."
;; 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?
;;
; ("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'.")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment