aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorKaroly Lorentey2005-10-09 20:00:17 +0000
committerKaroly Lorentey2005-10-09 20:00:17 +0000
commit0ff21b4e57b1dc7c714c21c9eea1a4906630ecf2 (patch)
tree3e8596405b243531128cd0f1d8f59d2ab9e7f7c7 /lisp/emulation
parenta3c07f683d1f9fbf7c7af0120dfebc5fc34b61fa (diff)
parent20ef86730cca82a1a2e212a665c0b119ed2d70b2 (diff)
downloademacs-0ff21b4e57b1dc7c714c21c9eea1a4906630ecf2.tar.gz
emacs-0ff21b4e57b1dc7c714c21c9eea1a4906630ecf2.zip
Merged from miles@gnu.org--gnu-2005 (patch 118-132, 551-577)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-551 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-552 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-553 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-554 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-555 Remove CVS keywords from newsticker files * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-556 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-557 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-558 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-559 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-560 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-561 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-562 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-563 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-564 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-565 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-566 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-567 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-568 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-569 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-570 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-571 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-572 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-573 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-574 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-575 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-576 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-577 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-118 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-119 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-120 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-121 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-122 Update from CVS: lisp/mm-url.el (mm-url-decode-entities): Fix regexp. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-123 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-124 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-125 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-126 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-127 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-128 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-129 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-130 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-131 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-132 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-423
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-base.el4
-rw-r--r--lisp/emulation/vip.el2
-rw-r--r--lisp/emulation/viper-cmd.el14
-rw-r--r--lisp/emulation/viper-ex.el4
-rw-r--r--lisp/emulation/viper-init.el5
-rw-r--r--lisp/emulation/viper-macs.el10
-rw-r--r--lisp/emulation/viper-util.el8
-rw-r--r--lisp/emulation/viper.el9
-rw-r--r--lisp/emulation/ws-mode.el2
9 files changed, 41 insertions, 17 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index 1b937da5018..07c14879fb9 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -1324,6 +1324,10 @@ If ARG is the atom `-', scroll upward by nearly full screen."
1324 move-end-of-line move-beginning-of-line 1324 move-end-of-line move-beginning-of-line
1325 end-of-buffer beginning-of-buffer 1325 end-of-buffer beginning-of-buffer
1326 scroll-up scroll-down 1326 scroll-up scroll-down
1327 up-list down-list backward-up-list
1328 end-of-defun beginning-of-defun
1329 forward-sexp backward-sexp
1330 forward-list backward-list
1327 forward-sentence backward-sentence 1331 forward-sentence backward-sentence
1328 forward-paragraph backward-paragraph)) 1332 forward-paragraph backward-paragraph))
1329 (put cmd 'CUA 'move)) 1333 (put cmd 'CUA 'move))
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el
index 51fbdb6b8c4..b07c634d9b4 100644
--- a/lisp/emulation/vip.el
+++ b/lisp/emulation/vip.el
@@ -893,7 +893,7 @@ is the name of the register for COM."
893each line in the region." 893each line in the region."
894 (setq vip-quote-string 894 (setq vip-quote-string
895 (let ((str 895 (let ((str
896 (vip-read-string (format "quote string \(default \"%s\"\): " 896 (vip-read-string (format "quote string (default %s): "
897 vip-quote-string)))) 897 vip-quote-string))))
898 (if (string= str "") vip-quote-string str))) 898 (if (string= str "") vip-quote-string str)))
899 (vip-enlarge-region (point) (mark)) 899 (vip-enlarge-region (point) (mark))
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el
index 99a130e7f1d..398c47d4784 100644
--- a/lisp/emulation/viper-cmd.el
+++ b/lisp/emulation/viper-cmd.el
@@ -358,7 +358,7 @@
358 'viper-insertion-ring)) 358 'viper-insertion-ring))
359 359
360 (if viper-ESC-moves-cursor-back 360 (if viper-ESC-moves-cursor-back
361 (or (bolp) (backward-char 1)))) 361 (or (bolp) (viper-beginning-of-field) (backward-char 1))))
362 )) 362 ))
363 363
364 ;; insert or replace 364 ;; insert or replace
@@ -1996,7 +1996,8 @@ Undo previous insertion and inserts new."
1996;;; Minibuffer business 1996;;; Minibuffer business
1997 1997
1998(defsubst viper-set-minibuffer-style () 1998(defsubst viper-set-minibuffer-style ()
1999 (add-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel)) 1999 (add-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel)
2000 (add-hook 'post-command-hook 'viper-minibuffer-post-command-hook))
2000 2001
2001 2002
2002(defun viper-minibuffer-setup-sentinel () 2003(defun viper-minibuffer-setup-sentinel ()
@@ -2039,6 +2040,11 @@ Undo previous insertion and inserts new."
2039 (minibuffer-prompt-end) 2040 (minibuffer-prompt-end)
2040 (point-min))) 2041 (point-min)))
2041 2042
2043(defun viper-minibuffer-post-command-hook()
2044 (when (active-minibuffer-window)
2045 (when (< (point) (viper-minibuffer-real-start))
2046 (goto-char (viper-minibuffer-real-start)))))
2047
2042 2048
2043;; Interpret last event in the local map first; if fails, use exit-minibuffer. 2049;; Interpret last event in the local map first; if fails, use exit-minibuffer.
2044;; Run viper-minibuffer-exit-hook before exiting. 2050;; Run viper-minibuffer-exit-hook before exiting.
@@ -2154,7 +2160,7 @@ problems."
2154 (setq keymap (or keymap minibuffer-local-map) 2160 (setq keymap (or keymap minibuffer-local-map)
2155 initial (or initial "") 2161 initial (or initial "")
2156 temp-msg (if default 2162 temp-msg (if default
2157 (format "(default: %s) " default) 2163 (format "(default %s) " default)
2158 "")) 2164 ""))
2159 2165
2160 (setq viper-incomplete-ex-cmd nil) 2166 (setq viper-incomplete-ex-cmd nil)
@@ -2570,7 +2576,7 @@ These keys are ESC, RET, and LineFeed"
2570 ;; last line of buffer when this line has no \n. 2576 ;; last line of buffer when this line has no \n.
2571 (viper-add-newline-at-eob-if-necessary) 2577 (viper-add-newline-at-eob-if-necessary)
2572 (viper-execute-com 'viper-line val com)) 2578 (viper-execute-com 'viper-line val com))
2573 (if (and (eobp) (not (bobp))) (forward-line -1)) 2579 (if (and (eobp) (bolp) (not (bobp))) (forward-line -1))
2574 ) 2580 )
2575 2581
2576(defun viper-yank-line (arg) 2582(defun viper-yank-line (arg)
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index 87d2d7f5d5a..5321228fe29 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -1590,7 +1590,7 @@ reversed."
1590 1590
1591;; Ex print working directory 1591;; Ex print working directory
1592(defun ex-pwd () 1592(defun ex-pwd ()
1593 (message default-directory)) 1593 (message "%s" default-directory))
1594 1594
1595;; Ex quit command 1595;; Ex quit command
1596(defun ex-quit () 1596(defun ex-quit ()
@@ -2230,7 +2230,7 @@ Type 'mak ' (including the space) to run make with no args."
2230 (if (buffer-modified-p) "[Modified]" "[Unchanged]"))) 2230 (if (buffer-modified-p) "[Modified]" "[Unchanged]")))
2231 (if (< (+ 1 (length info) (length file)) 2231 (if (< (+ 1 (length info) (length file))
2232 (window-width (minibuffer-window))) 2232 (window-width (minibuffer-window)))
2233 (message (concat file " " info)) 2233 (message "%s" (concat file " " info))
2234 (save-window-excursion 2234 (save-window-excursion
2235 (with-output-to-temp-buffer " *viper-info*" 2235 (with-output-to-temp-buffer " *viper-info*"
2236 (princ (concat "\n" file "\n\n\t" info "\n\n"))) 2236 (princ (concat "\n" file "\n\n\t" info "\n\n")))
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 9c1df1b0ad5..8aa7e4649d4 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -115,6 +115,11 @@ In all likelihood, you don't need to bother with this setting."
115 115
116;;; Macros 116;;; Macros
117 117
118;; Fool the compiler to avoid warnings.
119;; Viper calls make-variable-buffer-local from within other functions, which
120;; triggers compiler warnings.
121(defalias 'viper-make-variable-buffer-local 'make-variable-buffer-local)
122
118(defmacro viper-deflocalvar (var default-value &optional documentation) 123(defmacro viper-deflocalvar (var default-value &optional documentation)
119 `(progn 124 `(progn
120 (defvar ,var ,default-value 125 (defvar ,var ,default-value
diff --git a/lisp/emulation/viper-macs.el b/lisp/emulation/viper-macs.el
index edc5cba1bbe..d401c148ad6 100644
--- a/lisp/emulation/viper-macs.el
+++ b/lisp/emulation/viper-macs.el
@@ -118,7 +118,7 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
118 (define-key viper-vi-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro) 118 (define-key viper-vi-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro)
119 (define-key viper-insert-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro) 119 (define-key viper-insert-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro)
120 (define-key viper-emacs-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro) 120 (define-key viper-emacs-intercept-map "\C-x)" 'viper-end-mapping-kbd-macro)
121 (message "Mapping %S in %s state. Hit `C-x )' to complete the mapping" 121 (message "Mapping %S in %s state. Type macro definition followed by `C-x )'"
122 (viper-display-macro macro-name) 122 (viper-display-macro macro-name)
123 (if ins "Insert" "Vi"))) 123 (if ins "Insert" "Vi")))
124 )) 124 ))
@@ -170,7 +170,7 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
170 ((stringp macro-name) 170 ((stringp macro-name)
171 (setq macro-name (vconcat macro-name))) 171 (setq macro-name (vconcat macro-name)))
172 (t (setq macro-name (vconcat (prin1-to-string macro-name))))) 172 (t (setq macro-name (vconcat (prin1-to-string macro-name)))))
173 (message ":map%s <Name>" variant)(sit-for 2) 173 (message ":map%s <Macro Name>" variant)(sit-for 2)
174 (while 174 (while
175 (not (member key 175 (not (member key
176 '(?\C-m ?\n (control m) (control j) return linefeed))) 176 '(?\C-m ?\n (control m) (control j) return linefeed)))
@@ -186,7 +186,7 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
186 variant (if (> (length key-seq) 0) 186 variant (if (> (length key-seq) 0)
187 (prin1-to-string (viper-display-macro key-seq)) 187 (prin1-to-string (viper-display-macro key-seq))
188 ""))) 188 "")))
189 (message message) 189 (message "%s" message)
190 (setq event (viper-read-key)) 190 (setq event (viper-read-key))
191 ;;(setq event (viper-read-event)) 191 ;;(setq event (viper-read-event))
192 (setq key 192 (setq key
@@ -263,7 +263,7 @@ a key is a symbol, e.g., `a', `\\1', `f2', etc., or a list, e.g.,
263 (prin1-to-string 263 (prin1-to-string
264 (viper-display-macro key-seq)) 264 (viper-display-macro key-seq))
265 ""))) 265 "")))
266 (message message) 266 (message "%s" message)
267 (setq event (viper-read-key)) 267 (setq event (viper-read-key))
268 ;;(setq event (viper-read-event)) 268 ;;(setq event (viper-read-event))
269 (setq key 269 (setq key
@@ -442,7 +442,7 @@ If SCOPE is nil, the user is asked to specify the scope."
442 scope) 442 scope)
443 viper-custom-file-name)) 443 viper-custom-file-name))
444 444
445 (message msg) 445 (message "%s" msg)
446 )) 446 ))
447 447
448 (setq new-elt 448 (setq new-elt
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index cc9f42b9800..d0b9b34e4d6 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -1405,6 +1405,7 @@ This option is appropriate if you like Emacs-style words."
1405 viper-SEP-char-class 1405 viper-SEP-char-class
1406 (or within-line "\n") 1406 (or within-line "\n")
1407 (if within-line (viper-line-pos 'end))))) 1407 (if within-line (viper-line-pos 'end)))))
1408
1408(defsubst viper-skip-all-separators-backward (&optional within-line) 1409(defsubst viper-skip-all-separators-backward (&optional within-line)
1409 (if (eq viper-syntax-preference 'strict-vi) 1410 (if (eq viper-syntax-preference 'strict-vi)
1410 (if within-line 1411 (if within-line
@@ -1433,6 +1434,7 @@ This option is appropriate if you like Emacs-style words."
1433 ;; Emacs may consider some of these as words, but we don't want them 1434 ;; Emacs may consider some of these as words, but we don't want them
1434 viper-non-word-characters 1435 viper-non-word-characters
1435 (viper-line-pos 'end)))) 1436 (viper-line-pos 'end))))
1437
1436(defun viper-skip-nonalphasep-backward () 1438(defun viper-skip-nonalphasep-backward ()
1437 (if (eq viper-syntax-preference 'strict-vi) 1439 (if (eq viper-syntax-preference 'strict-vi)
1438 (skip-chars-backward 1440 (skip-chars-backward
@@ -1502,6 +1504,12 @@ This option is appropriate if you like Emacs-style words."
1502 total 1504 total
1503 )) 1505 ))
1504 1506
1507;; tells when point is at the beginning of field
1508(defun viper-beginning-of-field ()
1509 (or (bobp)
1510 (not (eq (get-char-property (point) 'field)
1511 (get-char-property (1- (point)) 'field)))))
1512
1505 1513
1506;; this is copied from cl-extra.el 1514;; this is copied from cl-extra.el
1507;; Return the subsequence of SEQ from START to END. 1515;; Return the subsequence of SEQ from START to END.
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el
index bfa730cc434..b3fd6d139c0 100644
--- a/lisp/emulation/viper.el
+++ b/lisp/emulation/viper.el
@@ -9,7 +9,7 @@
9;; Author: Michael Kifer <kifer@cs.stonybrook.edu> 9;; Author: Michael Kifer <kifer@cs.stonybrook.edu>
10;; Keywords: emulations 10;; Keywords: emulations
11 11
12(defconst viper-version "3.11.5 of August 6, 2005" 12(defconst viper-version "3.11.5 of September 19, 2005"
13 "The current version of Viper") 13 "The current version of Viper")
14 14
15;; This file is part of GNU Emacs. 15;; This file is part of GNU Emacs.
@@ -606,7 +606,7 @@ This startup message appears whenever you load Viper, unless you type `y' now."
606 (viper-set-expert-level 'dont-change-unless))) 606 (viper-set-expert-level 'dont-change-unless)))
607 607
608 (if viper-xemacs-p 608 (if viper-xemacs-p
609 (make-variable-buffer-local 'bar-cursor)) 609 (viper-make-variable-buffer-local 'bar-cursor))
610 (if (eq major-mode 'viper-mode) 610 (if (eq major-mode 'viper-mode)
611 (setq major-mode 'fundamental-mode)) 611 (setq major-mode 'fundamental-mode))
612 612
@@ -769,6 +769,7 @@ It also can't undo some Viper settings."
769 (remove-hook 'comint-mode-hook 'viper-comint-mode-hook) 769 (remove-hook 'comint-mode-hook 'viper-comint-mode-hook)
770 (remove-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel) 770 (remove-hook 'minibuffer-setup-hook 'viper-minibuffer-setup-sentinel)
771 (remove-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel) 771 (remove-hook 'change-major-mode-hook 'viper-major-mode-change-sentinel)
772 (remove-hook 'post-command-hook 'viper-minibuffer-post-command-hook)
772 773
773 ;; unbind Viper mouse bindings 774 ;; unbind Viper mouse bindings
774 (viper-unbind-mouse-search-key) 775 (viper-unbind-mouse-search-key)
@@ -1008,7 +1009,7 @@ It also can't undo some Viper settings."
1008 ;; ***This is needed only in case emulation-mode-map-alists is not defined 1009 ;; ***This is needed only in case emulation-mode-map-alists is not defined
1009 (unless 1010 (unless
1010 (and (fboundp 'add-to-ordered-list) (boundp 'emulation-mode-map-alists)) 1011 (and (fboundp 'add-to-ordered-list) (boundp 'emulation-mode-map-alists))
1011 (make-variable-buffer-local 'minor-mode-map-alist)) 1012 (viper-make-variable-buffer-local 'minor-mode-map-alist))
1012 1013
1013 ;; Viper changes the default mode-line-buffer-identification 1014 ;; Viper changes the default mode-line-buffer-identification
1014 (setq-default mode-line-buffer-identification '(" %b")) 1015 (setq-default mode-line-buffer-identification '(" %b"))
@@ -1017,7 +1018,7 @@ It also can't undo some Viper settings."
1017 (setq next-line-add-newlines nil 1018 (setq next-line-add-newlines nil
1018 require-final-newline t) 1019 require-final-newline t)
1019 1020
1020 (make-variable-buffer-local 'require-final-newline) 1021 (viper-make-variable-buffer-local 'require-final-newline)
1021 1022
1022 ;; don't bark when mark is inactive 1023 ;; don't bark when mark is inactive
1023 (if viper-emacs-p 1024 (if viper-emacs-p
diff --git a/lisp/emulation/ws-mode.el b/lisp/emulation/ws-mode.el
index 41e8f5323a5..e677e5a20ff 100644
--- a/lisp/emulation/ws-mode.el
+++ b/lisp/emulation/ws-mode.el
@@ -691,7 +691,7 @@ in ws-last-errormessage for recovery with C-q w."
691This will only work for errors raised by WordStar mode functions." 691This will only work for errors raised by WordStar mode functions."
692 (interactive) 692 (interactive)
693 (if ws-last-errormessage 693 (if ws-last-errormessage
694 (message ws-last-errormessage) 694 (message "%s" ws-last-errormessage)
695 (message "No WordStar error yet."))) 695 (message "No WordStar error yet.")))
696 696
697(defun ws-kill-eol () 697(defun ws-kill-eol ()