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
017c959d
Commit
017c959d
authored
Sep 02, 2004
by
Juri Linkov
Browse files
(beginning-of-defun, end-of-defun):
Do not push mark if inhibit-mark-movement is non-nil.
parent
74a18969
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lisp/emacs-lisp/lisp.el
lisp/emacs-lisp/lisp.el
+4
-2
No files found.
lisp/emacs-lisp/lisp.el
View file @
017c959d
...
...
@@ -176,7 +176,8 @@ If variable `beginning-of-defun-function' is non-nil, its value
is called as a function to find the defun's beginning."
(
interactive
"p"
)
(
and
(
eq
this-command
'beginning-of-defun
)
(
or
(
eq
last-command
'beginning-of-defun
)
(
push-mark
)))
(
or
inhibit-mark-movement
(
eq
last-command
'beginning-of-defun
)
(
push-mark
)))
(
and
(
beginning-of-defun-raw
arg
)
(
progn
(
beginning-of-line
)
t
)))
...
...
@@ -226,7 +227,8 @@ If variable `end-of-defun-function' is non-nil, its value
is called as a function to find the defun's end."
(
interactive
"p"
)
(
and
(
eq
this-command
'end-of-defun
)
(
or
(
eq
last-command
'end-of-defun
)
(
push-mark
)))
(
or
inhibit-mark-movement
(
eq
last-command
'end-of-defun
)
(
push-mark
)))
(
if
(
or
(
null
arg
)
(
=
arg
0
))
(
setq
arg
1
))
(
if
end-of-defun-function
(
if
(
>
arg
0
)
...
...
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