aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emulation/cua-base.el43
2 files changed, 3 insertions, 43 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e5761ced42b..37e09893829 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12014-04-11 Stefan Monnier <monnier@iro.umontreal.ca> 12014-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * emulation/cua-base.el (<toplevel>, cua--pre-command-handler-1):
4 Remove left-over code.
5
3 * newcomment.el (comment-indent-new-line): Sink code where it's used. 6 * newcomment.el (comment-indent-new-line): Sink code where it's used.
4 Reuse the previous comment's indentation unconditionally if it's on its 7 Reuse the previous comment's indentation unconditionally if it's on its
5 own line. 8 own line.
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 96c9ba1e095..ee70071b7ec 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1156,19 +1156,6 @@ If ARG is the atom `-', scroll upward by nearly full screen."
1156 (cancel-timer cua--prefix-override-timer)) 1156 (cancel-timer cua--prefix-override-timer))
1157 (setq cua--prefix-override-timer nil)) 1157 (setq cua--prefix-override-timer nil))
1158 1158
1159 (cond
1160 ;; Only symbol commands can have necessary properties
1161 ((not (symbolp this-command))
1162 nil)
1163
1164 ((not (eq (get this-command 'CUA) 'move))
1165 nil)
1166
1167 ;; Set mark if user explicitly said to do so
1168 (cua--rectangle ;FIXME: ??
1169 (unless mark-active
1170 (push-mark-command nil nil))))
1171
1172 ;; Detect extension of rectangles by mouse or other movement 1159 ;; Detect extension of rectangles by mouse or other movement
1173 (setq cua--buffer-and-point-before-command 1160 (setq cua--buffer-and-point-before-command
1174 (if cua--rectangle (cons (current-buffer) (point))))) 1161 (if cua--rectangle (cons (current-buffer) (point)))))
@@ -1367,36 +1354,6 @@ If ARG is the atom `-', scroll upward by nearly full screen."
1367 ) 1354 )
1368 1355
1369 1356
1370;; Setup standard movement commands to be recognized by CUA.
1371
1372(dolist (cmd
1373 '(forward-char backward-char
1374 right-char left-char
1375 right-word left-word
1376 next-line previous-line
1377 forward-word backward-word
1378 end-of-line beginning-of-line
1379 end-of-visual-line beginning-of-visual-line
1380 move-end-of-line move-beginning-of-line
1381 end-of-buffer beginning-of-buffer
1382 scroll-up scroll-down
1383 scroll-up-command scroll-down-command
1384 up-list down-list backward-up-list
1385 end-of-defun beginning-of-defun
1386 forward-sexp backward-sexp
1387 forward-list backward-list
1388 forward-sentence backward-sentence
1389 forward-paragraph backward-paragraph
1390 ;; CC mode motion commands
1391 c-forward-conditional c-backward-conditional
1392 c-down-conditional c-up-conditional
1393 c-down-conditional-with-else c-up-conditional-with-else
1394 c-beginning-of-statement c-end-of-statement))
1395 (put cmd 'CUA 'move))
1396
1397;; Only called if pc-selection-mode is t, which means pc-select is loaded.
1398(declare-function pc-selection-mode "pc-select" (&optional arg))
1399
1400;; State prior to enabling cua-mode 1357;; State prior to enabling cua-mode
1401;; Value is a list with the following elements: 1358;; Value is a list with the following elements:
1402;; delete-selection-mode 1359;; delete-selection-mode