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
36e6631c
Commit
36e6631c
authored
Aug 10, 1992
by
Roland McGrath
Browse files
*** empty log message ***
parent
9c95ac44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
22 deletions
+28
-22
lisp/add-log.el
lisp/add-log.el
+28
-22
No files found.
lisp/add-log.el
View file @
36e6631c
...
@@ -287,16 +287,22 @@ Has a preference of looking backwards."
...
@@ -287,16 +287,22 @@ Has a preference of looking backwards."
(
progn
(
forward-sexp
1
)
(
point
))))
(
progn
(
forward-sexp
1
)
(
point
))))
;; Ordinary C function syntax.
;; Ordinary C function syntax.
(
setq
beg
(
point
))
(
setq
beg
(
point
))
(
if
(
condition-case
nil
;; Protect against "Unbalanced parens" error.
(
progn
(
down-list
1
)
; into arglist
(
down-list
1
)
; into arglist
(
backward-up-list
1
)
(
backward-up-list
1
)
(
skip-chars-backward
" \t"
)
(
skip-chars-backward
" \t"
)
;; Verify initial pos was after real start of function.
t
)
(
error
nil
))
;; Verify initial pos was after
;; real start of function.
(
if
(
and
(
save-excursion
(
if
(
and
(
save-excursion
(
goto-char
beg
)
(
goto-char
beg
)
;; For this purpose, include the line
;; For this purpose, include the line
;; that has the decl keywords.
;; that has the decl keywords.
This
;; This
may also include some of the
comments
;;
may also include some of the
;;
before the function.
;; comments
before the function.
(
while
(
and
(
not
(
bobp
))
(
while
(
and
(
not
(
bobp
))
(
save-excursion
(
save-excursion
(
forward-line
-1
)
(
forward-line
-1
)
...
@@ -308,7 +314,7 @@ Has a preference of looking backwards."
...
@@ -308,7 +314,7 @@ Has a preference of looking backwards."
(
>
(
point
)
beg
))
(
>
(
point
)
beg
))
(
buffer-substring
(
point
)
(
buffer-substring
(
point
)
(
progn
(
backward-sexp
1
)
(
progn
(
backward-sexp
1
)
(
point
)))))))))
(
point
)))))))))
)
((
memq
major-mode
((
memq
major-mode
'
(
TeX-mode
plain-TeX-mode
LaTeX-mode
;; tex-mode.el
'
(
TeX-mode
plain-TeX-mode
LaTeX-mode
;; tex-mode.el
plain-tex-mode
latex-mode
;; cmutex.el
plain-tex-mode
latex-mode
;; cmutex.el
...
...
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