Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
14e10fb3
Commit
14e10fb3
authored
Aug 11, 2008
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(c-emacs-features): Check beginning-of-defun-raw instead of
beginning-of-defun, and avoid moving point during the test.
parent
6af40839
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
lisp/progmodes/cc-defs.el
lisp/progmodes/cc-defs.el
+5
-4
No files found.
lisp/progmodes/cc-defs.el
View file @
14e10fb3
...
...
@@ -1440,13 +1440,14 @@ non-nil, a caret is prepended to invert the set."
'1-bit
)
list
)))
;; In Emacs >= 23, beginning-of-defun
will
passes its
p
ar
ameter
to
;; beginning-of-defun-function. Assume end-of-defun does
the sam
e.
;; In Emacs >= 23, beginning-of-defun
-raw
passes its ar
gument
to
;; beginning-of-defun-function. Assume end-of-defun does
likewis
e.
(
let
((
beginning-of-defun-function
(
lambda
(
&optional
arg
)
(
not
(
eq
arg
nil
)))))
(
if
(
beginning-of-defun
1
)
(
setq
list
(
cons
'argumentative-bod-function
list
))))
(
save-excursion
(
if
(
beginning-of-defun-raw
1
)
(
setq
list
(
cons
'argumentative-bod-function
list
)))))
(
let
((
buf
(
generate-new-buffer
" test"
))
parse-sexp-lookup-properties
...
...
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