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
Open sidebar
emacs
emacs
Commits
a8050bff
Commit
a8050bff
authored
Dec 02, 1999
by
Gerd Moellmann
Browse files
(lisp-mode-variables): Change
outline-regexp, add outline-level. (lisp-outline-level): New.
parent
ddf8eff5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
lisp/ChangeLog
lisp/ChangeLog
+4
-0
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/lisp-mode.el
+11
-1
No files found.
lisp/ChangeLog
View file @
a8050bff
1999-12-02 Gerd Moellmann <gerd@gnu.org>
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Change
outline-regexp, add outline-level.
(lisp-outline-level): New.
* calendar/appt.el (appt-convert-time): Handle "12:MMam",
remove extraneous string-match.
...
...
lisp/emacs-lisp/lisp-mode.el
View file @
a8050bff
...
...
@@ -128,7 +128,9 @@
(make-local-variable 'parse-sexp-ignore-comments)
(setq parse-sexp-ignore-comments t)
(make-local-variable 'outline-regexp)
(setq outline-regexp ";;; \\|
(
....
")
(setq outline-regexp ";;;;* \\|
(
")
(make-local-variable 'outline-level)
(setq outline-level 'lisp-outline-level)
(make-local-variable 'comment-start)
(setq comment-start "
;")
(
make-local-variable
'comment-start-skip
)
...
...
@@ -141,6 +143,14 @@
(
setq
comment-indent-function
'lisp-comment-indent
)
(
make-local-variable
'imenu-generic-expression
)
(
setq
imenu-generic-expression
lisp-imenu-generic-expression
))
(
defun
lisp-outline-level
()
"Lisp mode `outline-level' function."
(
if
(
looking-at
"("
)
1000
(
looking-at
outline-regexp
)
(
-
(
match-end
0
)
(
match-beginning
0
))))
(
defvar
shared-lisp-mode-map
()
"Keymap for commands shared by all sorts of Lisp modes."
)
...
...
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