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
c99ce7d8
Commit
c99ce7d8
authored
Apr 10, 2014
by
Stefan Monnier
Browse files
* lisp/emulation/cua-base.el (<toplevel>, cua--pre-command-handler-1):
Remove left-over code.
parent
0d6a1375
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
43 deletions
+3
-43
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/emulation/cua-base.el
lisp/emulation/cua-base.el
+0
-43
No files found.
lisp/ChangeLog
View file @
c99ce7d8
2014-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
* emulation/cua-base.el (<toplevel>, cua--pre-command-handler-1):
Remove left-over code.
* newcomment.el (comment-indent-new-line): Sink code where it's used.
Reuse the previous comment's indentation unconditionally if it's on its
own line.
...
...
lisp/emulation/cua-base.el
View file @
c99ce7d8
...
...
@@ -1156,19 +1156,6 @@ If ARG is the atom `-', scroll upward by nearly full screen."
(
cancel-timer
cua--prefix-override-timer
))
(
setq
cua--prefix-override-timer
nil
))
(
cond
;; Only symbol commands can have necessary properties
((
not
(
symbolp
this-command
))
nil
)
((
not
(
eq
(
get
this-command
'CUA
)
'move
))
nil
)
;; Set mark if user explicitly said to do so
(
cua--rectangle
;FIXME: ??
(
unless
mark-active
(
push-mark-command
nil
nil
))))
;; Detect extension of rectangles by mouse or other movement
(
setq
cua--buffer-and-point-before-command
(
if
cua--rectangle
(
cons
(
current-buffer
)
(
point
)))))
...
...
@@ -1367,36 +1354,6 @@ If ARG is the atom `-', scroll upward by nearly full screen."
)
;; Setup standard movement commands to be recognized by CUA.
(
dolist
(
cmd
'
(
forward-char
backward-char
right-char
left-char
right-word
left-word
next-line
previous-line
forward-word
backward-word
end-of-line
beginning-of-line
end-of-visual-line
beginning-of-visual-line
move-end-of-line
move-beginning-of-line
end-of-buffer
beginning-of-buffer
scroll-up
scroll-down
scroll-up-command
scroll-down-command
up-list
down-list
backward-up-list
end-of-defun
beginning-of-defun
forward-sexp
backward-sexp
forward-list
backward-list
forward-sentence
backward-sentence
forward-paragraph
backward-paragraph
;; CC mode motion commands
c-forward-conditional
c-backward-conditional
c-down-conditional
c-up-conditional
c-down-conditional-with-else
c-up-conditional-with-else
c-beginning-of-statement
c-end-of-statement
))
(
put
cmd
'CUA
'move
))
;; Only called if pc-selection-mode is t, which means pc-select is loaded.
(
declare-function
pc-selection-mode
"pc-select"
(
&optional
arg
))
;; State prior to enabling cua-mode
;; Value is a list with the following elements:
;; delete-selection-mode
...
...
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